[plug] Port forwarding with Iptables

Craig Ringer craig at postnewspapers.com.au
Fri Nov 1 10:41:31 WST 2002


> /sbin/iptables -t nat -A PREROUTING -i ppp0 \
> -p tcp -m tcp --dport 4660-4670 -j DNAT --to 192.168.1.2
> /sbin/iptables -A FORWARD -d 192.168.1.2 -i ppp0 \
> -p tcp -m tcp --dport 4660-4670 -j ACCEPT
>
> and if you need udp the same for those too.(I think you won't need udp
> for eDonkey)

You do.

s/tcp/udp/g


Ports 4661 tcp/udp, 4662 tcp/udp, 4665 tcp



More information about the plug mailing list