commit e5822d09fd6391cdabae0bb263b4683e2a625836
parent 14330433290d000b848119581107f534686bfc49
Author: sin <sin@2f30.org>
Date: Wed, 8 Aug 2018 09:23:26 +0100
2f30-vpn: Use explicit netmask
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/2f30-vpn b/2f30-vpn
@@ -53,12 +53,12 @@ EOF
cat > $basedir/tinc-up << EOF
ip link set \$INTERFACE up
-ip addr add $address dev \$INTERFACE
+ip addr add $address/24 dev \$INTERFACE
EOF
chmod +x $basedir/tinc-up
cat > $basedir/tinc-down << EOF
-ip addr del $address dev \$INTERFACE
+ip addr del $address/24 dev \$INTERFACE
ip link set \$INTERFACE down
EOF
chmod +x $basedir/tinc-down