1

I am setting up a ftp server on my Ubuntu 16.

After using the following command:

sudo ufw allow 21/tcp
sudo ufw status verbose

I can see the output that says:

21/tcp ALLOW IN Anywhere

But, if I type:

netstat -tnlp

It does not show the port 21 at all

Do I am doing something wrong?

1 Answer 1

3

netstat will only show the port if a service or other program is actually listening for incoming connections on that port. Is your FTP service running?

3
  • It seems that vsftpd is not working at all. When I run netstat -a | grep ftp ti does not show vsftpd
    – Carlos
    Commented Jul 27, 2017 at 17:14
  • Also, i tried: sudo service vsftpd start and after hitting ENTER I dont get any output that says the service is running or the PID.
    – Carlos
    Commented Jul 27, 2017 at 17:15
  • 1
    That's why netstat shows what it does, then.
    – Jeff Schaller
    Commented Jul 27, 2017 at 17:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .