LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptable-rules for eDonkey? (http://www.linuxquestions.org/questions/linux-networking-3/iptable-rules-for-edonkey-26903/)

grubjo 07-31-2002 09: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 10: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 06: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 06:37 PM.