Page 2 of 2

Re: Port-Forwarding for Passive FTP

Posted: Sun Dec 07, 2014 7:35 am
by sennevb
joem wrote:Try stopping iptables and then try to connect.

Code: Select all

ufw status
Status: inactive
i also disabled it in vestacp panel, but still no use..

Re: Port-Forwarding for Passive FTP

Posted: Sun Dec 07, 2014 9:40 am
by sennevb
Note to admin:

maybe it has something to do with proftpd config, how can i go back to previous ftp ??
I allready tried a new installation on a new vps i've set up, but i think theres something
changed in the install scrypt, afte rinstallation the admin panel is not reachable, apache and nginx running tough..

Re: Port-Forwarding for Passive FTP

Posted: Sun Dec 07, 2014 8:34 pm
by sennevb
No one??

Re: Port-Forwarding for Passive FTP

Posted: Sun Dec 07, 2014 11:00 pm
by RouterRat
Any specific reason why you switched to proftpd?

With the default one all you need is adding a line in your config and opening a range of ports like suggested on earlier posts.

I try to stick with default as much as possible in anything.

Re: Port-Forwarding for Passive FTP

Posted: Mon Dec 08, 2014 1:57 am
by joem
sennevb wrote:Note to admin:
maybe it has something to do with proftpd config, how can i go back to previous ftp ??
I allready tried a new installation on a new vps i've set up, but i think theres something
changed in the install scrypt, afte rinstallation the admin panel is not reachable, apache and nginx running tough..
How to replace ProFTPD with vsftpd on a RHEL or CentOS

Code: Select all

# service proftpd stop
# chkconfig proftpd off
# yum install vsftpd
# wget http://c.vestacp.com/0.9.8/rhel/vsftpd.conf -O /etc/vsftpd.conf
# sed -i "s/proftpd/vsftpd/" /usr/local/vesta/conf/vesta.conf
# chkconfig vsftpd on
# service vsftpd start

How to replace ProFTPD with vsftpd on a Debian or Ubuntu

Code: Select all

# service proftpd stop
# update-rc.d -f proftpd remove
# apt-get install vsftpd
# wget http://c.vestacp.com/0.9.8/debian/vsftpd.conf -O /etc/proftpd/vsftpd.conf
# sed -i "s/proftpd/vsftpd/" /usr/local/vesta/conf/vesta.conf
# service vsftpd restart

Re: Port-Forwarding for Passive FTP

Posted: Mon Dec 08, 2014 3:47 am
by emardotcom
Are you using SSL?
If so you need to open firewall and put in 21,12000-12100 in FTP
I have had to do this every time a start a new server.

Run:
sudo nano /etc/vsftpd/vsftpd.conf

and add this to the bottom.

Code: Select all

rsa_cert_file=/usr/local/vesta/ssl/certificate.crt
rsa_private_key_file=/usr/local/vesta/ssl/certificate.key
require_ssl_reuse=NO
ssl_ciphers=HIGH
ssl_enable=YES
ssl_sslv2=NO
ssl_sslv3=NO
ssl_tlsv1=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
This will force your clients to use SFTP so that people won't steal there passwords

Re: Port-Forwarding for Passive FTP

Posted: Mon Dec 08, 2014 5:52 pm
by sennevb
RouterRat wrote:Any specific reason why you switched to proftpd?

With the default one all you need is adding a line in your config and opening a range of ports like suggested on earlier posts.

I try to stick with default as much as possible in anything.
I switched to proftpd because i had problems logging on.

I reainstalled default ftp, opened ports 20 , 12000:12100 and it works now!