From 41fa9c9743b74179978ec28f96fb1dcc955a3f07 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 19 Jul 2011 11:30:42 -0400 Subject: Extend this script to also add an ipv6 rule. --- etc/phpshellsessions/enableallowallwan | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'etc/phpshellsessions') 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"]); -- cgit v1.1