Hi all

I've got a pb about NAT and I can't resolve it.
I have a gateway (linux slackware) called "A" connected to the net 
through ADSL. My others computers of my lan connect to the internet 
through this one. This is what I put in the rc.local file :

modprobe iptable_filter
modprobe iptable_nat

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -A PREROUTING -t nat -p udp -d 217.128.80.91 --dport 8888 -j 
DNAT --to 10.0.0.1:6220
iptables -A PREROUTING -t nat -p udp -d 217.128.80.91 --dport 8889 -j 
DNAT --to 10.0.0.3:6220

iptables -A OUTPUT -t nat -p udp -d 217.128.80.91 --dport 8888 -j DNAT 
--to 10.0.0.1:6220
iptables -A OUTPUT -t nat -p udp -d 217.128.80.91 --dport 8889 -j DNAT 
--to 10.0.0.3:6220


I have got a game server hosted on "A".
All works fine : internet, games but the trouble is that the game appear 
very slow (normally, it is not) when we are at least 3. I am not sure 
but I think that the iptable DNAT is not working fast, is that true ?
If yes, how can I improve that ?


Thanks a lot,
Thai.


Reply via email to