1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

enable masquerade only when "$lan" != "none" (typo fixed)

This commit is contained in:
A Holt 2019-05-23 17:00:27 -04:00 committed by GitHub
parent 7fa7d1d40a
commit a55c7150e8
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