Update peer scripts

This commit is contained in:
Laura Hausmann 2020-04-03 23:09:13 +02:00
parent 7fe3a64ad5
commit c0c350ba87
Signed by: zotan
GPG key ID: 5EC1D38FFC321311
2 changed files with 6 additions and 8 deletions

View file

@ -1,8 +1,6 @@
#!/bin/bash
asn="4242422341"
nick="zotan"
ip4="172.20.177.33"
ip6="fdff:b02d:2ef7::2"
source vars.sh
read -p "Interface > " iface
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 node hostname > " host
node="AS${asn}_${nick}_${host}"
node="AS${asn}_${mynick}_${host}"
sudo tee -a /etc/systemd/network/$iface.netdev << END
[NetDev]
@ -35,7 +33,7 @@ sudo tee -a /etc/systemd/network/$iface.network << END
Name = $iface
[Address]
Address = $ip6/128
Address = $int6/128
Peer = $tun6/128
[Address]

View file

@ -1,6 +1,6 @@
#!/bin/bash
ip4="172.20.177.33"
ip6="fe80::2342"
source vars.sh
read -p "Interface > " iface
read -p "Local WG ListenPort > " port