Port Forward Public IP to NAT Network for Webserver

hokaloh

New Member
Mar 22, 2022
9
0
1
34
Hi,
I have a problem and dont know where my problem. i trial to forward from public ip to webserver(webserver use nat network) .

This configure for port forward to webserver nat :
auto lo iface lo inet loopback iface ens4 inet manual auto vmbr0 #private sub network iface vmbr0 inet static address 10.10.10.1/24 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 ens4 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o ens4 -j MASQUERADE # Port-Forward to Web Server post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8080 -j DNAT --to 10.10.10.15:80 post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 8080 -j DNAT --to 10.10.10.15:80 source-directory /etc/network/interfaces.d source-directory /run/network/interfaces.d

but i trial this port forward to webserver not be list in LISTEN :
1648652139095.png

can thus know what my problem , wrong configure or what . please :'(
 

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!