Make it more automatic and reduce usage of rc.local
VPS A
cat /etc/network/interfaces
|
|
cat /etc/network/if-up.d/xxxx-up
|
|
head /root/scripts/routes-up.sh
The file is modified from https://github.com/sabersalv/freedom-routes, by appending “table 230” to each line
|
|
cat /etc/network/if-down.d/xxxx-down
|
|
cat /etc/iproute2/rt_tables
|
|
VPS B
cat /etc/network/interfaces
|
|
iptables -t nat -nvL
|
|