Howto setup network with one public IP

Jeroen

New Member
Dec 27, 2016
4
0
1
45
Hi,

I've read nearly all forum topic about this, but still I can't figure out how to set up an ip for my lxc containers.

- I have a server directly connected to the internet so I have 1 public ip.
- On this server I run a fresh installation of proxmox.
- I create one lxc container with Debian.

Nomatter what I do, I just can't establish an internet connection.
I hope someone here is able to tell me whether it's possible and if yes... how?
 
Hi Jeroen
Usually for this, people order from their provider an extra IP adress, and add this IP adress to the container.
If you don't want to order an extra IP address, you need to setup masquerading with iptables as explained with https://pve.proxmox.com/wiki/Network_Model.
 
Hi Manu,
Thanks for helping me out!!
I tried this part already but I must have made a mistake.
I tried again and gave the VM an IP: 10.10.10.50/24 and gateway 10.10.10.1 and everything works fine!