Made a port forward on the proxymax server 7.4-15
from the console the port is open on the virtual machine and it pings from the host but is not available from the browser, help?
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp41s0
iface enp41s0 inet static
address 65.109.51.39/26
gateway 65.109.51.1
up route add -net 65.109.51.0 netmask 255.255.255.192 gw 65.109.51.1 dev enp41s0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
# route 65.109.51.0/26 via 65.109.51.1
iface enp41s0 inet6 static
address 2a01:4f9:5a:289e::2/64
gateway fe80::1
auto vmbr0
iface vmbr0 inet static
address 198.168.32.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
#LAN
auto vmbr1
iface vmbr1 inet static
address 192.168.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 192.168.10.0/24 -o enp41s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 192.168.10.0/24 -o enp41s0 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
post-up iptables -t nat -A PREROUTING -i enp41s0 -p tcp --dport 80 -j DNAT --to 192.168.10.3:80
post-down iptables -t nat -D PREROUTING -i enp41s0 -p tcp --dport 80 -j DNAT --to 192.168.10.3:80
from the console the port is open on the virtual machine and it pings from the host but is not available from the browser, help?
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp41s0
iface enp41s0 inet static
address 65.109.51.39/26
gateway 65.109.51.1
up route add -net 65.109.51.0 netmask 255.255.255.192 gw 65.109.51.1 dev enp41s0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
# route 65.109.51.0/26 via 65.109.51.1
iface enp41s0 inet6 static
address 2a01:4f9:5a:289e::2/64
gateway fe80::1
auto vmbr0
iface vmbr0 inet static
address 198.168.32.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
#LAN
auto vmbr1
iface vmbr1 inet static
address 192.168.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 192.168.10.0/24 -o enp41s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 192.168.10.0/24 -o enp41s0 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
post-up iptables -t nat -A PREROUTING -i enp41s0 -p tcp --dport 80 -j DNAT --to 192.168.10.3:80
post-down iptables -t nat -D PREROUTING -i enp41s0 -p tcp --dport 80 -j DNAT --to 192.168.10.3:80