Make masquerade toggleable
This commit is contained in:
parent
9221a3cc67
commit
3da91f14d1
@ -267,6 +267,7 @@ 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]"
|
||||||
|
if not const.DISABLE_MASQUERADE:
|
||||||
yield "-A POSTROUTING -j MASQUERADE"
|
yield "-A POSTROUTING -j MASQUERADE"
|
||||||
yield "COMMIT"
|
yield "COMMIT"
|
||||||
|
|
||||||
|
@ -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