Trouble with Container Venet [SOLVED]

  • Thread starter Thread starter thefool808
  • Start date Start date
T

thefool808

Guest
My Container VMs (both debian and ubuntu) with default networking were not able to ping outside the hardware node on a fresh (updated) install of PVE.

I added this line to /etc/sysctl.conf
Code:
net.ipv4.ip_forward=1
and rebooted and now everything is fine.
 
Strange, forwarding is by default enabled in /etc/sysctl.conf

net.ipv4.conf.default.forwarding=1


you can test that with:

# cat /proc/sys/net/ipv4/conf/default/forwarding

i have no idea why you need net.ipv4.ip_forward

- Dietmar
 
I can confirm this on proxmox ve 1.2

I hava a server with a public IP and a pool of 8 IP's from a different range. I have followed this manual:

http://pve.proxmox.com/wiki/Network_Model#Routed_Configuration

and does not work unless I set manually the ip_forwarding to 1. As you say on this test:

# cat /proc/sys/net/ipv4/conf/default/forwarding

I can see that it should be enabled but is not. I had to add manually like on the masquerading config:

post-up echo 1 > /proc/sys/net/ipv4/ip_forward