-   Linux - Networking (
-   -   iptables rules for emule in nat box (

eantoranz 08-08-2005 12:22 PM

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 02: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 10: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 10: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:

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:43 AM.