Re: VSFTP in passive mode
- From: News <null@xxxxxxxxxxxxxxx>
- Date: Fri, 10 Mar 2006 12:55:53 GMT
On Thu, 09 Feb 2006 13:41:04 -0600, Sam Watson wrote:
For some reason I can not get VSFTPD to work in passive mode. I am
running Fedora C4. When I FTP into the site I get connected but when I
type "ls" for a directory I get
"Entering Passive Mode (xx,xx,xx,xxx,xx,xx)
ftp: connect: No route to host"
If I exit passive mode by entering "pass" the directory comes across. I
do not have a "pasv_enable=no" in the vsftpd.conf file so it should be
on by default. I have also discovered that if I turn off the firewall
(iptables) FTP works in passive mode ....
Sorry for the massive bump of this post. Probably way off here, but have
you set up a passive port range ? I'm thinking this might be the problem
when you said about turning off the firewall.
You've probably sorted it now, but the simplest way I can try and help
if you haven't is to show you the pertinent sections of my vsftpd.conf :
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
pasv_address=82.29.34.23
pasv_promiscuous=YES
pasv_enable=YES
hide_ids=YES
pasv_min_port=xxxxx
pasv_max_port=xxxxx
chroot_local_user=YES
max_clients=x
no_anon_password=YES
The way I understand it, running passive mode puts the 'security burden'
on the server, ie. it has to open up ports. In active mode, the 'security
burden' is on the client, with them having to accept incoming connections
originating from port 20 of the FTP server they're connecting to.
(Corrections most welcome).
(All FTP connections are TCP. None are UDP AFAIK.)
For my vsftpd.conf, I've had to input the appropriate rules in my IPTables
firewall too.
/sbin/iptables -A INPUT -i eth0 -p tcp --dport 21 -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -p tcp --dport xxxxx:xxxxx -j ACCEPT
Where 'xxxxx:xxxxx' is the lowest port number:highest port number in the
range you want to specify, for the passive FTP ports.
HTH and sorry if it didn't.
Regards,
News.
P.S. Can you connect to mine ?
.
- Follow-Ups:
- Re: VSFTP in passive mode
- From: dchepishev
- Re: VSFTP in passive mode
- Prev by Date: ping helps...
- Next by Date: Re: ping helps...
- Previous by thread: ping helps...
- Next by thread: Re: VSFTP in passive mode
- Index(es):
Relevant Pages
|