diff options
| author | Nakidai <nakidai@disroot.org> | 2025-07-31 17:12:27 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-07-31 17:12:27 +0300 |
| commit | b4709429ed88563982412a5a027b92143c37e268 (patch) | |
| tree | cd56dfeac7cafcfcb69925b12376d79b8776d3fd /fvpn_stop.sh | |
| download | fatvpn-6149a454bd2699044d2303f585aea7c67819b351.tar.gz fatvpn-6149a454bd2699044d2303f585aea7c67819b351.zip | |
Add files v1.0.0
Diffstat (limited to 'fvpn_stop.sh')
| -rwxr-xr-x | fvpn_stop.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fvpn_stop.sh b/fvpn_stop.sh new file mode 100755 index 0000000..5149fba --- /dev/null +++ b/fvpn_stop.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +TAP=fvpn0 +SERVER=vpn.example.org + +ip route del 0.0.0.0/1 +ip route del 128.0.0.0/1 +ip route del "$(dig +short $SERVER | head -1)/32" + +killall fatvpn +ip link set $TAP down +ip tuntap del $TAP mode tap + |