File tree 2 files changed +1
-3
lines changed
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ apt-get install --yes wireguard
34
34
35
35
# Setup wgctrl
36
36
wgctrl_private_key=$(wg genkey)
37
- wg pubkey <<< "$wgctrl_private_key" > /root/wgctrl-public.key
38
37
39
38
mkdir -p /etc/wireguard
40
39
cat << EOF > /etc/wireguard/wgctrl.conf
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ apt-get install --yes wireguard
44
44
45
45
# Setup wgctrl
46
46
wgctrl_private_key=$(wg genkey)
47
- wg pubkey <<< "$wgctrl_private_key" > /root/wgctrl-public.key
48
47
49
48
mkdir -p /etc/wireguard
50
49
cat << EOF > /etc/wireguard/wgctrl.conf
@@ -68,7 +67,7 @@ sed -i -e 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
68
67
sysctl -p
69
68
70
69
# Setup wgdata (interface only)
71
- wg genkey | tee /etc/wireguard/private.key | wg pubkey > /etc/wireguard/public .key
70
+ wg genkey > /etc/wireguard/wgdata-private .key
72
71
73
72
ip link add dev wgdata type wireguard
74
73
ip link set wgdata mtu 1380
You can’t perform that action at this time.
0 commit comments