Community discussions

MikroTik App
 
Saberm90
just joined
Topic Author
Posts: 1
Joined: Sun Oct 23, 2022 6:17 pm

How to Combine 2 WAN with Mangle Rules, without losing access to NAT rules at 1st WAN

Sun Oct 23, 2022 7:15 pm

I have 2 WAN connections (same ISP, different static IP). I tried and succeeded in combining WANs with Mangle rules. But the problem is NAT rules (SIP phone, VMS, etc) related to the 1st WAN connection not being accessible through the internet after enabling the 2nd WAN connection.

Mangle Rules are as follows:
/ip firewall mangle
add action=mark-connection chain=input comment=WAN1 in-interface=\
pppoe-out1 new-connection-mark=MWAN1
add action=mark-routing chain=output connection-mark=MWAN1 new-routing-mark=\
RWAN1 passthrough=no
add action=mark-connection chain=forward comment=WAN1PF connection-state=new \
in-interface=pppoe-out1 new-connection-mark=PFMWAN1
add action=mark-routing chain=prerouting connection-mark=no-mark \
in-interface=bridge2 new-routing-mark=RWAN1
add action=mark-connection chain=input comment=WAN2 in-interface=ether1-MDU \
new-connection-mark=MWAN2
add action=mark-routing chain=output connection-mark=MWAN2 new-routing-mark=\
RWAN2 passthrough=no
add action=mark-connection chain=forward comment=WAN2PF connection-state=new \
in-interface=ether1-MDU new-connection-mark=PFMWAN2
add action=mark-routing chain=prerouting connection-mark=no-mark \
in-interface=bridge2 new-routing-mark=RWAN2


I know when the connection mark is set to "no-mark' in action=mark-routing chain=prerouting, I would have both WANs bandwidth simultaneously but I will lose NAT rules.
actually, I am new to RouterOS, So It would be great if you help me with this to have Multiple Bandwidth and NAT rules at 1st WAN Static IP simultaneously.

Best Regards

Who is online

Users browsing this forum: Google [Bot] and 44 guests