Problem with NAT

George Michalopoulos

Active Member
Mar 19, 2018
27
9
43
62
Hello all,
I have a problem using nat at my proxmox installation. My setup is like this:

proxmox host public ip xxx.xxx.xxx.xxx (enp4s0)

proxmox host network ip yyy.yyy.yyy.yy1 (vmbr0)
proxmox host network private ip 192.168.1.1 (vmbr0:1)

virtual host A public ip yyy.yyy.yyy.yy2 (eth0)
virtual host A private ip 192.168.1.2 (eth0:1)

virtual host B only private ip 192.168.1.3

I use this to nat virtual host B to internet:
iptables -t nat -A POSTROUTING -o enp4s0 -j MASQUERADE

from virtual host B i cannot ping virtual host A with its public ip
from virtual host B, when i ping virtual host A, sometimes i get large ping times (up to 1sec).
i have no more public ips for host B :(

I guess is something with the NAT, but i dont know how to solve it.. :)
 
Hello all,
I have a problem using nat at my proxmox installation. My setup is like this:

proxmox host public ip xxx.xxx.xxx.xxx (enp4s0)

proxmox host network ip yyy.yyy.yyy.yy1 (vmbr0)
proxmox host network private ip 192.168.1.1 (vmbr0:1)

virtual host A public ip yyy.yyy.yyy.yy2 (eth0)
virtual host A private ip 192.168.1.2 (eth0:1)

virtual host B only private ip 192.168.1.3

I use this to nat virtual host B to internet:
iptables -t nat -A POSTROUTING -o enp4s0 -j MASQUERADE

from virtual host B i cannot ping virtual host A with its public ip
from virtual host B, when i ping virtual host A, sometimes i get large ping times (up to 1sec).
i have no more public ips for host B :(

I guess is something with the NAT, but i dont know how to solve it.. :)
for analyzing this topic it's necessary to know the networking configuration in detail from host and VMs (assigned IP addresses, routing etc.)
 

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!