diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-16 20:38:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-16 20:38:38 +0000 |
commit | 073deb074c2446b3a555054b1e80935a8b9592cb (patch) | |
tree | 48cef155ec2c1202ae667c24ebcf3e5bd2baabeb | |
parent | 549912e311288ce91b7567e7f87976385bc025dc (diff) | |
download | pfsense-073deb074c2446b3a555054b1e80935a8b9592cb.zip pfsense-073deb074c2446b3a555054b1e80935a8b9592cb.tar.gz |
Treat the inbound nat rules the same way as 1:1 and server nat.
-rw-r--r-- | etc/inc/filter.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 8c82811..59de219 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -688,6 +688,15 @@ function is_one_to_one_or_server_nat_rule($iptocheck) { return true; } + if($config['nat']['rule'] <> "") + foreach($config['nat']['rule'] as $onetoone) { + $int = explode("/", $onetoone['target']); + if(ip_in_subnet($iptocheck,$onetoone['target']."/".$onetoone['subnet']) == true) + return true; + if($onetoone['target'] == $target) + return true; + } + return FALSE; } |