Vsftpd problem to connect WAN

Issues related to applications and software problems
Post Reply
luckypt
Posts: 14
Joined: 2017/02/24 10:42:25

Vsftpd problem to connect WAN

Post by luckypt » 2017/03/17 08:47:11

Hello everyone.

I'm having problem's with vsftpd when i want to connect to my server when i'm outdoor.
In Lan everything works great i do ftp://myip, I put my credentials all is good...
If i'm outdoor and I'm connected to OpenVPN (in the same server) i have access to ftp too.
The problem is when i'm outdoor and i want to connect without vpn:
when i do ftp://dns.noip.me:port it just charge for 5/10 mins and nothing....
my "ip" is ok because i can connect to vpn,ssh and webmin so its not a problem of portforward (i think) externalport 6666(exemple) -> internal port 21 ->192.1......(centos ip)

in CentOS i have enable firewalld for port 21/tcp and ftp service
so i can't understand why i don't have access..

Anyone can help me?

thank you in advance

LuCkY

User avatar
TrevorH
Forum Moderator
Posts: 28578
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Vsftpd problem to connect WAN

Post by TrevorH » 2017/03/17 09:33:13

Did you open tcp port 21 or did you enable the ftp service? You shouldn't do both and the correct thing is to run firewall-cmd --enable-service=ftp (then again with --permanent).

Try telling your client to use passive mode.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

luckypt
Posts: 14
Joined: 2017/02/24 10:42:25

Re: Vsftpd problem to connect WAN

Post by luckypt » 2017/03/17 11:52:24

TrevorH wrote:Did you open tcp port 21 or did you enable the ftp service? You shouldn't do both and the correct thing is to run firewall-cmd --enable-service=ftp (then again with --permanent).

Try telling your client to use passive mode.
Tks TrevorH i removed the 21/tcp port and it work -.- shame on me...

Post Reply

Return to “CentOS 7 - Software Support”