fix openvpn rules
This commit is contained in:
parent
043cab21f5
commit
bf6d01f2d2
@ -36,11 +36,13 @@
|
||||
# START OPENVPN RULES
|
||||
# NAT table rules
|
||||
*nat
|
||||
-F
|
||||
:POSTROUTING ACCEPT [0:0]
|
||||
# Allow traffic from OpenVPN client to everywhere
|
||||
-A POSTROUTING -s 192.168.37.0/24 -o eth0 -j MASQUERADE
|
||||
-A POSTROUTING -s 192.168.37.0/24 -o eth2 -j MASQUERADE
|
||||
COMMIT
|
||||
*filter
|
||||
-A ufw-before-input -i tun+ -j ACCEPT
|
||||
-A ufw-before-forward -i tun+ -j ACCEPT
|
||||
-A ufw-before-forward -i tun+ -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
|
Loading…
Reference in New Issue
Block a user