[SOLVED] Unable to NAT (port forwarding)

RikiTee

New Member
Feb 11, 2018
4
0
1
31
Hi guys,
I'm new to Proxmox and I'm sorry to ask for a topic already treated several times, but I'm unable to forward ports (NAT).

This is the situation:
I've installed Proxmox for the first time on my home server to run some VMs for services like web server, cloud server, SQL server, etc...
I have only one physical network adapter (enp5s0) and a bridge one that Proxmox created automatically (vmbr0).
Vmbr0 has a static ip address (192.168.0.44) and it was successfully recognized by the router.

I paste the /etc/network/interfaces content:
Code:
auto lo
iface lo inet loopback

iface enp5s0  inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.44
        netmask 255.255.255.0
        gateway 192.168.0.1
        bridge_ports enp5s0
        bridge_stp off
        bridge_fd 0

I have two VMs with static ip addresses and also they are recognized by router:
  1. webserver (192.168.0.45)
  2. mysql (192.168.0.46)
I'm trying to forward ports 80, 443 to webserver and port 3306 to mysql but I'm unable to do it.
I don't understand if it's a iptables problem, a firewall problem or other.
All Proxmox's firewalls are disabled.

Can anyone help me?
Thanks!
 
i guess you do port forwarding on the router? if yes,
try to see (e.g. with tcpdump) if the packet reach proxmox, and the vms and if the ips/ports are correct
 
I have the Proxmox server in DMZ, so all ports are open.
I've executed "tcpdump -i vmbr0 -n dst port 80" and:
  • if I call the port 80 from the LAN, I see a lot of tcp traffic;
  • if I call the port 80 from the WAN, I don't see anything, no one tcp connection.
Note: from the WAN, the WebGUI of Proxmox it's perfectly working.
 
Sorry, my mistake.
I discovered that my router, for no reason, blocks the incoming port 80.
I've tryed with casual ports like 999, 123, ecc.. and it works.
 

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!