Port forward

andy123

New Member
Jul 8, 2023
2
0
1
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
 
log
100 3 tap100i0-IN 08/Jul/2023:14:23:34 +0200 ACCEPT: IN=fwbr100i0 OUT=fwbr100i0 PHYSIN=fwln100i0 PHYSOUT=tap100i0 MAC=3a:44:20:5c:59:a5:86:e9:8d:16:a9:f6:08:00 SRC=46.63.18.193 DST=192.168.10.3 LEN=60 TOS=0x00 PREC=0x00 TTL=57 ID=55050 DF PROTO=TCP SPT=53538 DPT=80 SEQ=1737505996 ACK=0 WINDOW=64240 SYN
100 3 tap100i0-IN 08/Jul/2023:14:23:34 +0200 ACCEPT: IN=fwbr100i0 OUT=fwbr100i0 PHYSIN=fwln100i0 PHYSOUT=tap100i0 MAC=3a:44:20:5c:59:a5:86:e9:8d:16:a9:f6:08:00 SRC=46.63.18.193 DST=192.168.10.3 LEN=60 TOS=0x00 PREC=0x00 TTL=57 ID=38414 DF PROTO=TCP SPT=53554 DPT=80 SEQ=2767836709 ACK=0 WINDOW=64240 SYN
100 3 tap100i0-IN 08/Jul/2023:14:23:38 +0200 ACCEPT: IN=fwbr100i0 OUT=fwbr100i0 PHYSIN=fwln100i0 PHYSOUT=tap100i0 MAC=3a:44:20:5c:59:a5:86:e9:8d:16:a9:f6:08:00 SRC=46.63.18.193 DST=192.168.10.3 LEN=60 TOS=0x00 PREC=0x00 TTL=57 ID=38415 DF PROTO=TCP SPT=53554 DPT=80 SEQ=2767836709 ACK=0 WINDOW=64240 SYN
100 3 tap100i0-IN 08/Jul/2023:14:23:38 +0200 ACCEPT: IN=fwbr100i0 OUT=fwbr100i0 PHYSIN=fwln100i0 PHYSOUT=tap100i0 MAC=3a:44:20:5c:59:a5:86:e9:8d:16:a9:f6:08:00 SRC=46.63.18.193 DST=192.168.10.3 LEN=60 TOS=0x00 PREC=0x00 TTL=57 ID=55051 DF PROTO=TCP SPT=53538 DPT=80 SEQ=1737505996 ACK=0 WINDOW=64240 SYN
100 3 tap100i0-IN 08/Jul/2023:14:23:38 +0200 ACCEPT: IN=fwbr100i0 OUT=fwbr100i0 PHYSIN=fwln100i0 PHYSOUT=tap100i0 MAC=3a:44:20:5c:59:a5:86:e9:8d:16:a9:f6:08:00 SRC=46.63.18.193 DST=192.168.10.3 LEN=60 TOS=0x00 PREC=0x00 TTL=57 ID=13146 DF PROTO=TCP SPT=53570 DPT=80 SEQ=2147866081 ACK=0 WINDOW=64240 SYN
100 3 tap100i0-IN 08/Jul/2023:14:23:46 +0200 ACCEPT: IN=fwbr100i0 OUT=fwbr100i0 PHYSIN=fwln100i0 PHYSOUT=tap100i0 MAC=3a:44:20:5c:59:a5:86:e9:8d:16:a9:f6:08:00 SRC=46.63.18.193 DST=192.168.10.3 LEN=60 TOS=0x00 PREC=0x00 TTL=57 ID=55052 DF PROTO=TCP SPT=53538 DPT=80 SEQ=1737505996 ACK=0 WINDOW=64240 SYN
100 3 tap100i0-IN 08/Jul/2023:14:23:46 +0200 ACCEPT: IN=fwbr100i0 OUT=fwbr100i0 PHYSIN=fwln100i0 PHYSOUT=tap100i0 MAC=3a:44:20:5c:59:a5:86:e9:8d:16:a9:f6:08:00 SRC=46.63.18.193 DST=192.168.10.3 LEN=60 TOS=0x00 PREC=0x00 TTL=57 ID=38416 DF PROTO=TCP SPT=53554 DPT=80 SEQ=2767836709 ACK=0 WINDOW=64240 SYN
100 3 tap100i0-IN 08/Jul/2023:14:23:46 +0200 ACCEPT: IN=fwbr100i0 OUT=fwbr100i0 PHYSIN=fwln100i0 PHYSOUT=tap100i0 MAC=3a:44:20:5c:59:a5:86:e9:8d:16:a9:f6:08:00 SRC=46.63.18.193 DST=192.168.10.3 LEN=60 TOS=0x00 PREC=0x00 TTL=57 ID=13147 DF PROTO=TCP SPT=53570 DPT=80 SEQ=2147866081 ACK=0 WINDOW=64240 SYN



 

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!