Hi there,
I really in need of help with my config,i hope somebody will direct me to fix this issue.
I have next config:
2 ISP, 1 static IP (ether1) , 1 dinamic IP from Starlink Wifi Router( wlan 1)
I setup PCC Load balancing and HairPin NAT.
Currently port forwarding is working only when Starlink is down(interface disabled), I know i did some mistake in Mangle Rules but cant identify and get desperate.
Here is my config,where:
x.x.x.x is my static IP from Fiber Provider.
x.x.y.y is my gateway from Fiber Provide
/interface bridge
add name=Bridge
/interface list
add name=WAN
add name=LAN
/routing table
add disabled=no fib name=to-isp1
add disabled=no fib name=to-isp2
/interface list member
add interface=ether1 list=WAN
add interface=Bridge list=LAN
add interface=wlan1 list=WAN
/ip address
add address=x.x.x.x/29 comment=ISP-1 interface=ether1 network=\
x.x.y.y
add address=192.168.200.1/23 interface=Bridge network=192.168.200.0
add address=192.168.1.10/24 comment=ISP-2 interface=wlan1 network=192.168.1.0
/ip firewall address-list
add address=192.168.200.0/23 list=LOCAL-IP
/ip firewall filter
add action=accept chain=input comment="accept establish & related" \
connection-state=established,related
add action=drop chain=input comment="drop invalid" connection-state=invalid
add action=accept chain=input comment="accept ICMP" protocol=icmp
add action=drop chain=input comment="drop all not from lan" in-interface=\
!Bridge
add action=accept chain=forward comment="accept established,related" \
connection-state=established,related
add action=drop chain=forward comment="drop invalid" connection-state=invalid
add action=drop chain=forward comment="drop all from WAN to LAN" \
connection-nat-state=!dstnat connection-state=new in-interface=ether1
add action=drop chain=forward connection-nat-state=!dstnat connection-state=\
new in-interface=wlan1
/ip firewall mangle
add action=accept chain=prerouting comment="LB PCC" dst-address-list=LOCAL-IP \
src-address-list=LOCAL-IP
add action=accept chain=postrouting comment="LB PCC" dst-address-list=\
LOCAL-IP src-address-list=LOCAL-IP
add action=accept chain=forward comment="LB PCC" dst-address-list=LOCAL-IP \
src-address-list=LOCAL-IP
add action=accept chain=input comment="LB PCC" dst-address-list=LOCAL-IP \
src-address-list=LOCAL-IP
add action=accept chain=output comment="LB PCC" dst-address-list=LOCAL-IP \
src-address-list=LOCAL-IP
add action=mark-connection chain=input comment="LB PCC" in-interface=ether1 \
new-connection-mark=cm-ether1 passthrough=yes
add action=mark-connection chain=input comment="LB PCC" in-interface=wlan1 \
new-connection-mark=cm-wlan1 passthrough=yes
add action=mark-routing chain=output comment="LB PCC" connection-mark=\
cm-ether1 new-routing-mark=to-isp1 passthrough=yes
add action=mark-routing chain=output comment="LB PCC" connection-mark=\
cm-wlan1 new-routing-mark=to-isp2 passthrough=yes
add action=mark-connection chain=prerouting comment="LB PCC" \
dst-address-type=!local in-interface=Bridge new-connection-mark=cm-ether1 \
passthrough=yes per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=prerouting comment="LB PCC" \
dst-address-type=!local in-interface=Bridge new-connection-mark=cm-wlan1 \
passthrough=yes per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=prerouting comment="LB PCC" connection-mark=\
cm-ether1 in-interface=Bridge new-routing-mark=to-isp1 passthrough=yes
add action=mark-routing chain=prerouting comment="LB PCC" connection-mark=\
cm-wlan1 in-interface=Bridge new-routing-mark=to-isp2 passthrough=yes
/ip firewall nat
add action=src-nat chain=srcnat comment="Masquarade NET Access - Coolink" \
out-interface=ether1 src-address=192.168.200.0/23 to-addresses=\
x.x.x.x
add action=src-nat chain=srcnat comment="Masquarade NET Access - Starlink" \
out-interface=wlan1 src-address=192.168.200.0/23 to-addresses=\
192.168.1.10
add action=dst-nat chain=dstnat comment="HairPin NAT - NextCloud" \
dst-address=x.x.x.x dst-port=443 protocol=tcp to-addresses=\
192.168.200.40 to-ports=443
add action=masquerade chain=srcnat dst-address=192.168.200.40 out-interface=\
Bridge protocol=tcp src-address=192.168.200.0/23
add action=dst-nat chain=dstnat comment="HairPin NAT - WireGuard Forwarding" \
dst-address=x.x.x.x dst-port=51820 protocol=udp to-addresses=\
192.168.200.40 to-ports=51820
/ip route
add check-gateway=ping comment="LB PCC" distance=1 gateway=x.x.y.y \
routing-table=to-isp1
add check-gateway=ping comment="LB PCC" distance=1 gateway=192.168.1.1 \
routing-table=to-isp2
add check-gateway=ping comment="LB PCC" distance=1 gateway=x.x.y.y
add check-gateway=ping comment="LB PCC" distance=2 gateway=192.168.1.1
Really hope somebody will direct me on this issue.