diff options
author | jim-p <jimp@pfsense.org> | 2014-05-23 13:46:20 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-05-23 14:00:05 -0400 |
commit | 0d0c01cac8d4f74556ba702b85d5b7059a312d60 (patch) | |
tree | 8edbfdadf2f546825f78ba8b93e890b7628251f4 /etc/inc | |
parent | 23b3e6792f069839242a03583e9d386adf3829eb (diff) | |
download | pfsense-0d0c01cac8d4f74556ba702b85d5b7059a312d60.zip pfsense-0d0c01cac8d4f74556ba702b85d5b7059a312d60.tar.gz |
Add (self) keyword for specifying "any IP address on this firewall" as a rule choice.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 7683b23..7ded056 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2136,6 +2136,9 @@ function filter_generate_address(& $rule, $target = "source", $isnat = false) { $lansn = $FilterIflist['lan']['snv6']; $src = "{$lansa}/{$lansn}"; break; + case '(self)': + $src = "(self)"; + break; case 'pptp': $pptpsav6 = gen_subnetv6($FilterIflist['pptp']['sav6'], $FilterIflist['pptp']['snv6']); $pptpsnv6 = $FilterIflist['pptp']['snv6']; @@ -2172,6 +2175,9 @@ function filter_generate_address(& $rule, $target = "source", $isnat = false) { $lansn = $FilterIflist['lan']['sn']; $src = "{$lansa}/{$lansn}"; break; + case '(self)': + $src = "(self)"; + break; case 'pptp': if (isset($config['pptpd']['n_pptp_units']) && is_numeric($config['pptpd']['n_pptp_units'])) $pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+($config['pptpd']['n_pptp_units']-1))); |