Enable Wireguard to publish to the kernel routing table

This commit is contained in:
Manevolent 2022-12-21 19:11:54 -07:00 committed by GitHub
parent 871c55114a
commit d399ce3caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,6 @@ PostUp = iptables -A FORWARD -i wg0 -j ACCEPT;
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT
{{ if len "${wg_routes:-}" }}{{ range "$wg_routes" | split "," }}PostDown = ip -4 route del {{ . }} dev wg0 metric 31
{{ end }}{{ end }}
Table = off
{{ range files "wireguard/peers" }} {{ if ne . "${tinc_peer_name}" }}
[Peer]