summaryrefslogtreecommitdiff
path: root/ftp/jftpgw/files/patch-02
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2001-07-15 13:30:20 +0000
committerStefan Eßer <se@FreeBSD.org>2001-07-15 13:30:20 +0000
commit8c7120c228c4389aad4a8a4ea2c4ef09a96932d0 (patch)
treef2353f970c931c79c244c486c7f942b8f158b034 /ftp/jftpgw/files/patch-02
parentUpdate to version 1.4 build 121 (diff)
Highly configurable FTP proxy (under development).
Notes
Notes: svn path=/head/; revision=45142
Diffstat (limited to 'ftp/jftpgw/files/patch-02')
-rw-r--r--ftp/jftpgw/files/patch-0263
1 files changed, 63 insertions, 0 deletions
diff --git a/ftp/jftpgw/files/patch-02 b/ftp/jftpgw/files/patch-02
new file mode 100644
index 000000000000..04ca8a3e3eec
--- /dev/null
+++ b/ftp/jftpgw/files/patch-02
@@ -0,0 +1,63 @@
+--- jftpgw.conf.sample.in~ Thu Apr 26 11:11:56 2001
++++ jftpgw.conf.sample.in Sun Jul 15 14:48:03 2001
+@@ -1,7 +1,15 @@
+-# - This is the configuration file for jftpgw @JFTPGW_VERSION@ -
++# - This is the configuration file for jftpgw 0.0.13a -
+ # - -
+ # - Lines starting with a ``#'' sign and empty lines will be ignored -
+
++####
++#
++# New sample config file constructed from 0.0.12pre plus information
++# from the web site by Stefan Esser <se@freebsd.org>
++#
++####
++
++<global>
+
+ #-Section listen
+ # Bind to the address(es) specified below
+@@ -502,3 +510,43 @@
+
+
+ # - End of configuration file -
++
++</global>
++
++
++# nobody should connect, except for host1 and host2
++<from 0.0.0.0/0 exclude host1 host2>
++ access deny
++</from>
++
++# host1, host2.domain.net and 192.168.181.234 are allowed to connect to some
++# other host on port 21.
++<from host1 host2.domain.net 192.168.181.234>
++ <port 21>
++ access allow
++ </port>
++</from>
++
++# *.domain.net may not connect, this paragraph is not valid for host1 and
++# host2. If the connection comes from .slowdomain.domain.net moreover, limit
++# the connection to 4k/s.
++<from .domain.net exclude host1 host2>
++ access deny
++ <from .slowdomain.domain.net>
++ limit 4
++ </from>
++</from>
++
++# The host on which jftpgw runs may not connect to the proxy itself. Thus,
++# the proxy may not loop by calling itself again
++<to localhost 0.0.0.0 serverhost.domain.net>
++ <port 2370>
++ access deny
++ </port>
++</to>
++
++# This paragraph is valid for all connections again
++<global>
++ defaultmode passive
++</global>
++