What i want to do is very simple for some but is confusing for me.
Basically I have 3 pppoe (WAN) connections.
I have a local Hotspot subnet of 192.168.99.0/24
I want to split these guys up so a range of
192.168.99.2 to 192.168.99.50 goes to PPPOE1
192.168.99.51 to 192.168.99.100 goes to PPPOE2
and
192.168.99.101 to 192.168.99.253
The steps I took are as follows:
I created the three PPPOE client connections.
I disabled all three options for “Default route, dial on demand, and use peer dns”. Unchecked.
i am not sure on these whether to add the range of source addresses for the nat rules above?
next thing i did was create a mangle rule for the ranges:
chain=prerouting action=mark-routing new-routing-mark=pppoe_test1 passthrough=no src-address=192.168.99.2-192.168.99.50
and so on for the mangle rules.
Im not sure - i have never tried this - but i wouldthink you could make this by have a masqurade rule based on the packet marks.
split to 3 With marks lik you do.
make a maswurade rule using the marks, and have out Interface set to Your different pppoe’s Also use the route rule to have correct default Gateways to Your 3 default routes.