mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Latest VPS script updates
This commit is contained in:
parent
9840ccd202
commit
5b8b41326e
6 changed files with 30 additions and 16 deletions
|
@ -16,6 +16,7 @@ if [ "$1" = "start" ]; then
|
|||
ip tunnel add ${DEV} mode sit remote ${REMOTEIP} local ${LOCALIP}
|
||||
ip -6 addr add ${LOCALIP6} dev ${DEV}
|
||||
ip link set ${DEV} up
|
||||
[ -n "$ULA" ] && ip route replace ${ULA} via $(echo ${REMOTEIP6} | cut -d/ -f1) dev ${DEV}
|
||||
fi
|
||||
if [ "$1" = "stop" ]; then
|
||||
ip tunnel del ${DEV}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue