From bc243cd1d3e44eb382031a54080ba1c9f3199b26 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Wed, 4 Aug 2021 11:29:35 +0300 Subject: [PATCH] feat(vpn): exclude more networks from vpn-start script --- Guix.org | 2 +- bin/scripts/vpn-start | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Guix.org b/Guix.org index ffa504f..4fdbfb3 100644 --- a/Guix.org +++ b/Guix.org @@ -568,7 +568,7 @@ As of now, CyberGhost doesn't provide ipv6, so we have to disable it. #+begin_src bash :tangle ~/bin/scripts/vpn-start export DISPLAY=:0 -CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*)" | sed 's/ *$//g') +CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*|vnet.*|virbr.*)" | sed 's/ *$//g') if [ -z "$CONN" ]; then echo "No connection!" diff --git a/bin/scripts/vpn-start b/bin/scripts/vpn-start index cffadd9..a88cc5a 100755 --- a/bin/scripts/vpn-start +++ b/bin/scripts/vpn-start @@ -1,7 +1,7 @@ #!/usr/bin/env bash # [[file:../../Guix.org::*vpn-start][vpn-start:1]] export DISPLAY=:0 -CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*)" | sed 's/ *$//g') +CONN=$(nmcli -f NAME con show --active | grep -Ev "(.*docker.*|NAME|br-.*|veth.*|tun.*|vnet.*|virbr.*)" | sed 's/ *$//g') if [ -z "$CONN" ]; then echo "No connection!"