Displaying 1 result from an estimated 1 matches for "yy_port".
2017 Apr 01
2
DNAT Internet gate problem on centos
Hello Guys,
I got trouble to get vserver work as gate:
GATE=XX.XX.XX.XX
YY_PORT=YY
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -F -t nat
iptables -t nat -A PREROUTING -p tcp -i venet0:0 --dport $YY_PORT \
-j DNAT --to-destination $GATE:$YY_PORT
iptables -t nat -A POSTROUTING -p tcp --dport $YY_PORT \
-j MASQUERADE
iptables -L -t nat
Any...