mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 11:43:03 +03:00
10 lines
348 B
Bash
Executable file
10 lines
348 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# [[file:../../Guix.org::*vpn-start][vpn-start:1]]
|
|
CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*)" | sed 's/ *$//g')
|
|
|
|
echo "Connection: $CONN"
|
|
|
|
sudo nmcli con modify "$CONN" ipv6.method ignore
|
|
nmcli connection up "$CONN"
|
|
sudo openvpn --config ~/.vpn/openvpn.ovpn
|
|
# vpn-start:1 ends here
|