Make masquerade toggleable
This commit is contained in:
parent
9221a3cc67
commit
3da91f14d1
@ -267,7 +267,8 @@ def pinecone_provision():
|
|||||||
yield ":INPUT ACCEPT [0:0]"
|
yield ":INPUT ACCEPT [0:0]"
|
||||||
yield ":OUTPUT ACCEPT [0:0]"
|
yield ":OUTPUT ACCEPT [0:0]"
|
||||||
yield ":POSTROUTING ACCEPT [0:0]"
|
yield ":POSTROUTING ACCEPT [0:0]"
|
||||||
yield "-A POSTROUTING -j MASQUERADE"
|
if not const.DISABLE_MASQUERADE:
|
||||||
|
yield "-A POSTROUTING -j MASQUERADE"
|
||||||
yield "COMMIT"
|
yield "COMMIT"
|
||||||
|
|
||||||
with open("/tmp/rules4", "w") as fh:
|
with open("/tmp/rules4", "w") as fh:
|
||||||
|
@ -177,4 +177,5 @@ SESSION_AGE = 3600
|
|||||||
|
|
||||||
SECRET_STORAGE = getenv_in("SECRET_STORAGE", "fs", "db")
|
SECRET_STORAGE = getenv_in("SECRET_STORAGE", "fs", "db")
|
||||||
|
|
||||||
DISABLE_FIREWALL = os.getenv("DISABLE_FIREWALL") == "True" if os.getenv("DISABLE_FIREWALL") else False
|
DISABLE_FIREWALL = os.getenv("DISABLE_FIREWALL")
|
||||||
|
DISABLE_MASQUERADE = os.getenv("DISABLE_MASQUERADE")
|
||||||
|
Loading…
Reference in New Issue
Block a user