maybe consider it crazy question, but actually it was strength for me, But here is my issue:
let's think that you have one router board that you connected it to internet using pppoe connection.
then you enable check-box for "Add Default Route" on the pppoe client.
So this rule is created on ip > route as bellow:
Code: Select all
0.0.0.0 [Remote-PPPOE-Gateway] Metric=0
If the enable "add default route" in your pptp client too. maybe your access to internet is completely lost. because of the new route that I think have overlapped with the last one:
Code: Select all
0.0.0.0 [Remote-PPTP-Gateway] Metric=0
also you can have both access to internet and your vpn, if you don't enable check-box for "add default route" (on pptp vpn client) in your router board device. and add the remote subnet as static route as the bellow: (consider 192.168.200.0/24 is subnet of remote lan and your lan subnet is 192.168.0.0/24)
Code: Select all
192.168.200.0/24 [PPTP-VPN-Client-As-Gateway] Metric=1
in fact i think the "Metric" is considered as main criteria for setting priority of route list.
so now we have one general rule in route list for 0.0.0.0 taht guide eveything through your PPPOE gateway. but why the 192.168.200.0/24 does not included in really?
in fact you have two rule like bellow in your route list:
Code: Select all
0.0.0.0 [PPPOE-Gateway] Metric=0
192.168.200.0/24 [PPTP-VPN-Client-As-Gateway] Metric=1
I was wondering if anybody can correct my issue or my thinking about this that why it happens such this.
Thanks in advance
Footnote: i know it can be possible to use mangle for this with routng-mark and separate routing table completely but instead of that, using just one main-routing-table with above configuration is much preferred with lower resource usage.