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 :
but i trial this port forward to webserver not be list in LISTEN :
can thus know what my problem , wrong configure or what . please :'(
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 :
can thus know what my problem , wrong configure or what . please :'(