summaryrefslogtreecommitdiffstats
path: root/etc/inc/easyrule.inc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-02-15 16:20:28 -0500
committerjim-p <jim@pingle.org>2010-02-15 16:20:28 -0500
commitdadad8b39049484693efd0fc242ee86ba6f1bc9a (patch)
tree6d219819d5e9f073b4565c5d780e13d46ab7ae66 /etc/inc/easyrule.inc
parent066afaf11ce3a9a75124d1721cc43ab9f500c086 (diff)
downloadpfsense-dadad8b39049484693efd0fc242ee86ba6f1bc9a.zip
pfsense-dadad8b39049484693efd0fc242ee86ba6f1bc9a.tar.gz
Clean up some formatting while I'm here.
Diffstat (limited to 'etc/inc/easyrule.inc')
-rw-r--r--etc/inc/easyrule.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/inc/easyrule.inc b/etc/inc/easyrule.inc
index 8bba55c..f07b67c 100644
--- a/etc/inc/easyrule.inc
+++ b/etc/inc/easyrule.inc
@@ -28,7 +28,7 @@
POSSIBILITY OF SUCH DAMAGE.
*/
/*
- pfSense_BUILDER_BINARIES:
+ pfSense_BUILDER_BINARIES:
pfSense_MODULE: filter
*/
@@ -38,21 +38,21 @@ function easyrule_find_rule_interface($int) {
global $config;
/* Borrowed from firewall_rules.php */
$iflist = get_configured_interface_with_descr(false, true);
-
+
if ($config['pptpd']['mode'] == "server")
$iflist['pptp'] = "PPTP VPN";
-
+
if ($config['pppoe']['mode'] == "server")
$iflist['pppoe'] = "PPPoE VPN";
-
+
if ($config['l2tp']['mode'] == "server")
$iflist['l2tp'] = "L2TP VPN";
/* add ipsec interfaces */
- if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable'])){
+ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable'])){
$iflist["enc0"] = "IPSEC";
}
-
+
if (isset($iflist[$int]))
return $int;
@@ -60,7 +60,7 @@ function easyrule_find_rule_interface($int) {
if (strtolower($int) == strtolower($ifd))
return $if;
}
-
+
if (substr($int, 0, 4) == "ovpn")
return "openvpn";
@@ -103,7 +103,7 @@ function easyrule_block_rule_create($int = 'wan') {
/* Make up a new rule */
$filterent = array();
$filterent['type'] = 'block';
- $filterent['interface'] = $int;
+ $filterent['interface'] = $int;
$filterent['source']['address'] = $blockaliasname . strtoupper($int);
$filterent['destination']['any'] = '';
$filterent['descr'] = "Easy Rule: Blocked from Firewall Log View";
OpenPOWER on IntegriCloud