This is on a freshly netinstalled RoS v7.10.1 on HAP AC2 running 3 VLANs (10,20,3999 [=used for IPTV]) with HW offloading, which are all on one bridge interface (master-bridge).
I just can't seem to get the dst-nat rules to work to and I cannot figure out why.
I've already tried changing the in-interface to Eth1 - PPPoE-WAN, which wasn't possible (in-out interface matcher not possible when interface is slave, user master instead), as well as changing it to "master-bridge", which didn't do anything (no packets pass through).
For what it's worth, the services that I'm trying to dst-nat are all on Eth4 behind a simple unmanaged switch (cheap tp-link). I have no issues pinging around between the various devices / router.
Thankful for any help.
Code: Select all
/interface bridge
add igmp-snooping=yes multicast-router=permanent name=bridge-master vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name="Eth1 - PPPoE-WAN"
set [ find default-name=ether2 ] name="Eth2 - LAN"
set [ find default-name=ether3 ] name="Eth3 - IPTV"
set [ find default-name=ether4 ] name="Eth4 - LAN"
set [ find default-name=ether5 ] name="Eth5 - LAN"
/interface vlan
add interface=bridge-master name=Vlan10-LAN vlan-id=10
add interface=bridge-master name=Vlan20-PPPoE vlan-id=20
/interface pppoe-client
add add-default-route=yes disabled=no interface=Vlan20-PPPoE name=PPPoE-Client use-peer-dns=yes
/ip pool
add name=LAN-Vlan10-pool ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=LAN-Vlan10-pool interface=Vlan10-LAN lease-time=1w name=DHCP-LAN-Vlan10
/interface bridge port
add bridge=bridge-master interface="Eth1 - PPPoE-WAN" pvid=20
add bridge=bridge-master interface="Eth2 - LAN" pvid=10
add bridge=bridge-master interface="Eth3 - IPTV" pvid=10
add bridge=bridge-master interface="Eth4 - LAN" pvid=10
add bridge=bridge-master interface="Eth5 - LAN" pvid=10
/interface bridge vlan
add bridge=bridge-master vlan-ids=10 tagged=bridge-master comment="LAN"
add bridge=bridge-master vlan-ids=20 tagged=bridge-master comment="PPPoE - Native VLAN"
add bridge=bridge-master vlan-ids=3999 tagged="Eth1 - PPPoE-WAN,Eth3 - IPTV" comment="Tagged VLAN"
/ip address
add address=192.168.88.1/24 interface=Vlan10-LAN network=192.168.88.0
/ip dhcp-server network
add address=192.168.88.0/24 dns-server=192.168.88.1 gateway=192.168.88.1
/ip firewall filter
add action=accept chain=forward comment="forward established, related" connection-state=established,related
add action=accept chain=forward comment="LAN forward all" src-address=192.168.88.0/24
add action=accept chain=forward comment="#D-NAT forward" connection-nat-state=dstnat
add action=drop chain=forward comment="DROP forward"
add action=accept chain=input comment="#INPUT established, related" connection-state=established,related
add action=accept chain=input comment="LAN input all" src-address=192.168.88.0/24
add action=drop chain=input comment="DROP input"
/ip firewall nat
add action=masquerade chain=srcnat out-interface=PPPoE-Client
add action=dst-nat chain=dstnat comment="WireGuard" dst-port=51820 in-interface=all-ethernet protocol=udp to-addresses=192.168.88.22 to-ports=51820
add action=dst-nat chain=dstnat comment="Website1" dst-port=80 in-interface=all-ethernet protocol=tcp to-addresses=192.168.88.33 to-ports=80
add action=dst-nat chain=dstnat comment="Website1" dst-port=443 in-interface=all-ethernet protocol=udp to-addresses=192.168.88.33 to-ports=443