I have protocol config like
1 2 3 4 5 6 7 8 9 10 |
protocols { static { table 4 { route 0.0.0.0/0 { next-hop 192.168.10.1 { } } } } } |
SoftEther TAP device name is tap_se, local ip is 192.168.10.2, remote ip 192.168.10.1.
Internet is connected via pppoe0.
Policy-based routing modified to table 4 route traffic to pppoe0 rather than tap_se.
Check current route table:
1 2 |
root@ubnt:/home/ubnt# show ip route table 4 default via 192.168.10.1 dev pppoe0 |
In my previous post, I added a softether start-up script in /config/scripts/post-config.d/.
I guess vpnserver is launched after policy-based routing rules been applied, that causes policy-based routing find no device/connected routes for 192.168.10.1, then pppoe0 is picked.
I don’t have any good idea (add custom config template is a good choice, but i’m lazy zzZZ..), just disable and re-enable that route table after router is booted.
1 2 3 4 5 |
configure set protocols static table 4 route 0.0.0.0/0 next-hop 192.168.10.1 disable commit delete protocols static table 4 route 0.0.0.0/0 next-hop 192.168.10.1 disable commit |
Incoming search terms:
- ubiquiti edgerouter to softether server
- edgerouter softether
- curvej3s
- hidelca
- leaf881
- softether haproxy
- softether ubnt
- softether 静态路由推送