For e.g. the pc that runs emule has the ip:192.168.0.1
so it would be:
Code:
iptables -t nat -A PREROUTING -p tcp --dport 5881 -i ppp0 -j DNAT --to 192.168.0.1
iptables -t nat -A PREROUTING -p udp --dport 5906 -i ppp0 -j DNAT --to 192.168.0.1
iptables -t nat -A PREROUTING -p tcp --dport 24500:24505 -i ppp0 -j DNAT --to 192.168.0.1
iptables -A FORWARD -p tcp -d 192.168.0.1 --dport 5881 -o eth1 -j ACCEPT
iptables -A FORWARD -p udp -d 192.168.0.1 --dport 5906 -o eth1 -j ACCEPT
This is what you have to adjust if you using a dial up with your RHEL3 AS.
Then I would be a good idea to attach this at the end of course of your
/etc/ppp/ip-up config.