lan/internet with Proxmox and containers. v4

SergeyM

New Member
Oct 22, 2015
3
0
1
Proxmox server can ping any resourse in the web, containers can ping only each other and proxmox server.
So i cannot connect them from any lan ip...
What should i do to get lan and internet workable at my containers?

i've tried to add some masquerade from some manuals - it didnt work...
 
Last edited:
Hello SergeyM,

Proxmox server can ping any resourse in the web, containers can ping only each other and proxmox server.
So i cannot connect them from any lan ip...
What should i do to get lan and internet workable at my containers?

i've tried to add some masquerade from some manuals - it didnt work...

Network from containers works usually without any problems.

If you post more details about your IP configuration it can be considered what in particular has to be improved.

To do so call the following on the command line (supposing you use Proxmox VE 4.0, otherwise it would be "openvz" instead of "lxc"):

Code:
cat /etc/network/interfaces
ifconfig -a
grep "" /etc/pve/lxc/*

Kind regards

Mr.Holmes
 
Hello,
If you have an internet sub-network, you must uncomment "net.ipv4.ip_forward=1" in /etc/sysctl.conf in proxmox.

Regards,
Stéphane
 
Hello,

If you have an internet sub-network, you must uncomment "net.ipv4.ip_forward=1" in /etc/sysctl.conf in proxmox.

Yes, indeed, Stéphane is right - in Proxmox VE 4.0 routing is deactivated by default (AFAIK in V3.4 is was active).

Note that the setting above has effect only after restart. In order to activate it immediately do

Code:
echo 1 > /proc/sys/net/ipv4/ip_forward

in addition

Kind regards

Mr.Holmes
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!