summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-09 22:35:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-09 22:35:40 +0000
commitf7a724e458ccab5ea639ce9b2ddb58c4c8bd78dd (patch)
treeded1300a28cd0cf76a969107ee56319c3a25588f /usr/local/www/firewall_nat_edit.php
parent4335b4af987c79aa3b356bd53d3223810d344b1b (diff)
downloadpfsense-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-xusr/local/www/firewall_nat_edit.php9
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'];
OpenPOWER on IntegriCloud