Port forwarding not complete

calpir

Member
Oct 18, 2020
1
0
6
51
hello everyone.. I find myself with this configuration partially working:

auto lo
iface lo inet loopback

iface eno1 inet manual

iface enx00e04c6c30b6 inet manual

iface enx00e04c71404a inet manual

auto wlp0s20f3
iface wlp0s20f3 inet dhcp
wpa-ssid BLABLA-78251154
wpa-psk 1826a4c777cc1333872fdbf0004fe1e2d7fd0739946e0c570179c8c2f041a7611
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/wlp0s20f3/proxy_arp

auto vmbr0
iface vmbr0 inet static
address 192.168.3.101/24
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#LAN

auto vmbr1
iface vmbr1 inet static
address 192.168.1.88/24
bridge-ports enx00e04c6c30b6
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#WAN1

auto vmbr2
iface vmbr2 inet static
address 192.168.90.1/24
bridge-ports none
bridge-stp off
bridge-fd 0

#WAN2 --------------line problem

auto vmbr3
iface vmbr3 inet static
address 192.168.6.3/24
bridge-ports enx00e04c71404a
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

#WAN3 ( OPENMPTCPROUTER)

auto vmbr4
iface vmbr4 inet static
address 192.168.100.150/24
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#OMR

post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/enx00e04c6c30b6/proxy_arp
post-up echo 1 > /proc/sys/net/ipv4/conf/enx00e04c71404a/proxy_arp
# post-up echo 1 > /proc/sys/net/ipv4/conf/wlp0s20f3/proxy_arp
#
#WAN2
post-up iptables -t nat -A POSTROUTING -s '192.168.90.0/24' -o wlp0s20f3 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.90.0/24' -o wlp0s20f3 -j MASQUERADE
#WAN1
post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o enx00e04c6c30b6 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o enx00e04c6c30b6 -j MASQUERADE
#WAN3
post-up iptables -t nat -A POSTROUTING -s '192.168.6.0/24' -o enx00e04c71404a -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.6.0/24' -o enx00e04c71404a -j MASQUERADE
#
post-up iptables -t nat -A PREROUTING -i wlp0s20f3 -p udp --dport 1194 -j DNAT --to 192.168.90.254:1194
post-down iptables -t nat -D PREROUTING -i wlp0s20f3 -p udp --dport 1194 -j DNAT --to 192.168.90.254:1194
#

IP : 192.168.90.254 = OPNSENSE ---> port forwarding client VM 192.168.3.11

port router isp = open
problem = not packET RECEIVED vm 192.168.3.11
LAN = vmbr0 = 192.168.3.0/24
version proxmox : 7.3.3 Linux pve7 5.15.74-1-pve #1 SMP PVE 5.15.74-1


route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.9.1 0.0.0.0 UG 0 0 0 wlp0s20f3
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr1
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0
192.168.6.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr3
192.168.9.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp0s20f3
192.168.90.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr2
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr4
 
Last edited:
a little bit more u must post for us. describe your environment and your aim!
 

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!