Create lixonet.sh

This commit is contained in:
Manevolent 2023-04-23 20:07:07 -06:00 committed by GitHub
parent 5372885d6a
commit 3e30ab3c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,5 @@
#!/bin/sh
gateway=`nslookup tinc | awk -F': ' 'NR==6 { print $2 } '`
route="172.31.0.0/16"
iface="eth0"
ip route add $route via $gateway dev $iface