Redirecting ports using IPTables

This worked to redirect the ports to the new server
//

/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

/sbin/iptables -A FORWARD -i eth0 -p tcp –destination-port 8210 -j ACCEPT

/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp –destination-port 8210 -j DNAT –to-destination 66.90.73.51:8210

0 comments:

Post a Comment