Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Port-Forwarding for Passive FTP

General questions about VestaCP
Post Reply
  • Print view
Advanced search
17 posts
  • 1
  • 2
  • Next
turkey3
Posts: 75
Joined: Tue Aug 19, 2014 6:59 pm

Port-Forwarding for Passive FTP
  • Quote

Post by turkey3 » Sun Nov 09, 2014 1:45 pm

I broke down my problem to active FTP works for clients but not passive. I think this might be an issue with unforwarded ports. What ports do I need forwarded for passive to work?
Top

sim
Posts: 101
Joined: Sat Nov 22, 2014 7:47 pm

Re: Port-Forwarding for Passive FTP
  • Quote

Post by sim » Sat Nov 22, 2014 7:51 pm

Hello

Please check /etc/vsfptd/vsttpd.conf

For the Passive mode ports,
i have customized them:

Code: Select all

pasv_max_port=65534
pasv_min_port=50001
Don't forget to add them to the firewall, in my case, Allow TCP 50001:65534
Top

imperio
VestaCP Team
Posts: 6795
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Port-Forwarding for Passive FTP
  • Quote

Post by imperio » Sun Nov 23, 2014 1:08 am

Hello,
We already know about this problem. Fix will be soon
Top

sennevb
Posts: 31
Joined: Fri Dec 05, 2014 3:10 pm

Re: Port-Forwarding for Passive FTP
  • Quote

Post by sennevb » Fri Dec 05, 2014 3:12 pm

Any workaround for this, i allready installed proftpd, but still cant connect properly.
I opened port 20 in firewall, but cant upload things now..
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 7x
Web: nginx + php-fpm
Re: Port-Forwarding for Passive FTP
  • Quote

Post by joem » Sat Dec 06, 2014 2:26 am

sennevb wrote:Any workaround for this, i allready installed proftpd, but still cant connect properly.
I opened port 20 in firewall, but cant upload things now..
EDIT

Code: Select all

 nano /etc/proftpd.conf
ADD
PassivePorts 12000 12500
As sim said dont forget to add the ports to your firewall
Top

imperio
VestaCP Team
Posts: 6795
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Port-Forwarding for Passive FTP
  • Quote

Post by imperio » Sat Dec 06, 2014 12:16 pm

Try to use this command

Code: Select all

echo "PROTOCOL='TCP' PORT='12000:12100'" >> /usr/local/vesta/data/firewall/ports.conf
v-update-firewall
write us about the result
Top

turkey3
Posts: 75
Joined: Tue Aug 19, 2014 6:59 pm

Re: Port-Forwarding for Passive FTP
  • Quote

Post by turkey3 » Sat Dec 06, 2014 4:00 pm

imperio wrote:Try to use this command

Code: Select all

echo "PROTOCOL='TCP' PORT='12000:12100'" >> /usr/local/vesta/data/firewall/ports.conf
v-update-firewall
write us about the result
Yeah I actually fixed this a while back but 12000-12100 were the proper ones that were used.
Top

sennevb
Posts: 31
Joined: Fri Dec 05, 2014 3:10 pm

Re: Port-Forwarding for Passive FTP
  • Quote

Post by sennevb » Sat Dec 06, 2014 8:44 pm

imperio wrote:Try to use this command

Code: Select all

echo "PROTOCOL='TCP' PORT='12000:12100'" >> /usr/local/vesta/data/firewall/ports.conf
v-update-firewall
write us about the result
I can connect now, but still have issues uploading, checking logs as we speak..

Edit: you have to add port 20 also to firwewall rules to connect...
Last edited by sennevb on Sun Dec 07, 2014 9:40 am, edited 1 time in total.
Top

sennevb
Posts: 31
Joined: Fri Dec 05, 2014 3:10 pm

Re: Port-Forwarding for Passive FTP
  • Quote

Post by sennevb » Sat Dec 06, 2014 8:54 pm

syslog:

Code: Select all

Dec  6 21:54:18 femi-ubuntu proftpd[5042]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - FTP session opened.
Dec  6 21:54:18 femi-ubuntu proftpd[5041]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - wtmp /var/log/wtmp: No such file or directory
Dec  6 21:54:18 femi-ubuntu proftpd[5041]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - Preparing to chroot to directory '/home/senne'
Dec  6 21:54:18 femi-ubuntu proftpd[5042]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - wtmp /var/log/wtmp: No such file or directory
Dec  6 21:54:18 femi-ubuntu proftpd[5042]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - Preparing to chroot to directory '/home/senne'
Dec  6 21:55:01 femi-ubuntu CRON[5048]: (admin) CMD (sudo /usr/local/vesta/bin/v-update-sys-rrd)
Dec  6 21:55:19 femi-ubuntu proftpd[5042]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - wtmp /var/log/wtmp: No such file or directory
Dec  6 21:55:19 femi-ubuntu proftpd[5042]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - ROOT PRIVS: unable to seteuid(): Operation not permitted
Dec  6 21:55:19 femi-ubuntu proftpd[5042]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - ROOT PRIVS: unable to setegid(): Operation not permitted
Dec  6 21:55:19 femi-ubuntu proftpd[5042]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
Dec  6 21:55:19 femi-ubuntu proftpd[5042]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - FTP session closed.
Dec  6 21:55:19 femi-ubuntu proftpd[5041]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - wtmp /var/log/wtmp: No such file or directory
Dec  6 21:55:19 femi-ubuntu proftpd[5041]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - ROOT PRIVS: unable to seteuid(): Operation not permitted
Dec  6 21:55:19 femi-ubuntu proftpd[5041]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - ROOT PRIVS: unable to setegid(): Operation not permitted
Dec  6 21:55:19 femi-ubuntu proftpd[5041]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
Dec  6 21:55:19 femi-ubuntu proftpd[5041]: 213.187.241.48 (84.196.241.45[84.196.241.45]) - FTP session closed.
filezilla:

Code: Select all

Status:	Upload van C:\Users\Senne\Desktop\prestashop\prestashop\cache\smarty\index.php starten
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/smarty
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache
Antwoord:	250 CWD command successful
Opdracht:	MKD cache
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html
Antwoord:	550 cache: No such file or directory
Opdracht:	MKD /web/zelfbouw-domotica.be/public_html/cache/sandbox
Antwoord:	250 CWD command successful
Opdracht:	MKD cache
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/sandbox: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/sandbox
Antwoord:	550 cache: No such file or directory
Opdracht:	MKD /web/zelfbouw-domotica.be/public_html/cache/smarty
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/sandbox: No such file or directory
Opdracht:	SIZE /web/zelfbouw-domotica.be/public_html/cache/sandbox/index.php
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/smarty
Antwoord:	550 SIZE not allowed in ASCII mode
Opdracht:	PASV
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty: No such file or directory
Opdracht:	SIZE /web/zelfbouw-domotica.be/public_html/cache/smarty/index.php
Antwoord:	227 Entering Passive Mode (213,187,241,48,132,60).
Opdracht:	STOR /web/zelfbouw-domotica.be/public_html/cache/sandbox/index.php
Antwoord:	550 SIZE not allowed in ASCII mode
Opdracht:	PASV
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/sandbox/index.php: No such file or directory
Fout:	Fatale bestandsoverdrachtfout
Status:	Upload van C:\Users\Senne\Desktop\prestashop\prestashop\cache\tcpdf\index.php starten
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/tcpdf
Antwoord:	227 Entering Passive Mode (213,187,241,48,196,205).
Opdracht:	STOR /web/zelfbouw-domotica.be/public_html/cache/smarty/index.php
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/tcpdf: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/index.php: No such file or directory
Fout:	Fatale bestandsoverdrachtfout
Status:	Upload van C:\Users\Senne\Desktop\prestashop\prestashop\cache\smarty\cache\index.php starten
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/smarty/cache
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/cache: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/smarty
Antwoord:	250 CWD command successful
Opdracht:	MKD cache
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache
Antwoord:	550 cache: No such file or directory
Opdracht:	MKD /web/zelfbouw-domotica.be/public_html/cache/tcpdf
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/tcpdf: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/tcpdf
Antwoord:	250 CWD command successful
Opdracht:	MKD cache
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/tcpdf: No such file or directory
Opdracht:	SIZE /web/zelfbouw-domotica.be/public_html/cache/tcpdf/index.php
Antwoord:	550 cache: No such file or directory
Opdracht:	MKD /web/zelfbouw-domotica.be/public_html/cache/smarty/cache
Antwoord:	550 SIZE not allowed in ASCII mode
Opdracht:	PASV
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/cache: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/smarty/cache
Antwoord:	227 Entering Passive Mode (213,187,241,48,143,30).
Opdracht:	STOR /web/zelfbouw-domotica.be/public_html/cache/tcpdf/index.php
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/cache: No such file or directory
Opdracht:	SIZE /web/zelfbouw-domotica.be/public_html/cache/smarty/cache/index.php
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/tcpdf/index.php: No such file or directory
Fout:	Fatale bestandsoverdrachtfout
Status:	Upload van C:\Users\Senne\Desktop\prestashop\prestashop\cache\smarty\compile\index.php starten
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/smarty/compile
Antwoord:	550 SIZE not allowed in ASCII mode
Opdracht:	PASV
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/compile: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/smarty
Antwoord:	227 Entering Passive Mode (213,187,241,48,211,197).
Opdracht:	STOR /web/zelfbouw-domotica.be/public_html/cache/smarty/cache/index.php
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/cache/index.php: No such file or directory
Fout:	Fatale bestandsoverdrachtfout
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html
Antwoord:	250 CWD command successful
Opdracht:	MKD cache
Antwoord:	550 cache: No such file or directory
Opdracht:	MKD /web/zelfbouw-domotica.be/public_html/cache/smarty/compile
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/compile: No such file or directory
Opdracht:	CWD /web/zelfbouw-domotica.be/public_html/cache/smarty/compile
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/compile: No such file or directory
Opdracht:	SIZE /web/zelfbouw-domotica.be/public_html/cache/smarty/compile/index.php
Antwoord:	550 SIZE not allowed in ASCII mode
Opdracht:	PASV
Antwoord:	227 Entering Passive Mode (213,187,241,48,155,43).
Opdracht:	STOR /web/zelfbouw-domotica.be/public_html/cache/smarty/compile/index.php
Antwoord:	550 /web/zelfbouw-domotica.be/public_html/cache/smarty/compile/index.php: No such file or directory
Seems like proftpd doesnt have rights to the chroot command it is trying to do??
anyone??
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 7x
Web: nginx + php-fpm
Re: Port-Forwarding for Passive FTP
  • Quote

Post by joem » Sun Dec 07, 2014 3:29 am

Try stopping iptables and then try to connect.
Top


Post Reply
  • Print view

17 posts
  • 1
  • 2
  • Next

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password