This commit is contained in:
parent
c254799d4a
commit
d3a1b4178c
@ -3,21 +3,21 @@ ansible_host: "192.168.1.42"
|
||||
ansible_python_interpreter: "/usr/bin/python3"
|
||||
wireguard_address: "10.0.0.7/24"
|
||||
wireguard_byhost_allowed_ips:
|
||||
merlin: 10.0.0.7,192.168.1.42
|
||||
corwin: 10.0.0.7,192.168.1.42
|
||||
merlin: 10.0.0.7,192.168.1.42,192.168.1.0/24
|
||||
corwin: 10.0.0.7,192.168.1.42,192.168.1.0/24
|
||||
perrsistent_keepalive: "20"
|
||||
wireguard_endpoint: ""
|
||||
|
||||
wireguard_postup:
|
||||
- iptables -A FORWARD -i wg0 -j ACCEPT
|
||||
- iptables -A FORWARD -o wg0 -j ACCEPT
|
||||
- iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
||||
- iptables -t nat -A POSTROUTING -o enp2s0 -j MASQUERADE
|
||||
- sysctl -w net.ipv4.ip_forward=1
|
||||
|
||||
wireguard_postdown:
|
||||
- iptables -D FORWARD -i wg0 -j ACCEPT
|
||||
- iptables -D FORWARD -o wg0 -j ACCEPT
|
||||
- iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
|
||||
- iptables -t nat -D POSTROUTING -o enp2s0 -j MASQUERADE
|
||||
- sysctl -w net.ipv4.ip_forward=0
|
||||
|
||||
partition_table:
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
wireguard_address: "10.0.0.2/24"
|
||||
wireguard_byhost_allowed_ips:
|
||||
merlin: 10.0.0.2,192.168.1.40,192.168.1.0/24
|
||||
corwin: 10.0.0.2,192.168.1.40,192.168.1.0/24
|
||||
merlin: 10.0.0.2,192.168.1.40
|
||||
corwin: 10.0.0.2,192.168.1.40
|
||||
perrsistent_keepalive: "30"
|
||||
wireguard_endpoint: ""
|
||||
|
||||
|
@ -20,6 +20,8 @@ bleys
|
||||
|
||||
[database]
|
||||
oscar
|
||||
bleys
|
||||
|
||||
[rsyncd]
|
||||
oscar
|
||||
bleys
|
||||
|
Loading…
Reference in New Issue
Block a user