Hi.
I have a rb1100 router in my main network.
Lan network(include my servers and etc) connected to this router on ether1-> IP: 192.168.0.254/24
About 30 other networks connected to this router with interface ether2-> IP: 192.221.47.254/24
modem adsl1(192.168.1.254) connected to ether3-> IP: 192.168.1.1/24
modem adsl2(192.168.2.254) connected to ether4-> IP: 192.168.2.1/24
Two groups of client must can use of internet:
1-Clients that connected to this router with VPN(PPTP) to use servers and internet and etc.(these use 172.16.16.0/24)
2-Clients that connected without VPN and use 192.168.0.254/24
My mangles:
add action=mark-routing chain=prerouting new-routing-mark=VPN_Connection src-address=172.16.16.0/24
add action=mark-routing chain=prerouting new-routing-mark= nonVPN_Connection src-address=192.168.0.254/24
My static routes:
add distance=1 gateway=192.168.1.254 pref-src=192.168.1.1 routing-mark= VPN_Connection
add distance=1 gateway=192.168.2.254 pref-src=192.168.2.1 routing-mark= nonVPN_Connection
In this router there are many dynamic, route, NAT and etc.
I want when a request sent to this router, if its an internet request send to adsl modems and if its not internet request, send to other interface according to main route table. but when i use these two routes and mangles, all requests (even request from servers) will be sent to adsl modems.