Fix some problems with routing
before it happened regulary that locally generated ICMP messages left eth0 with wrong source address instead of going out via the vpn interface
This commit is contained in:
parent
4b891bdd23
commit
f555ac2276
3 changed files with 36 additions and 24 deletions
|
@ -1,5 +1,11 @@
|
|||
#!/bin/sh
|
||||
ip route replace 0.0.0.0/1 via $4 table 42
|
||||
ip route replace 128.0.0.0/1 via $4 table 42
|
||||
|
||||
ip rule del priority 30000
|
||||
ip rule add priority 30000 from $4 table 42
|
||||
|
||||
ip route flush cache
|
||||
|
||||
/etc/openvpn/update-dnsmasq-forward
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue