[SOLVED] need some help with Masquerading


New Member
May 8, 2019

Warning, I m a beginner :)

So for my personnal use, I m renting a dedicated server. I installed proxmox on it. My aim was to do a few VM for me and my family. But I m really struggling with the IP part.

To start here are the ip info on the panel of my provider (oneprovider)

IP 195.XXX.171.60 public mac 20:XX:84:BA:84
IP 10.XX.55.135 private mac 20:XX:47:84:ba:86

Gateway: 195.XXX.171.1

If I understood right after my reading, I can t do any subnet ip myself

So the solution for me would be to use Masquerading (NAT) with iptables.

the code I made

auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 195.xxx.171.60
gateway 195.xxx.171.1
bridge_ports eno1
bridge_stp off
bridge_fd 0

auto vmbr1
#private sub network
iface vmbr1 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 vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '' -o vmbr0 -j MASQUERADE


than I put to my first vm but i still can t connect to the internet ...
Last edited:


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!