I would like to create a proxmox vm and have that vm be able to ping/access external websites without having to assign a public ip to it. How do I do this?
The VM is running centos 6
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
You have to use NAT (network address translation/masquerading) to provide private IPv4 addresses for your virtual machines. The Proxmox wiki has instructions on how to set this up.
Or you can just go get IPv6; your ISP will probably be more than happy to give it to you (if they have it yet).
I followed the advice of micael hampton and was able to fix it by:
2: add the following code to my local ip interface at vmbr0:1
post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '192.168.100.0/24' -o vmbr0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.100.0/24' -o vmbr0