PORT_FROM=443
PORT_TO=443
DEST=10.33.35.110
iptables -t nat -A PREROUTING -p tcp --dport $PORT_FROM -j DNAT --to $DEST:$PORT_TO
iptables -t nat -A POSTROUTING -p tcp -d $DEST --dport $PORT_TO -j MASQUERADE

 

Pin It

Who is Online

We have 4 guests and no members online