summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-07-19 11:30:42 -0400
committerjim-p <jimp@pfsense.org>2011-07-19 11:30:42 -0400
commit41fa9c9743b74179978ec28f96fb1dcc955a3f07 (patch)
tree8d3e8f552b3bc72366405966180bd0b8b21fe7f8 /etc
parent810a11bc7661cf7c29a190b9b59d753723f8775b (diff)
downloadpfsense-41fa9c9743b74179978ec28f96fb1dcc955a3f07.zip
pfsense-41fa9c9743b74179978ec28f96fb1dcc955a3f07.tar.gz
Extend this script to also add an ipv6 rule.
Diffstat (limited to 'etc')
-rw-r--r--etc/phpshellsessions/enableallowallwan12
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"]);
OpenPOWER on IntegriCloud