Project

General

Profile

Download (742 Bytes) Statistics
| Branch: | Tag: | Revision:
1
global $config;
2
$config = parse_config(true);
3
echo "Adding allow all rule...\n";
4
$filterent = array();
5
$filterent["type"] = "pass";
6
$filterent["interface"] = "wan";
7
$filterent["source"]["any"] = "";
8
$filterent["destination"]["any"] = "";
9
$filterent["statetype"] = "keep state";
10
$filterent["os"] = "";
11
$filterent["descr"] = "Allow all via pfSsh.php";
12
$config["filter"]["rule"][] = $filterent;
13
echo "Turning off block private networks (if on)...\n";
14
unset($config["interfaces"]["wan"]["blockpriv"]);
15
unlink_if_exists("/tmp/config.cache");
16
write_config("pfSsh.php added allow all wan rule");
17
unlink_if_exists("/tmp/config.cache");
18
$config = parse_config(true);
19
echo "Reloading the filter configuration...";
20
filter_configure_sync();
21
echo "\n\n";
(3-3/6)