diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-31 17:55:08 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-31 17:55:08 +0000 |
commit | 00fa955eac3b6602c4966a25854aaad8ae0d6a7f (patch) | |
tree | e596de2acf5debb13ee9142373a98ad7a9ba6fb1 /etc | |
parent | 3d24150f4b01ea8700d82e68afdc09fa4f11ca46 (diff) | |
download | pfsense-00fa955eac3b6602c4966a25854aaad8ae0d6a7f.zip pfsense-00fa955eac3b6602c4966a25854aaad8ae0d6a7f.tar.gz |
Allow "any" as a source network on nat mappings
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 709551c..4abda14 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2132,8 +2132,12 @@ function process_carp_nat_rules() { if($config['installedpackages']['carp']['config'] != "") foreach($config['installedpackages']['carp']['config'] as $carp) { $ip = $carp['ipaddress']; - $int = find_ip_interface($ip); - $carp_int = find_carp_interface($ip); + if($ip <> "any") { + $ipnet = "any"; + } else { + $int = find_ip_interface($ip); + $carp_int = find_carp_interface($ip); + } if($int != false and $int != $wan_interface) { $ipnet = convert_ip_to_network_format($ip, $carp['netmask']); $lines .= "nat on {$int} inet from {$ipnet} to any -> ({$carp_int}) \n"; |