summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-10 22:38:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-10 22:38:13 +0000
commita15a15e7dc503d4b83cfb30db0f37122c7085ee7 (patch)
treecdeed747f0ce644c435a9fd7b50d8ae62144193f /etc
parent6484d9e0a1785a1d4afa1584becc260cb4a987b6 (diff)
downloadpfsense-a15a15e7dc503d4b83cfb30db0f37122c7085ee7.zip
pfsense-a15a15e7dc503d4b83cfb30db0f37122c7085ee7.tar.gz
Enable ftp-proxy
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc3
-rw-r--r--etc/inetd.conf1
-rwxr-xr-xetc/rc3
3 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 72d2024..d5a5e75 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -513,6 +513,9 @@ function filter_rules_generate() {
pass in quick on lo0 all
pass out quick on lo0 all
+# enable ftp-proxy
+rdr on $lanif proto tcp from any to any port 21 -> 127.0.0.1 port 8021
+
# allow access to DHCP server on LAN
pass in quick on $lanif proto udp from any port = 68 to 255.255.255.255 port = 67
pass in quick on $lanif proto udp from any port = 68 to $lanip port = 67
diff --git a/etc/inetd.conf b/etc/inetd.conf
new file mode 100644
index 0000000..79ce987
--- /dev/null
+++ b/etc/inetd.conf
@@ -0,0 +1 @@
+127.0.0.1:8021 stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy -n \ No newline at end of file
diff --git a/etc/rc b/etc/rc
index 6aabaff..1bfedf7 100755
--- a/etc/rc
+++ b/etc/rc
@@ -73,6 +73,9 @@ cd /var/run && cp /dev/null utmp && chmod 644 utmp
echo Starting Secure Shell Services ...
/etc/sshd
+echo Starting INETD for FTP-PROXY...
+/usr/sbin/inetd -wW -C 60
+
/usr/sbin/cron 2>/dev/null
exit 0
OpenPOWER on IntegriCloud