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:
2
roles/native-wireguard-behind-firewall/meta/main.yml
Normal file
2
roles/native-wireguard-behind-firewall/meta/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- native-wireguard
|
4
roles/native-wireguard-behind-firewall/readme.md
Normal file
4
roles/native-wireguard-behind-firewall/readme.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# native-wireguard-behind-nat
|
||||
|
||||
# see
|
||||
- https://gist.github.com/insdavm/b1034635ab23b8839bf957aa406b5e39
|
2
roles/native-wireguard-behind-firewall/tasks/main.yml
Normal file
2
roles/native-wireguard-behind-firewall/tasks/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
- name: adapt iptable rules
|
||||
shell: iptables -A FORWARD -i wg0-client -j ACCEPT && iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
Reference in New Issue
Block a user