How to close port 21?
Use sftp but pentest shows that 21 port is opened. How better to close through iptables or stop the ftp service? In the case of a reboot because it will rise again and it will be open? How best to proceed?
July 2nd 19 at 13:46
Sphinx 2013 Lost connection to MySQL server how to solve?
How to get nearby cities using google maps api?
How to write a local proxy server in c++?
How to create a registration token?
How to cast an array of numbers from a VARCHAR field to INTEGER in PostgreSQL?
It'll fit the cooler into the case?
How to choose a set of tools and the procedure of the study for the web?
How to convert from HTTPS to HTTP?
More answers about
"How to close port 21?"
July 2nd 19 at 13:48
SFTP and FTP are two different protocols. The first works via ssh on port 22, and the second at 21. If port 21 does not need anyone, it should be close or even delete the ftp server
That this was in fact the issue. Can be closed via iptables for example. What to do to stop or delete the ftp server?
commented on July 2nd 19 at 13:51
: It depends on the distro. If the batch (deb/rpm), then remove the appropriate package. Which distribution and which version?
commented on July 2nd 19 at 13:54
commented on July 2nd 19 at 13:57
: type in console sudo netstat-ntulp to see who is listening to port 21
commented on July 2nd 19 at 14:00
: it listens to only one program with the name vsftpd
commented on July 2nd 19 at 14:03
July 2nd 19 at 13:50
If the ftp you don't need, of course it is best to remove or at least disable it.
July 2nd 19 at 13:52
It is possible
July 2nd 19 at 13:54
Add an appropriate rule in firewall IPTables.
iptables -A INPUT -p tcp --dport 21 -j DROP
Find more questions by tags