Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1
allow   jane    ubuntuforums.org
deny john naughtysite.net
allow ahmed 192.168.101.*
allow ahmed *.ubuntu.com
allow ahmed *.matthewhelmke.net
deny anonymous 201.*

The is a wildcard that matches any combination of that address. For
example, allow ahmed
.matthewhelmke.net allows the user
ahmed to log in to the FTP server from any address that contains the domain
name matthewhelmke.net. Similarly, the anonymous user is not allowed
to access FTP if the user is coming from a 201 public Class C IP address. You
should set the permissions on this file to 600.


Changes made to your system’s FTP server configuration files become active
after only you restart inetd because configuration files are only parsed at
startup. To restart inetd as root, issue the command
/etc/init.d/inetutils-inetd restart. This makes a call to the
same shell script that is called at system startup and shutdown for any
runlevel to start or stop the inet daemon. inetd should report its status as
follows:


Click here to view code image
matthew@seymour:~$ sudo /etc/init.d/inetutils-inetd restart
Stopping internet superserver inetd:
[ OK ]
Starting internet superserver inetd:
[ OK ]


After it is restarted, the FTP server is accessible to all incoming requests.


References


http://www.openssh.com—The  OpenSSH home    page    and source  for the latest
version of OpenSSH and its component clients, such as sftp

http://vsftpd.beasts.org—Home   page    for the vsftd   FTP server
https://help.ubuntu.com/community/FtpServer—Ubuntu community
documentation for setting up and using an FTP server
http://help.ubuntu.com/18.04/serverguide/index.html—The official
Ubuntu server guide for setting up and using vsftd
Free download pdf