-   Linux - Networking (
-   -   iptable-rules for eDonkey? (

grubjo 07-31-2002 10:50 AM

iptable-rules for eDonkey?
Hi, I use Linux as router. How do I have to configure FORWARD and DNAT-Rules for edonkey? At least one Pc behind the firewall should be able to download via eDonkey.

Bye, Hannes

turnip 07-31-2002 11:19 AM

iptables -t nat -A PREROUTING -p tcp -i $interface --dport xxxx -j DNAT --to ip_of_machine

iptables -t nat -A PREROUTING -p udp -i $interface --dport xxxx -j DNAT --to ip_of_machine

replace xxx with the port or ports edonkey works on and $interface with the interface the traffic is coming in on. and you're away. You don't need any forward rules for this.

pk21 08-01-2002 07:38 AM

The portnumber you will need is probably listed in your /var/log/messages file

All times are GMT -5. The time now is 01:26 PM.