Hi.
My config in general: bridge-inet - main ISP, backup-bridge - backup ISP and ISP for some IP-IP tunnel.
I try to create config where my Router can accept connections from main and backup channels. Some times working well, but sometimes I have problem that I cannot understand.
I have two ISP. And my router has three IP-addresses on two external interfaces:
/interfaces list
add interface=bridge-inet list=wan
add interface=bridge-backup list=wan
After these config setup I have lost packets from inet to my main address router:
Ping statistics for 85.XXX.XXX.20:
Packets: Sent = 854, Received = 824, Lost = 30 (3% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 91ms, Average = 6ms
clearer set of requirements.
what do you need users or groups of users to be able to do or not do…
What is the relationship between the ISP connections (assuming from diff providers) (failover, primary, secondary, equally used etc…)
What is the relationship between lan subnets and the ISP connections…
full config
/export hide-sensitive file=anynameyouwish
@BlackRat, the setting you highlited is IMO invalid. It’s not logical to have address with network address set to same value. If bridge-inet should use both addresses 85.xxx.xxx.20 and 85.xxx.xxx.21 and when router uses either of WAN addresses it can directly connect to the same subnet (which is logical if xxx-es in addresses), then both addresses should be set with same subnet mask (/24) and same network address (85.xxx.xxx.0).
Note that having multiple addresses on same interface doesn’t preclude routing decisions (selection of next hop) nor use of particular address (if using SRC-NAT), other settings take care of that (routing tables, NAT rules). The way you use SRC-NAT (action=masquerade), it probably instructs ROS to use one of WAN addresses, but when using address 85.xxx.xxx.20 it can’t really access upstream router (because no other IP address is inside same subnet) and those connections fail.
I have special rule for additional NAT
add action=src-nat chain=srcnat out-interface=bridge-inet src-address=192.168.188.200 to-addresses=85.XXX.XXX.20
because I want to use another external address for my internal Server.
You can use this as start, removing all your actual routes, route rules and mangles
/ip dns
set servers=1.1.1.1,8.8.8.8
/ip route
add comment="A - 1.1.1.1 must be reachable only from ISP1" distance=1 dst-address=1.1.1.1/32 gateway=85.XXX.XXX.1 scope=10
add comment="B - Recursive Routing, check ping 1.1.1.1 instead of ISP IP" distance=10 gateway=1.1.1.1 check-gateway=ping
add comment="C - ISP2 is alternative Gateway" distance=20 gateway=89.YYY.YYY.1
I don't want to create backup ISP for failover (sorry for "main" and "backup"). I want to create equal paths (but 85.XXX.XXX.1 = main ISP) and create IP-IP tunnels to second (as my "backup") backup-bridge interface. I cannot create this config without mangle, etc.
Made ping test. And I think, that reason is wrong settings for additional address for external interface. I should use 85.xxx.xxx.20**/24** and 85.xxx.xxx.21**/24** instead of 85.xxx.xxx.20/32 and 85.xxx.xxx.21/24
Thanks’ to CZFan anв mkx.