1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

Merge pull request #1691 from holta/firewall-usability

Fix Typo: enable masquerade only when "$lan" != "none" (typo fixed)
This commit is contained in:
A Holt 2019-05-23 14:03:16 -07:00 committed by GitHub
commit b254d8a7c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,7 +164,7 @@ if [ "$wan" != "none" ]; then
fi
# Typically False, to keep client machines (e.g. students) off the Internet
if [ "$iiab_gateway_enabled" == "True" ] && [ "$lan" == "none" ]; then
if [ "$iiab_gateway_enabled" == "True" ] && [ "$lan" != "none" ]; then
$IPTABLES -A POSTROUTING -t nat -o $wan -j MASQUERADE
fi