Thank you.
This is my scenario(public ip is 193.19.x.y):
root@ubu01:~# hostname
ubu01.domain.com
root@deb01:~# vzctl set 777 --nameserver 193.19.*.* --ip 192.168.1.1 --save
root@ubu01:~# vzlist -a
VEID NPROC STATUS IP_ADDR HOSTNAME
777 8 running 192.168.1.1 vps.ubu01.domain.com
Allow access from outside to inside vps port 80
iptables -t nat -A PREROUTING -p tcp -d 193.19.x.y --dport port_num -i eth0 -j DNAT --to-destination 192.168.1.1:80
Allow access from inside the vps to the outside internet
iptables -t nat -A POSTROUTING -s 192.168.1.1 -o eth0 -j SNAT --to 193.19.x.y
But it is not working. I don't have internet to/from container.
I did something wrong ?
[Updated on: Wed, 26 August 2009 11:04]
Report message to a moderator