Hello community!
I have:
- dedicatied server with 1 public IPv4 with pve-manager/5.1-43/bdb08029 (running kernel: 4.13.13-5-pve)
- routed network configuration
- 2 VMs with 1 NIC in NAT mode each
I need to DNAT some TCP ports from public IP to VMs.
I have already read:
https://pve.proxmox.com/wiki/Network_Model#QEMU_port_redirection
https://forum.proxmox.com/threads/port-forward-with-built-in-nat-and-pve-firewall.21194/
https://forum.proxmox.com/threads/set-nat-port-forwarding-in-config-file.40230/
I tried both redir and hostfwd.
The problem is port forwarding works to one VM (Windows 2012R2 Standard) and doesn't to another (CentOS 7.4). Different OSes is only significant thing I can denote.
When I try to telnet to port forwarded to Linux VM, I see that it works, but looks like telnet connects to the socket created by kvm on host machine and doesn't pass further to the guest.
Attaching tcpdumps in both situation.
Please suggest how to make DNAT work for Linux VM.
I have:
- dedicatied server with 1 public IPv4 with pve-manager/5.1-43/bdb08029 (running kernel: 4.13.13-5-pve)
- routed network configuration
- 2 VMs with 1 NIC in NAT mode each
I need to DNAT some TCP ports from public IP to VMs.
I have already read:
https://pve.proxmox.com/wiki/Network_Model#QEMU_port_redirection
https://forum.proxmox.com/threads/port-forward-with-built-in-nat-and-pve-firewall.21194/
https://forum.proxmox.com/threads/set-nat-port-forwarding-in-config-file.40230/
I tried both redir and hostfwd.
The problem is port forwarding works to one VM (Windows 2012R2 Standard) and doesn't to another (CentOS 7.4). Different OSes is only significant thing I can denote.
When I try to telnet to port forwarded to Linux VM, I see that it works, but looks like telnet connects to the socket created by kvm on host machine and doesn't pass further to the guest.
Attaching tcpdumps in both situation.
Please suggest how to make DNAT work for Linux VM.