Not Able to Connect with FTP

Hello,

Everything looks really Good. I just install the CyberPanel. I am facing one issue that is i am not able to connect with FTP Account.

Comments

  • Hello @jainsumit12

    What path did you set while creating FTP account?

  • HI Hope.

    /home/demo.adinathwebsolution.com

    that is path address.

  • Server > Security > Firewall

    Turn off firewall and give it a try.

  • yes, its working when turn of FireWall. but is there is any solution so we don't need to turnoff Firewall every time.

  • please send a bug report to [bug at litespeedtech dot com]

  • use iptables to open port 21 (ftp port)

  • 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"
    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"

  • Allow FTP port 20 for active connections incoming and outgoing

    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"
    iptables -A OUTPUT -p tcp -m tcp --dport 20 -m conntrack --ctstate ESTABLISHED -j ACCEPT -m comment --comment "Allow ftp connections on port 20"
    Finally allow FTP passive inbound traffic

    iptables -A INPUT -p tcp -m tcp --sport 1024: --dport 1024: -m conntrack --ctstate ESTABLISHED -j ACCEPT -m comment --comment "Allow passive inbound connections"
    iptables -A OUTPUT -p tcp -m tcp --sport 1024: --dport 1024: -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT -m comment --comment "Allow passive inbound connections"

  • Just tested on this end and i managed to open the Passive ports using the following:

    firewall-cmd --add-service=ftp

  • google cloud ftp

  • Are you able to solve your issue?

Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!