CyberPanel Community

Not Able to Connect with FTP

ja
jainsumit12 #1

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.

21 replies
Ho
Hope #2

Hello @jainsumit12

What path did you set while creating FTP account?

ja
jainsumit12 #3

HI Hope.

/home/demo.adinathwebsolution.com

that is path address.

Ho
Hope #4

Server > Security > Firewall

Turn off firewall and give it a try.

ja
jainsumit12 #5

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

Ho
Hope #6

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

Dy
Dynamite #7

use iptables to open port 21 (ftp port)

Dy
Dynamite #8

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”

Dy
Dynamite #9

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”

Dy
Dynamite #10

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

firewall-cmd --add-service=ftp

us
usmannasir #12

Are you able to solve your issue?

wi
winterrise #13

Not only FTP port 20 ,21 default FTP TLS tcp port is 40110-40210

us
usmannasir #14

@winterrise said:
Not only FTP port 20 ,21 default FTP TLS tcp port is 40110-40210

The installation opens these ports by default, are you having any issues?

wi
winterrise #15

I am using GCP firewall , disable CentOS’s Firewall . Add a firewall rule accept
tcp:21
tcp:60000-61000
tcp:20
And then the ftp is worked .

us
usmannasir #16

Yup, you need to open ports on GCP firewall too.

ca
capt3n #17

ftp still not connect :frowning:

us
usmannasir #18
ftp still not connect :(

Are you using Google Cloud?

Also, mention the version.

ca
capt3n #19

use server colocation my os centos 7

da
dandi41 #20

I could not find the opening topic. I have the same problem. Everything was normal last night, but I can not get into FTP today.
version : Screenshot by Lightshot
please help me. tired now: S
thank you

xp
xpto #21

In new installation I have the some problem I cant login through the FTP

what I did was
1- I deleted the FTP Firewall entry
2- re-entered an entry for FTP again in Firewall.

I tested the FTP entry and everything went well and it works … :slight_smile:

vi
viethd89 #22

Type your comment> @xpto said:

In new installation I have the some problem I cant login through the FTP

what I did was
1- I deleted the FTP Firewall entry
2- re-entered an entry for FTP again in Firewall.

I tested the FTP entry and everything went well and it works … :slight_smile:

Can you tell me more about commands done in SSH ?!

Sign in to reply