diff options
author | BBcan177 <bbcan177@gmail.com> | 2015-02-17 23:15:06 -0500 |
---|---|---|
committer | BBcan177 <bbcan177@gmail.com> | 2015-02-17 23:15:06 -0500 |
commit | e49ea2af46ed44cd955c1f4513b66ca984c2fc8a (patch) | |
tree | 519e4723b181de52f91a8da056c03dc6b9f50b43 /config | |
parent | 4fbdf9a64da94ce08da8e253d6ab7f4c6eb33ffd (diff) | |
download | pfsense-packages-e49ea2af46ed44cd955c1f4513b66ca984c2fc8a.tar.gz pfsense-packages-e49ea2af46ed44cd955c1f4513b66ca984c2fc8a.tar.bz2 pfsense-packages-e49ea2af46ed44cd955c1f4513b66ca984c2fc8a.zip |
pfBlockerNG - Mod to IPv4 CIDR Regex
Diffstat (limited to 'config')
-rw-r--r-- | config/pfblockerng/pfblockerng.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/pfblockerng/pfblockerng.inc b/config/pfblockerng/pfblockerng.inc index 78622631..df546963 100644 --- a/config/pfblockerng/pfblockerng.inc +++ b/config/pfblockerng/pfblockerng.inc @@ -1189,7 +1189,7 @@ function sync_package_pfblockerng($cron = "") { # IPv4 REGEX Definitions $pfb['range'] = '/((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))-((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))/'; $pfb['block'] = '/(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[ 0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.([0]{1})\s+/'; - $pfb['cidr'] = '/(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)?\/[0-9]{2}/'; + $pfb['cidr'] = '/((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)?\/([1-9]{1}|[12][0-9]|3[012]))$/'; $pfb['single'] = '/(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\s+/'; $pfb['s_html'] = '/(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/'; |