diff options
author | jim-p <jimp@pfsense.org> | 2011-07-19 11:30:42 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-07-19 11:30:42 -0400 |
commit | 41fa9c9743b74179978ec28f96fb1dcc955a3f07 (patch) | |
tree | 8d3e8f552b3bc72366405966180bd0b8b21fe7f8 /etc/phpshellsessions | |
parent | 810a11bc7661cf7c29a190b9b59d753723f8775b (diff) | |
download | pfsense-41fa9c9743b74179978ec28f96fb1dcc955a3f07.zip pfsense-41fa9c9743b74179978ec28f96fb1dcc955a3f07.tar.gz |
Extend this script to also add an ipv6 rule.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r-- | etc/phpshellsessions/enableallowallwan | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/phpshellsessions/enableallowallwan b/etc/phpshellsessions/enableallowallwan index 152665a..59ab38b 100644 --- a/etc/phpshellsessions/enableallowallwan +++ b/etc/phpshellsessions/enableallowallwan @@ -10,7 +10,17 @@ $filterent["source"]["any"] = ""; $filterent["destination"]["any"] = ""; $filterent["statetype"] = "keep state"; $filterent["os"] = ""; -$filterent["descr"] = "Allow all via pfSsh.php"; +$filterent["descr"] = "Allow all ipv4 via pfSsh.php"; +$config["filter"]["rule"][] = $filterent; +$filterent = array(); +$filterent["type"] = "pass"; +$filterent["ipprotocol"] = "inet6"; +$filterent["interface"] = "wan"; +$filterent["source"]["any"] = ""; +$filterent["destination"]["any"] = ""; +$filterent["statetype"] = "keep state"; +$filterent["os"] = ""; +$filterent["descr"] = "Allow all ipv6 via pfSsh.php"; $config["filter"]["rule"][] = $filterent; echo "Turning off block private networks (if on)...\n"; unset($config["interfaces"]["wan"]["blockpriv"]); |