diff options
author | jim-p <jimp@pfsense.org> | 2012-01-13 14:27:48 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-01-13 14:27:48 -0500 |
commit | 0c305760d1b7a431b21445e7f5436c5571e98392 (patch) | |
tree | c38735c3983eed9623cabc02c8b9b33f6c16002f /usr/local/bin | |
parent | 633136b87f89c5061847d96c955f4f52c9bad99d (diff) | |
download | pfsense-0c305760d1b7a431b21445e7f5436c5571e98392.zip pfsense-0c305760d1b7a431b21445e7f5436c5571e98392.tar.gz |
Allow using subnets and special nets in the CLI version of easyrule
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-x | usr/local/bin/easyrule | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/bin/easyrule b/usr/local/bin/easyrule index eef8277..9850aee 100755 --- a/usr/local/bin/easyrule +++ b/usr/local/bin/easyrule @@ -35,6 +35,11 @@ require_once("shaper.inc"); $message = ""; $specialsrcdst = explode(" ", "any pptp pppoe l2tp openvpn"); +$ifdisp = get_configured_interface_with_descr(); +foreach ($ifdisp as $kif => $kdescr) { + $specialsrcdst[] = "{$kif}"; + $specialsrcdst[] = "{$kif}ip"; +} /* Borrow this function from guiconfig.inc since we can't include it for use at the CLI |