LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptables rules for emule in nat box (https://www.linuxquestions.org/questions/linux-networking-3/iptables-rules-for-emule-in-nat-box-351190/)

eantoranz 08-08-2005 11:22 AM

iptables rules for emule in nat box
 
What are the rules I have to set in a NAT router that will be use to connect many clients to emule?

My default FORWARD policy is DROP... and don't intend to change it.

There are three boxes that will connect to the emule network.

And what will the configuration of the clients be?

Matir 08-08-2005 01:23 PM

You will not be able to have them all exposed to the internet unless you set them up to use different port ranges on the client. Then you'll need to port forward the ports on your NAT box to the appropriate clients.

eantoranz 08-08-2005 09:24 PM

you mean to NOT get a low ID.... I don't care if it's low ided. What are the rules I have to set?

Matir 08-08-2005 09:37 PM

Ah, you mean for outbound? In that case, you need to allow outbound tcp ports 4661 and 4662, and udp port 4665. For example, if eth0 is your internal interface:
Code:

export INTIF="eth0"
iptables -A FORWARD -i $INTIF -p tcp --dport 4661 -j ACCEPT
iptables -A FORWARD -i $INTIF -p tcp --dport 4662 -j ACCEPT
iptables -A FORWARD -i $INTIF -p udp --dport 4665 -j ACCEPT

That SHOULD work. :)


All times are GMT -5. The time now is 06:14 PM.