Re: [CentOS] DNAT Internet gate problem on centos

2017-04-02 Thread Andreas Benzler
Now i know why you wait, when I ask. Depends on time I will find a (my) way. :-) #!/bin/sh IPTBLV4=/usr/sbin/iptables if [ $# -eq 0 ] then echo "No arguments supplied" GATE=XX.XX.XX.XX else GATE=$1 fi nslookup $GATE echo "1" > /proc/sys/net/ipv4/ip_forward $IPTBLV4 -F -t nat

Re: [CentOS] DNAT Internet gate problem on centos

2017-04-01 Thread Andreas Benzler
On the GATE it works. (Port mapping) ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos

[CentOS] DNAT Internet gate problem on centos

2017-04-01 Thread Andreas Benzler
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