Home: Enable v4 masq for vpn clients.
This commit is contained in:
parent
f53ed95207
commit
99649e19cc
|
@ -144,8 +144,8 @@ in
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
# Wan access for 10.0.0.0/24 subnet.
|
# Wan access for 10.0.0.0/8 subnet.
|
||||||
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d 0/0 -o ${wan} -j MASQUERADE
|
iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -d 0/0 -o ${wan} -j MASQUERADE
|
||||||
|
|
||||||
# Full access from Lan.
|
# Full access from Lan.
|
||||||
ip46tables -I INPUT -j ACCEPT -i ${lan}
|
ip46tables -I INPUT -j ACCEPT -i ${lan}
|
||||||
|
@ -165,7 +165,7 @@ in
|
||||||
ip46tables -I INPUT -j ACCEPT -i ${wan} -p udp --dport 51413
|
ip46tables -I INPUT -j ACCEPT -i ${wan} -p udp --dport 51413
|
||||||
|
|
||||||
# Terraria server.
|
# Terraria server.
|
||||||
ip46tables -I INPUT -j ACCEPT -i ${wan} -p tcp --dport 22777
|
# ip46tables -I INPUT -j ACCEPT -i ${wan} -p tcp --dport 22777
|
||||||
|
|
||||||
# Mumble.
|
# Mumble.
|
||||||
ip46tables -I INPUT -j ACCEPT -i ${wan} -p tcp --dport 22666
|
ip46tables -I INPUT -j ACCEPT -i ${wan} -p tcp --dport 22666
|
||||||
|
|
Loading…
Reference in a new issue