mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Cleaned up and refactored
This commit is contained in:
5
roles/client-wireguard-behind-firewall/README.md
Normal file
5
roles/client-wireguard-behind-firewall/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# client-wireguard-behind-nat
|
||||
|
||||
# see
|
||||
- https://gist.github.com/insdavm/b1034635ab23b8839bf957aa406b5e39
|
||||
- https://wiki.debian.org/iptables
|
2
roles/client-wireguard-behind-firewall/meta/main.yml
Normal file
2
roles/client-wireguard-behind-firewall/meta/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- client-wireguard
|
2
roles/client-wireguard-behind-firewall/tasks/main.yml
Normal file
2
roles/client-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