Solved wireguard bugs

This commit is contained in:
2023-04-18 13:56:43 +02:00
parent 0ddd068ff5
commit 7ef4f7973e
9 changed files with 56 additions and 39 deletions

View File

@@ -3,11 +3,25 @@
name: wireguard-tools
state: present
- name: enable ipv4-forwarding
shell: sysctl net.ipv4.ip_forward=1
- name: create set-mtu.service
copy:
src: set-mtu.service
dest: /etc/systemd/system/set-mtu.service
notify: restart set-mtu.service
- name: enable ipv6-forwarding
shell: sysctl net.ipv6.conf.all.forwarding=1
- name: create set-mtu.sh
template:
src: set-mtu.sh.j2
dest: /usr/local/bin/set-mtu.sh
notify: restart set-mtu.service
- name: create wireguard-ip.conf
copy:
src: "wireguard-ip.conf"
dest: /etc/sysctl.d/wireguard-ip.conf
owner: root
group: root
notify: reload sysctl configuration
- name: create /etc/wireguard/wg0.conf
copy: