diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-21 04:38:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-21 04:38:12 +0000 |
commit | 57043ed80fb3bcbce23a012b15abd1aac16af1df (patch) | |
tree | 9d9c88319940d0797c39bb2593ec8e64f6837fb3 /etc | |
parent | b7af3ba2240da14aa84b8463ca6ccdc6c6f1e186 (diff) | |
download | pfsense-57043ed80fb3bcbce23a012b15abd1aac16af1df.zip pfsense-57043ed80fb3bcbce23a012b15abd1aac16af1df.tar.gz |
Insert pftp anchors
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index a178b9f..e9e9345 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -800,6 +800,8 @@ function filter_nat_rules_generate() { $lansa = gen_subnet($lancfg['ipaddr'], $lancfg['subnet']); $natrules = ""; + $natrules .= "nat-anchor \"pftpx/*\"\n"; + $natrules .= "nat-anchor \"natearly/*\"\n"; $natrules .= "nat-anchor \"natrules/*\"\n"; @@ -888,6 +890,7 @@ function filter_nat_rules_generate() { if(!isset($config['system']['disableftpproxy'])) { $natrules .= "# FTP proxy\n"; + $natrules .= "rdr-anchor \"pftpx/*\"\n"; $natrules .= "rdr on " . $lanif . " proto tcp from any to any port 21 -> 127.0.0.1 port 8021\n\n"; } @@ -1645,6 +1648,8 @@ pass in quick proto udp from any to any port = 5050 keep state label "BigPond he # package manager late specific hook anchor "packagelate" +anchor "pftpx/*" + EOD; } |