
|
View Full Version : ensim- help with anonymous ftp (will pay)
nethosting 05-15-2002, 11:17 PM first person to help me fix this, gets $20 via paypal.
can anyone tell me how to limit anonymous users to the proftpd server on an ensim server? i have searched google, rs forums, and proftpd.org with no luck
please please please tell me how to do this.
I found:
/etc/proftpd/site1.anonftp
this is where i have added maxclients.
I have also restarted proftpd, so dont say that
TIA
ShatterGhost 05-16-2002, 01:48 AM Just a stab in the dark here, no worries I am not after the 20 bucks. If this helps donate the money to a charity :). I am new to Ensim myself but I have found that to get true anonymous FTP you need to have the site IP based not named based or the anonymous person will have to log in like "anonymous@domain.com" where is on a IP based site it can be done just by logging in to the ftp site. Going into Services from the Ensim administrator not the site administor and opening up Services then setting MaxInstances to the number you want may work for you. Hope this helps, Tim
Originally posted by nethosting
I found:
/etc/proftpd/site1.anonftp
this is where i have added maxclients.
Try this:
In the directory /home/virtual/site1/info/custom (you may have to create it)
Create a file called anonftp.py
with the contents:
max_clients = <whatever number you want>
Save, and restart the webappliance. This should do the trick.
Please let me know.
-Bob
nethosting 05-16-2002, 02:17 PM just tried.. and that didnt work either :(
is it an ip based account?
it does indeed HAVE to have it's own ip for annony ftp.
-neil
nethosting 05-17-2002, 02:37 AM yes has its own ip
Originally posted by nethosting
just tried.. and that didnt work either :(
One thing I noticed while working with this - the default MaxClients in site<x>.anonftp is set at 5, yet I can open as many simultaneous sessions as I want. This has me wondering whether Proftpd limits clients based on the actual number of connections, on the number of unique IPs logged in, or if the MaxClients directive even works at all?
There has to be an answer to this somewhere. You can try writing Ensim directly, but I wouldn't hold my breath waiting for a reply.
-Bob
nethosting 05-18-2002, 01:27 PM well someone must know..
i mean.. there has to be thousands of hosting companies that use ensim, and give their clients anonymous ftp..
do they give them unlimited users?
matt_01 05-21-2002, 09:26 AM Nethosting, still having problems ?
I have a couple ensim sever`s, let me know if u need help..
Regards
Mateo Meier
jasonk 05-21-2002, 12:55 PM I have the same problem you're having with IP-based AnonFTP. I'll add to this thread when I get that figured out, but for now you might be interested in this procedure for setting up anonymous name-based FTP on an ensim system.
You don't have to have an IP-based site to have anonymous logins, but if its a name-based site, the username needs to be anonymous@yourdomain.com in order for you to log in correctly. If you just log in as anonymous, you'll be logging into the main server's anonymous FTP. To disable the main server's Anonymous FTP access while still allowing name-based AnonFTP, follow these steps: (BTW, this is assuming you're using 3.0 or later ensim)
Log in as appliance admin, go to "Services," and then click on the pencil next to ProFTPD. If anonymous FTP is disabled, click "Configuration" and put a checkmark next to "enable anonymous FTP"
Now go to your "Sites" listing, and click the pencil for the site you want to have Anonymous FTP. Make sure it is selected. (I'm sure you have done these first couple of steps, but in case anyone else is having trouble I'm including them as well.)
At this point, you need to log into your server using SSH (or the ensim file manager I guess) and edit a couple of files. First, open /etc/proftpd.conf and change maxclients (at the bottom) to none. (not '0', but 'none') Next, open /etc/proftpd/site1.anonftp (or whatever site you need to limit access on) and change the maxclients to whatever you want to limit it to. Lastly, restart ProFTPD. That's it, you should now have a working AnonFTP server for your name-based site.
Remember, you must log in with anonymous@yourdomain.com for this to work. If you're trying to connect with IE, it has problems with the @ symbol in the username so you'll need to substitute it with the # symbol instead. Let us know if this works for you.
jasonk 05-22-2002, 01:39 PM Okay, I have an unofficial fix for you. I spoke with Ensim tech support about this and they helped determine the cause of the problem, which is basically with the startup script for proftpd. Their tech support fixed the startup script, which I've attached here. The instructions for installation are as follows:
tar -xvf proftpd_vwh_init.tar
cp /etc/rc.d/init.d/proftpd_vwh_init /etc/rc.d/init.d/proftpd_vwh_init.bak
cp proftpd_vwh_init /etc/rc.d/init.d/proftpd_vwh_init
/etc/rc.d/init.d/proftpd restart
(proftpd is symlinked to proftpd_vwh_init)
While this is from ensim, it's not a supported fix, but it worked for me. Hope this helps, and forget about the $20 unless you want to send it to msimos over at ensim :-)
|