Hi Guys.
I can’t get it to work.
Here are the relevant parts of the tables. A few names have been changed to protect the innocent.
Group A’s AP. (RB532 with RouterOS v3.10)
[admin@GroupA] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK BROADCAST INTERFACE
0 10.1.70.1/24 10.1.70.0 10.1.70.255 wlan3
1 10.10.0.1/24 10.10.0.0 10.10.0.255 ether2
2 10.110.10.1/24 10.110.10.0 10.110.10.255 wlan2
3 10.1.0.94/28 10.1.0.80 10.1.0.95 wlan1 (wlan = local)
4 D 10.100.0.94/32 10.100.0.81 0.0.0.0 Gateway (pppoe = internet)
(Note: Internet-bound traffic is accounted via RADIUS and PPPoE, local traffic is not.)
admin@GroupA] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 ADS 0.0.0.0/0 reachable 10.100.0.81 1
1 X S 0.0.0.0/0 10.0.0.81 1
(Note: Other entries in table route local traffic to groupA over wlan. Only default and thus Internet traffic is routed over the pppoe link - in theory.)
[admin@GroupA] > tool traceroute n.n.n.n
ADDRESS STATUS
1 10.100.0.81 3ms 1ms 2ms
2 172.16.1.1 7ms 19ms 2ms
3 ip-n.n.n.n 72ms 61ms 61ms
(Traceroute to Internet address ignores policy routing on Gateway router (to Modem B) and goes via Modem A.)
[admin@GroupA] > tool traceroute 172.16.2.1
ADDRESS STATUS
1 10.100.0.81 4ms 2ms 2ms
2 172.16.2.1 13ms 2ms 2ms
(Yet Modem B is reachable.)
Gateway router (RB433 with RouterOS v3.10)
[admin@Gateway] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK BROADCAST INTERFACE
0 172.16.1.4/24 172.16.1.0 172.16.1.255 ether1 (Group B’s modem)
1 172.16.2.2/24 172.16.2.0 172.16.2.255 ether3 (Group A’s modem)
2 10.1.0.81/28 10.1.0.80 10.1.0.95 Group A
3 10.0.0.49/28 10.0.0.48 10.0.0.63 Group B
4 172.16.3.4/24 172.16.3.0 172.16.3.255 ether2
5 D 10.100.0.81/32 10.100.0.94 0.0.0.0
6 D 10.150.0.1/32 10.150.0.50 0.0.0.0
[admin@Gateway] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 X chain=prerouting action=mark-routing new-routing-mark=GroupB
passthrough=yes in-interface=
1 chain=prerouting action=mark-routing new-routing-mark=GroupA
passthrough=yes in-interface=
[admin@Gateway] /ip route rule> print
Flags: X - disabled, I - inactive
0 src-address=10.100.0.94/32 dst-address=0.0.0.0/0 routing-mark=GroupB
interface=ether3 action=lookup table=GroupB
1 X dst-address=0.0.0.0/0 routing-mark=GroupA interface=ether1 action=lookup
table=GroupA
[admin@Gateway] /ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 reachable 172.16.1.1 1 ether1
1 A S 0.0.0.0/0 reachable 172.16.2.1 1 ether3
(Note: Route 1 via 172.16.2.1. has listed Routing Mark 'GroupA" but console IP route print doesn’t appear to carry Routing Marks???)
If I switch in similar policy routing for Group A, giving Route 0 on Gateway a GroupA routing mark, Group B loses its gateway altogether and can’t get through Gateway.
As far as I can see this exactly follows the example given in the manual. Can anyone see/speculate why it isn’t working?