Port-Forwarding for Passive FTP
Port-Forwarding for Passive FTP
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?
Re: Port-Forwarding for Passive FTP
Hello
Please check /etc/vsfptd/vsttpd.conf
For the Passive mode ports,
i have customized them:
Don't forget to add them to the firewall, in my case, Allow TCP 50001:65534
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
Re: Port-Forwarding for Passive FTP
Hello,
We already know about this problem. Fix will be soon
We already know about this problem. Fix will be soon
Re: Port-Forwarding for Passive FTP
Any workaround for this, i allready installed proftpd, but still cant connect properly.
I opened port 20 in firewall, but cant upload things now..
I opened port 20 in firewall, but cant upload things now..
Re: Port-Forwarding for Passive FTP
EDITsennevb 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..
Code: Select all
nano /etc/proftpd.conf
As sim said dont forget to add the ports to your firewallPassivePorts 12000 12500
Re: Port-Forwarding for Passive FTP
Try to use this command
write us about the result
Code: Select all
echo "PROTOCOL='TCP' PORT='12000:12100'" >> /usr/local/vesta/data/firewall/ports.conf
v-update-firewall
Re: Port-Forwarding for Passive FTP
Yeah I actually fixed this a while back but 12000-12100 were the proper ones that were used.imperio wrote:Try to use this commandwrite us about the resultCode: Select all
echo "PROTOCOL='TCP' PORT='12000:12100'" >> /usr/local/vesta/data/firewall/ports.conf v-update-firewall
Re: Port-Forwarding for Passive FTP
I can connect now, but still have issues uploading, checking logs as we speak..imperio wrote:Try to use this commandwrite us about the resultCode: Select all
echo "PROTOCOL='TCP' PORT='12000:12100'" >> /usr/local/vesta/data/firewall/ports.conf v-update-firewall
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.
Re: Port-Forwarding for Passive FTP
syslog:
filezilla:
Seems like proftpd doesnt have rights to the chroot command it is trying to do??
anyone??
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.
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
anyone??
Re: Port-Forwarding for Passive FTP
Try stopping iptables and then try to connect.