Revision 41fa9c97
Added by Jim Pingle almost 14 years ago
etc/phpshellsessions/enableallowallwan | ||
---|---|---|
10 | 10 |
$filterent["destination"]["any"] = ""; |
11 | 11 |
$filterent["statetype"] = "keep state"; |
12 | 12 |
$filterent["os"] = ""; |
13 |
$filterent["descr"] = "Allow all via pfSsh.php"; |
|
13 |
$filterent["descr"] = "Allow all ipv4 via pfSsh.php"; |
|
14 |
$config["filter"]["rule"][] = $filterent; |
|
15 |
$filterent = array(); |
|
16 |
$filterent["type"] = "pass"; |
|
17 |
$filterent["ipprotocol"] = "inet6"; |
|
18 |
$filterent["interface"] = "wan"; |
|
19 |
$filterent["source"]["any"] = ""; |
|
20 |
$filterent["destination"]["any"] = ""; |
|
21 |
$filterent["statetype"] = "keep state"; |
|
22 |
$filterent["os"] = ""; |
|
23 |
$filterent["descr"] = "Allow all ipv6 via pfSsh.php"; |
|
14 | 24 |
$config["filter"]["rule"][] = $filterent; |
15 | 25 |
echo "Turning off block private networks (if on)...\n"; |
16 | 26 |
unset($config["interfaces"]["wan"]["blockpriv"]); |
Also available in: Unified diff
Extend this script to also add an ipv6 rule.