mirror of https://github.com/k3s-io/k3s
Revert "Merge pull request #1190 from erikwilson/wireguard-keepalive"
This reverts commitpull/1222/heade712cdf7e8
, reversing changes made tod5929bc8c8
. Wireguard docs fail to describe that persistent-keepalive is only valid when peer is set.
parent
1c905b42ab
commit
3376f31fc2
|
@ -58,7 +58,7 @@ const (
|
|||
wireguardBackend = `{
|
||||
"Type": "extension",
|
||||
"PreStartupCommand": "wg genkey | tee privatekey | wg pubkey",
|
||||
"PostStartupCommand": "export SUBNET_IP=$(echo $SUBNET | cut -d'/' -f 1); ip link del flannel.1 2>/dev/null; echo $PATH >&2; wg-add.sh flannel.1 && wg set flannel.1 listen-port 51820 private-key privatekey persistent-keepalive 25 && ip addr add $SUBNET_IP/32 dev flannel.1 && ip link set flannel.1 up && ip route add $NETWORK dev flannel.1",
|
||||
"PostStartupCommand": "export SUBNET_IP=$(echo $SUBNET | cut -d'/' -f 1); ip link del flannel.1 2>/dev/null; echo $PATH >&2; wg-add.sh flannel.1 && wg set flannel.1 listen-port 51820 private-key privatekey && ip addr add $SUBNET_IP/32 dev flannel.1 && ip link set flannel.1 up && ip route add $NETWORK dev flannel.1",
|
||||
"ShutdownCommand": "ip link del flannel.1",
|
||||
"SubnetAddCommand": "read PUBLICKEY; wg set flannel.1 peer $PUBLICKEY endpoint $PUBLIC_IP:51820 allowed-ips $SUBNET",
|
||||
"SubnetRemoveCommand": "read PUBLICKEY; wg set flannel.1 peer $PUBLICKEY remove"
|
||||
|
|
Loading…
Reference in New Issue