Proxmox LXC Networking with public IP


New Member
Oct 31, 2023
I have a bare-metal Proxmox server running with two public IPs. The initial configuration has already been done, and the containers are running with a NAT and a private network.
I currently have 2 public IPs: (This is the available one)
This one has a comment in the interface that says #route via (this is the Proxmox one)

Apparently the person who did the initial setup did a nat masquerade with the available IP, and I need to use either one. I tried to do a bridge with each of the 2 ip's and it didn't work, it shows this:

icmp_seq=1 Destination Host Unreachable

This is the current configuration.

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp195s0
iface enp195s0 inet static
up route add -net netmask gw dev enp195s0
# route via

iface enp195s0 inet6 static
address 9a01:4f8:261:1966::2/64
gateway fe80::1

auto enxfe9a2a6a0631
iface enxfe9a2a6a0631 inet static

auto vmbr0
iface vmbr0 inet static
bridge-ports none
bridge-stp off
bridge-fd 0

post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
post-up   iptables -t nat -A POSTROUTING -s '' -o enp195s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '' -o enp195s0 -j MASQUERADE


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!