Update peer scripts
This commit is contained in:
parent
7fe3a64ad5
commit
c0c350ba87
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
asn="4242422341"
|
|
||||||
nick="zotan"
|
source vars.sh
|
||||||
ip4="172.20.177.33"
|
|
||||||
ip6="fdff:b02d:2ef7::2"
|
|
||||||
|
|
||||||
read -p "Interface > " iface
|
read -p "Interface > " iface
|
||||||
read -p "Local WG ListenPort > " port
|
read -p "Local WG ListenPort > " port
|
||||||
|
@ -12,7 +10,7 @@ read -p "Peer DN42 IPv4 > " tun4
|
||||||
read -p "Peer DN42 IPv6 > " tun6
|
read -p "Peer DN42 IPv6 > " tun6
|
||||||
read -p "Peer node hostname > " host
|
read -p "Peer node hostname > " host
|
||||||
|
|
||||||
node="AS${asn}_${nick}_${host}"
|
node="AS${asn}_${mynick}_${host}"
|
||||||
|
|
||||||
sudo tee -a /etc/systemd/network/$iface.netdev << END
|
sudo tee -a /etc/systemd/network/$iface.netdev << END
|
||||||
[NetDev]
|
[NetDev]
|
||||||
|
@ -35,7 +33,7 @@ sudo tee -a /etc/systemd/network/$iface.network << END
|
||||||
Name = $iface
|
Name = $iface
|
||||||
|
|
||||||
[Address]
|
[Address]
|
||||||
Address = $ip6/128
|
Address = $int6/128
|
||||||
Peer = $tun6/128
|
Peer = $tun6/128
|
||||||
|
|
||||||
[Address]
|
[Address]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ip4="172.20.177.33"
|
|
||||||
ip6="fe80::2342"
|
source vars.sh
|
||||||
|
|
||||||
read -p "Interface > " iface
|
read -p "Interface > " iface
|
||||||
read -p "Local WG ListenPort > " port
|
read -p "Local WG ListenPort > " port
|
||||||
|
|
Loading…
Reference in a new issue