mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Added role native-wireguard-behind-firewall
This commit is contained in:
@@ -6,5 +6,5 @@ Manages wireguard natively on host. More information are available in the [Arch
|
||||
wg genkey | tee peer_A.key | wg pubkey > peer_A.pub
|
||||
``
|
||||
|
||||
# chown root:systemd-network /etc/systemd/network/99-*.netdev
|
||||
# chmod 0640 /etc/systemd/network/99-*.netdev
|
||||
chown root:systemd-network /etc/systemd/network/99-*.netdev
|
||||
chmod 0640 /etc/systemd/network/99-*.netdev
|
||||
|
@@ -8,3 +8,9 @@
|
||||
owner: root
|
||||
group: root
|
||||
notify: restart wireguard
|
||||
|
||||
- name: enable ipv4-forwarding
|
||||
shell: sysctl net.ipv4.ip_forward=1
|
||||
|
||||
- name: enable ipv6-forwarding
|
||||
shell: sysctl net.ipv6.conf.all.forwarding=1
|
||||
|
Reference in New Issue
Block a user