No Picture

redirecting traffic through iptables

February 14, 2014 Rob 0

sudo sysctl net.ipv4.ip_forward=1 sudo iptables -t nat -A PREROUTING -p tcp –dport 80 -j DNAT –to-destination 10.10.10.10:80 sudo iptables -t nat -A POSTROUTING -j MASQUERADE