Sunday, May 6, 2007

Port Forwarding

To forward port 411 to port 4411

/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d xxx.xxx.xxx.xxx –dport 411 -j DNAT –to xxx.xxx.xxx.xxx:4411

/sbin/iptables -A FORWARD -p tcp -i eth0 -d xxx.xxx.xxx.xxx –dport 4411 -j ACCEPT

Enjoy.

Ninad S

No comments:


View My Stats