diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-03-16 17:50:44 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-03-16 17:50:44 +0000 |
commit | 049a688e5daac240b2651bbd2cc178612741d23a (patch) | |
tree | f76be91dfaf8e42e68aafaeb281a2eb83435e326 /usr/local/www/firewall_nat_edit.php | |
parent | c9aee395d7baf8d472ad0b481dba099eb6674061 (diff) | |
download | pfsense-049a688e5daac240b2651bbd2cc178612741d23a.zip pfsense-049a688e5daac240b2651bbd2cc178612741d23a.tar.gz |
Remove ftp-proxy/pftpx/ftpsesame references we handle all of this in kernel now.(yay!)
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index 5fe8fd2..b7a65e4 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -224,45 +224,6 @@ if ($_POST) { $config['filter']['rule'][] = $filterent; - /* 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'] = ""; - - if($_POST['extaddr'] == "") { - $filterent['destination']['network'] = "wanip"; - } else { - $filterent['destination']['address'] = $_POST['extaddr']; - } - - $dstpfrom = $_POST['localbeginport']; - $dstpto = $dstpfrom + $_POST['endport'] - $_POST['beginport']; - - if ($dstpfrom == $dstpto) - $filterent['destination']['port'] = $dstpfrom; - else - $filterent['destination']['port'] = $dstpfrom . "-" . $dstpto; - - $filterent['descr'] = "NAT " . $_POST['descr']; - /* See comment above */ - $filterent['descr'] = substr("NAT " . $_POST['descr'], 0, 63); - - $config['filter']['rule'][] = $filterent; - - touch($d_filterconfdirty_path); - - write_config(); - - header("Location: firewall_nat.php?savemsg=The%20changes%20have%20been%20saved.%20%20Please%20note%20that%20we%20have%20added%20an%20additional%20rule%20for%20the%20FTP%20helper."); - - exit; - - } - touch($d_filterconfdirty_path); } |