OpenVZ Forum


Home » General » Support » *SOLVED* internet access from VM
Re: *SOLVED* internet access from VM [message #26899 is a reply to message #26895] Tue, 05 February 2008 00:39 Go to previous message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
I followed the info at:
http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs

In the end, it ended up being:

iptables -t nat -A POSTROUTING -s <my VM's ip> -o eth0 -j SNAT --to <my outside ip>

then, the VMs are able to initiate connections to the outside.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Another TUN/TAP topic :-)
Next Topic: default bandwidth limitation for venet?
Goto Forum:
  


Current Time: Fri Jul 25 11:07:39 GMT 2025

Total time taken to generate the page: 0.31753 seconds