proftpd manual configuration for virtual hosts

viki

Verified User
Joined
Mar 25, 2006
Messages
23
Location
Poland
I had to add ACL to my Cisco 7200 router.
thus FTP in passive is working only between port 60000-65000.

I've added statement
"PassivePorts 60000 65000"
in to each virtual host witch I had in /etc/proftpd.vhosts.conf

But some times DA overwrites this file and I am loosing "PassivePor 60000 65000" statements.

Any Ideas, how can I resolve this problem

Thanks,
 
xemaps said:
write it in /etc/proftpd.conf ! ;)

ok, ok, can it be two times definition of the same virtual host ?

I have more than one IP. I've already made this statement in proftpd.conf but this is only working for main IP.

Can I add make two times definition of the same virtual host one in proftpd.conf and second in proftpd.virutlas ?

I've just made I test. When I put
<VirtualHost 193.X.X.X>
PassivePorts 60000 65000
</VirtualHost>
in to proftpd.conf
and rest to the proftpd.virtuals

<VirtualHost 193.X.X.X>
ServerName "ProFTPd"
ExtendedLog /var/log/proftpd/193.X.X.X.bytes WRITE,READ userlog
AuthUserFile /etc/proftpd.passwd
</VirtualHost>

it is not working. It seams that proftpd only look in to one/first definition of virtuals hosts.
 
Last edited:
just add ports, no virtual hosts !

sample lines in /etc/proftpd.conf

Port 21
PassivePorts 60000 65000
TimesGMT off
UseReverseDNS off
 
xemaps said:
just add ports, no virtual hosts !

sample lines in /etc/proftpd.conf

Port 21
PassivePorts 60000 65000
TimesGMT off
UseReverseDNS off

I also thought like this, but this is only valid for my primary IP address.

IP address conected with virtual host don't want to work with this.

my main IP is x.x.x.21 my virtuals are
x.x.x.41-48.
So this what You sugest works fine only for my x.x.x.21 IP address. When I open FTP session to x.x.x.41-48 PassivePorts are as usuall.

When I add PassivePorts to each virtual configuration it works fine, but as I wrote, sometimes DA overwrite this.
 
Find the template for the virtual host setup for proftpd, and set it up there.

Edit:
Nope, that's not going to work.

This is going to need a complete installation of a modification for ftp similar to the one installed in DA to allow you to modify httpd.conf.

If you'd like DA staff to consider it please post it in Feedback & Feature Requests

Jeff
 
Ok, thanks for answers.

I will try to put all virtual host configuration into proftpd.conf. I hope DA don't need to change any settings of virtual host.

DA will also make its's proftpd.vhost but I will remove include to this file in proftpd.conf


regards,


I will try to describe this as feature request
 
Back
Top