diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-09 22:35:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-09 22:35:40 +0000 |
commit | f7a724e458ccab5ea639ce9b2ddb58c4c8bd78dd (patch) | |
tree | ded1300a28cd0cf76a969107ee56319c3a25588f /usr/local/www/firewall_nat_edit.php | |
parent | 4335b4af987c79aa3b356bd53d3223810d344b1b (diff) | |
download | pfsense-f7a724e458ccab5ea639ce9b2ddb58c4c8bd78dd.zip pfsense-f7a724e458ccab5ea639ce9b2ddb58c4c8bd78dd.tar.gz |
When selecting WAN ip in NAT port forward, correctly create the helper firewall rule for it if the service is ftp
Ticket #843
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index f75e102..de64ca0 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -197,13 +197,18 @@ if ($_POST) { /* auto add rule to external port 21 as well since we are using * pftpx to help open up ports automatically - */ + */ if($_POST['endport'] == "21") { $filterent = array(); $filterent['interface'] = $_POST['interface']; $filterent['protocol'] = $_POST['proto']; $filterent['source']['any'] = ""; - $filterent['destination']['address'] = $_POST['extaddr']; + + if($_POST['extaddr'] == "wanip") { + $filterent['destination']['network'] = "wanip"; + } else { + $filterent['destination']['address'] = $_POST['extaddr']; + } $dstpfrom = $_POST['localbeginport']; $dstpto = $dstpfrom + $_POST['endport'] - $_POST['beginport']; |