Forgive me, I am a Winbox user. I can translate command line to Winbox, but do not know command lines to produce my configuration in text format. I am working on a RB2011 with latest OS and Firmware
I can get each WAN interface to work independently when disabling the other WAN Interface. My goal is to have Bridge1 Traffic only route out WAN1, and Bridge2 Traffic only route out WAN2. In my trial and error all traffic appears to default all routes out WAN1 when both WAN interfaces are enabled. Inbound routes to WAN2 fail to pass through to Bridge2.
WAN1: 68.x.x.193/29 Port ether1
WAN2: 47.x.x.174/30 Port ether3
Bridge1: 10.0.0.254/24 Port ether 2
Bridge2: 172.16.251.254/24 Port ehter4
Bridge 1 Ports: ether2
Bridge 1 Ports: ether4
no other ports are in use. Port 1 and port 2 are gateway for each subnet on separate physical switches.
Interface List:
LAN: Bridge1 & Bridge2
WAN: WAN1 & WAN 2
Routing Tables:
D Main FIB yes; (CANNOT MODIFY)
WAN2 FIB: yes (I ADDED)
WInbox QuickSet displays
Eth1: Static IP: 68.x.x.193/29 Gateway 47.x.x.173 (Gateway is WAN2’s gateway)
Local Network: 47.x.x.174/30 (NAT) (Not LAN subnet)
Already this is wrong. I change the Ether1 gateway to 68.x.x.168/29 and it doesn’t stick
IP Routes are defined:
AS 0.0.0.0/0 47.x.x..173 Dist 1
AS+ 0.0.0.0/0 68.x.x.198 Dist 1
DAC 47.x.x.x172/30 ether3 Dist 0
DAC 68.x.x.192/29 ether1 Dist 0
DAC 10.0.0.254/24 Bridge1 Dist 0
DAC 172.16.251.254/24 Bridge2 Dist 0
Following a KB articles, I have established the following Mangles:
Accept Rule:
Chain prerouting / Dst Address 47.x.x.172/30 / Accept
Chain prerouting / Dst Address 68.x.x.192/29 / Accept
Chain prerouting / Dst Address 10.0.0.0/24 / Accept
Chain prerouting / Dst Address 172.16.251.0/24 / Accept
Input Rule
Chain input / In.interface WAN1 / New Mark Connection WAN1 / Passthrough
Chain input / In.interface WAN2 / New Mark Connection WAN2 / Passthrough
Mark Connection Rule:
Chain prerouting / In. Interface WAN1 / Mark Connection / New Connection Mark = WAN1 / Passthrough
Chain prerouting / In. Interface WAN2 Mark Connection / New Connection Mark = WAN2 / Passthrough
PCC Rule:
Chain prerouting / In. Interface Bridge 1 / Per Connection Classifier Both Addresses 2 / 0 / Dst Add Type: ! Local / Mark Connection WAN1 / Passthrough
Chain prerouting / In. Interface Bridge 2 / Per Connection Classifier Both Addresses 2 / 1 / Dst Add Type: ! Local / Mark Connection WAN2 / Passthrough
Output Rule:
Chain output / Connection Mark WAN1 / Mark Routing / New Routing Mark Main / Passthrough
Chain output / Connection Mark WAN2 / Mark Routing / New Routing Mark WAN2 / Passthrough
Mark Route
Chain prerouting / In. Interface Bridge 1 / Connection Mark: WAN1 / Mark Routing New Routing Mark: Main / Passthrough
Chain prerouting / In. Interface Bridge 2 / Connection Mark: WAN2 / Mark Routing New Routing Mark: WAN2 / Passthrough
I require VoIP to access Bridge 2 from WAN 2. I have created these 2 NAT rules:
VoIP
Chain dstnat / protocol TCP / DST Port xxxx / In Interface ether 3 / dst-nat: 172.16.251.x
Chain dstnat / protocol UDP/ DST Port xxxx / In Interface ether 3 / dst-nat: 172.16.251.x
I think I’m almost there.
When both WAN interfaces are up, both Bridges route out WAN 1. Hence my Destination NAT’s no longer pass traffic and there is no audio
When I disable WAN1, everything works for both Bridges routing everything out WAN 2. VoIP audio works
When I disable WAN 2 everything TCP outbound on both Bridges routes out WAN1 and obviously no NAT for UPD
What I’m missing is Bridge1 should only go out WAN1 and Bridge2 should only go out WAN2.
Regardless of the WAN1 Status, Inbound NAT should route on the respected WAN2 Interface. Bridge2 currently fails to route out WAN2 with WAN1 up
I hope this makes sense. I tried to hire an advertised local Mikrotik Technician but he’s not willing to show me how to fix this… he just wants remote access to make changes. I have trust issues with that.
Thank you in Advance.