Update and rename lixonet.sh to lixonet.sh.tmpl
This commit is contained in:
parent
efa17ce9bb
commit
708411ef1d
@ -1,5 +0,0 @@
|
||||
#!/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
|
7
proxy-frontend/entry/lixonet.sh.tmpl
Normal file
7
proxy-frontend/entry/lixonet.sh.tmpl
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
gateway=`nslookup tinc | awk -F': ' 'NR==6 { print \$2 } '`
|
||||
route="${network_address}/${global_prefix:-16}"
|
||||
iface="eth0"
|
||||
|
||||
echo "Routing \$route to \$gateway via \$iface"
|
||||
ip route add \$route via \$gateway dev \$iface
|
Loading…
x
Reference in New Issue
Block a user