AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Sudo iptables -A INPUT -p tcp -m tcp -sport 1024: -dport 1024: -m conntrack -ctstate ESTABLISHED -j ACCEPT -m comment -comment "Allow passive inbound connections" Sudo iptables -A OUTPUT-p tcp -m tcp -dport 20-m conntrack -ctstate ESTABLISHED -j ACCEPT -m comment -comment "Allow ftp connections on port 20" Sudo iptables -A INPUT -p tcp -m tcp -dport 20-m conntrack -ctstate ESTABLISHED,RELATED-j ACCEPT-m comment -comment "Allow ftp connections on port 20" Sudo iptables -A OUTPUT-p tcp -m tcp -dport 21-m conntrack -ctstate NEW,ESTABLISHED -j ACCEPT -m comment -comment "Allow ftp connections on port 21" Sudo iptables -A INPUT -p tcp -m tcp -dport 21-m conntrack -ctstate ESTABLISHED,NEW-j ACCEPT-m comment -comment "Allow ftp connections on port 21" Or universal command for iptables, if no shell is not used: Sudo firewall-cmd -permanent -add-port=1024/tcp Sudo firewall-cmd -permanent -add-port=20/tcp Sudo firewall-cmd -permanent -add-port=21/tcp For example, firewalld in CentOS with the command will look like this: The commands for this will depend on the shell you are using firewall. Otherwise, you need to open the FTP port in the server firewall. If a team does not show error message Connection refused means the port is available and the problem is not here. Then you try to connect to this port with telnet command: If you do not specify any port in the interface, the default is port 21. If you have access to the server on which you installed FTP, make sure that the configuration file is specified the port to connect to. In this case, you can get the ERRCONREFUSED error or connection refused by server Filezilla. You are trying to connect to sFTP server.Ĭonsider the solution for each cause.The server does not support TLS encryption.Entered is not a valid username and password.The port of FTP server is closed by the firewall or enter incorrect.
0 Comments
Read More
Leave a Reply. |