mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
12 lines
363 B
Bash
Executable file
12 lines
363 B
Bash
Executable file
#!/bin/sh
|
|
# [[file:../../Guix.org::*vpn-start][vpn-start:2]]
|
|
echo "Adding default route to $route_vpn_gateway with /0 mask..."
|
|
|
|
IP=/run/current-system/profile/sbin/ip
|
|
|
|
$IP route add default via $route_vpn_gateway
|
|
|
|
echo "Removing /1 routes..."
|
|
$IP route del 0.0.0.0/1 via $route_vpn_gateway
|
|
$IP route del 128.0.0.0/1 via $route_vpn_gateway
|
|
# vpn-start:2 ends here
|