Problem with NAT

George Michalopoulos

Active Member
Mar 19, 2018
27
10
43
63
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.)