diff options
| author | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:25:05 +0900 |
|---|---|---|
| committer | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:25:05 +0900 |
| commit | c7a201b58080c7a0f57b38c59e7865aa42c1d029 (patch) | |
| tree | cde6146e3aada31e68594fd4f034abe90621ce34 /EXAMPLE/PER_IP_CONFIG/README | |
| download | vsftpd-master.tar.gz vsftpd-master.zip | |
Import vsftpd-3.0.5.tar.gzHEADlocal/vsftpdmaster
Diffstat (limited to 'EXAMPLE/PER_IP_CONFIG/README')
| -rw-r--r-- | EXAMPLE/PER_IP_CONFIG/README | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/EXAMPLE/PER_IP_CONFIG/README b/EXAMPLE/PER_IP_CONFIG/README new file mode 100644 index 0000000..a9ef352 --- /dev/null +++ b/EXAMPLE/PER_IP_CONFIG/README @@ -0,0 +1,42 @@ +This example should quickly show you the possibilites of per-IP configuration +with vsftpd's tcp_wrappers integration. This is new with v1.1.3. + +To use this, you need vsftpd built with tcp_wrappers! This is accomplished +by editing "builddefs.h" and changing + +#undef VSF_BUILD_TCPWRAPPERS +to +#define VSF_BUILD_TCPWRAPPERS + +And then rebuild. If you are lucky your vendor will have shipped the vsftpd +binary with this already done for you. + +Next, to enable tcp_wrappers integration, you need this in your vsftpd.conf: + +tcp_wrappers=YES + +And you'll need a tcp_wrappers config file. An example one is supplied in this +directory: hosts.allow. It lives at /etc/hosts.allow. + +Let's have a look at the example: + +vsftpd: 192.168.1.3: setenv VSFTPD_LOAD_CONF /etc/vsftpd_tcp_wrap.conf +vsftpd: 192.168.1.4: DENY + +The first line: +If a client connects from 192.168.1.3, then vsftpd will apply the vsftpd +config file /etc/vsftpd_tcp_wrap.conf to the session! These settings are +applied ON TOP of the default vsftpd.conf. +This is obviously very powerful. You might use this to apply different +access restrictions for some IPs (e.g. the ability to upload). +Or you could give certain classes of IPs the ability to skip connection +limits (max_clients=0). +Or you could increase / decrease the bandwidth limiter for certain classes +of IPs. +You get the point :-) + +The second line: +Denies the ability of 192.168.1.4 to connect. Very useful to take care of +troublemakers. And now you don't need xinetd to do it - hurrah. + + |
