redirecting traffic through iptables

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