NAT KVM

Hollis

Well-Known Member
Apr 25, 2018
45
10
48
Hello, i am running new instalation PVE and no NAT network mode running.

Now GUI is changed from h.t.t.p://prntscr.com/j9y71h to h.t.t.p://prntscr.com/j9y7hp - NAT mode is not avalaible.

Masquerading (NAT) with iptables (h.t.t.p.s://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration) not working for me too.

Thank you for your help

Code:
auto lo
iface lo inet loopback

auto eno1
#real IP address
iface eno1 inet static
        address  198.51.100.5
        netmask  255.255.255.0
        gateway  198.51.100.1

auto vmbr0
#private sub network
iface vmbr0 inet static
        address  10.10.10.1
        netmask  255.255.255.0
        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 '10.10.10.0/24' -o eno1 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE



Code:
# pveversion --verbose
proxmox-ve: not correctly installed (running kernel: 4.13.16-2-pve)
pve-manager: 5.1-51 (running version: 5.1-51/96be5354)
pve-kernel-4.13.16-2-pve: 4.13.16-47
pve-kernel-4.10.17-1-pve: 4.10.17-18
corosync: 2.4.2-pve4
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-4
libpve-common-perl: 5.0-30
libpve-guest-common-perl: 2.0-14
libpve-http-server-perl: 2.0-8
libpve-storage-perl: 5.0-18
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.0-2
lxcfs: 3.0.0-1
novnc-pve: 0.6-4
proxmox-widget-toolkit: 1.0-15
pve-cluster: 5.0-25
pve-container: 2.0-21
pve-docs: 5.1-17
pve-firewall: 3.0-8
pve-firmware: not correctly installed
pve-ha-manager: 2.0-5
pve-i18n: 1.0-4
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.1-5
pve-xtermjs: 1.0-2
qemu-server: 5.0-25
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.7-pve1~bpo9
 
Hello, i am running new instalation PVE and no NAT network mode running.

Now GUI is changed from h.t.t.p://prntscr.com/j9y71h to h.t.t.p://prntscr.com/j9y7hp - NAT mode is not avalaible.

Masquerading (NAT) with iptables (h.t.t.p.s://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration) not working for me too.

Thank you for your help

Code:
auto lo
iface lo inet loopback

auto eno1
#real IP address
iface eno1 inet static
        address  198.51.100.5
        netmask  255.255.255.0
        gateway  198.51.100.1

auto vmbr0
#private sub network
iface vmbr0 inet static
        address  10.10.10.1
        netmask  255.255.255.0
        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 '10.10.10.0/24' -o eno1 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE



Code:
# pveversion --verbose
proxmox-ve: not correctly installed (running kernel: 4.13.16-2-pve)
pve-manager: 5.1-51 (running version: 5.1-51/96be5354)
pve-kernel-4.13.16-2-pve: 4.13.16-47
pve-kernel-4.10.17-1-pve: 4.10.17-18
corosync: 2.4.2-pve4
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-4
libpve-common-perl: 5.0-30
libpve-guest-common-perl: 2.0-14
libpve-http-server-perl: 2.0-8
libpve-storage-perl: 5.0-18
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.0-2
lxcfs: 3.0.0-1
novnc-pve: 0.6-4
proxmox-widget-toolkit: 1.0-15
pve-cluster: 5.0-25
pve-container: 2.0-21
pve-docs: 5.1-17
pve-firewall: 3.0-8
pve-firmware: not correctly installed
pve-ha-manager: 2.0-5
pve-i18n: 1.0-4
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.1-5
pve-xtermjs: 1.0-2
qemu-server: 5.0-25
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.7-pve1~bpo9
maybe it's the same problem I described here https://forum.proxmox.com/threads/firewall-changed-to-ebtables.43223/?
 
This is really annoying, NAT mode just disappeared from the WebGUI in 5.1-51. I have specific use case and I need one NIC in NAT mode, I spent far too much time figuring out what is going on, at first I thought that there is something wrong with my server installation, but no, turns out that it disappeared from the GUI "just because". I can still edit ID.conf file remove ,bridge=vmbrX and it works as before. Documentation still writes about NAT no mention about removing it from the GUI. Why are you doing it to us...after.png before.png
 
  • Like
Reactions: Red-Bull
We got same problem and thanks guys for this topic, you same me a lot of time solving this. I hope Proxmox Team fix this GUI issue ASAP.