|
|
Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis. |
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).
|
|
Thread Tools |
tenseiken's BPFTP Server Tutorial
Thank goodness for backups. Here's the tut.
________________ You have my permission to redistribute the following guide however you like as long as you give credit where it is due. Please don't link directly to the images or imageshack might cry. Okay, with that out of the way... this is my attempt to try and make a guide similar to the one that was around a while back. For the purposes of this guide, I'm going to assume you have BPFTP server (version 2.31) installed. Alright, so open it up and let's begin. The main window will look something like this: Of course, you won't start out with 27 user accounts or anything like that. Now, the next thing you should do is configure your server so that people will be able to connect to it with no problems. To that end, click Setup, point to Main, then click General. A window will pop up that looks like this: For your server name, you can put whatever you want. The default listen on port number setting is 21, and that's fine for now... you may want to change it later. The max number of users is up to you, so set it up however you think your bandwidth will allow. Keep in mind that this is the sitewide number of users, so unless you specifically allow it, this number cannot be exceeded. Go ahead and check 'activate ftp server on startup' and 'put into tray on startup' so it'll be more automatic. I'd get rid of that 'show loading status at startup'... the rest is up to you. Now, on the left side, click 'Options'. The window will change to look like this: I'd recommend you make yours look like mine, but you may see something you'd rather change... most of the options here are self-explanatory. One thing you might want to change is 'Refuse multiple connections from same IP... this is sitewide, so if you have a look account and a download account, someone wouldn't be able to login with both... that's why I don't use this. Instead, I use the account-specific way of doing it. I'll get to that later. When you're done in this section, click on 'Advanced' on the left side. Your window will now look like this: In here, you should probably make sure that everything looks like mine, with the exception of the receive/send buffer--the default is 4096 and you probably should leave it at that. You might want to change your anti-hammering scheme to block the IP for a different amount of time or for a different number of retry attempts. The way it works is like this, using mine for an example. BPFTP server will temp. ban someone for 5 minutes if they make more than 1 failed attempt to connect in a 60 second range. You can set that up however you want. You should be able to skip the next few things, so click on 'Log Options' on the left. Your window will now look like this: For your path to log file, you should make a BPFTP log folder somewhere and log into that folder... I'd just call the log file 'BPFTP.log'. I recommend you change your log file often... daily is a good choice. BPFTP will create new files with a naming scheme based on the date when the log changes. For logging to screen, you can allow however many lines you want... I recommend you show passwords in log since you might want to be able to see if someone has a typo in their password. For IP logging, just make yours look like mine. There's not really any need to fool around in the other tabs in Log Options, but feel free to look around if you want. Click on 'Passive Mode' under the 'Multi IP settings' on the left. Your window will now look like this: If your IP ever changes (yes, it changes with broadband, just not as often), then I recommend you sign yourself up for a Dynamic IP service... DynDNS is a good free one. When you've gotten one or if you already have one, check the passive mode IP box and select the Dynamic IP radio button. Paste your Dynamic IP service address in there. Next, if you're behind a router or firewall, you should specify a port range to use with passive mode. I just chose 500-600 because they weren't being used by anything else that I'm aware of. Make sure that you forward these ports to your computer in your router's configuration dialog. Click OK. Congrats, you're now done with BPFTP server's configuration! Next we need to make a few accounts for your clients to use. I'll cover the basic download, upload and look accounts. Start with clicking the little person icon (the tooltip will say 'User Accounts') or click Setup, then User Accounts. A window will pop up that looks something like this (you won't have any accounts pre-defined like mine, though): Over on the right side will be your list of accounts (it's empty right now). Right click in that area and click 'Add'. BPFTP will prompt you for a name... enter a name for your download account and hit OK. The account will now appear in the list and BPFTP automatically highlights it for you. Your window will now look something like this: Alright, if you want to allow people to use their gamingforce name as their login, uncheck the box beside 'Login'... the box beside it will be greyed out now. Enter whatever password you want to use... clicking the lock icon will generate a random password. Now we need to add some directories that will be available to the user. It's best to set up a parent directory and have all of your content in a folder below that parent directory. If you're set up like that, then right click in the list box (right below the word 'directories') in the Access Rights section. Click 'add'. A folder browse dialog will appear, so browse to your folder and highlight it. If you're set up like I said before, checking the Read, List, and +Subdirs option should be good for a download account. Hit 'Select' and the folder you chose will be added to the list with the permissions you set (read, list, and +subdirs). I'll include a list of what all the permissions mean at the end of this guide, so if you need to do any more tweaking, consult that. You're done on this page, so click miscellaneous on the left side. Your window will now look something like this: Now you need to setup some specifics about this account. Make sure that it's enabled, first. Enable the time-out with an amount of seconds you think is fair. This will make sure that people don't just sit around idle on your server doing nothing and taking up a download slot. This isn't perfect, but it does help. Don't check the 'user by-passes server max' option. Set your max number of users to something you like... if you're on DSL like me, you can probably afford to allow 3 slots with each one capped at 10-15 kb/s, or you could allow 8 slots but cap them at 5 kb/s. We'll get to capping in a minute. Make sure you set it to allow only 1 connect per IP... this will keep them from taking up more than one slot at a time. If you have your directories set up with a parent folder containing all your shared stuff, select 'Show relative path'... this will make your server more neat-looking. I choose to hide files/dirs that are hidden since nobody would really want to download anything from them anyway. Uncheck 'allow NOOP' since that's an idling scheme and you don't want people idling on your server. Uncheck the other 3 things in the Commands section. Click 'Links & Messages' on the left side. Your window will now look like this: Let's say you want to make your FTP account look a little more organized than your actual directory structure, or you want to link to a directory that isn't underneath your home directory. Setting BPFTP to do that is pretty easy. In this window, enable 'Links to add to directories' and then choose 'Treat as Virtual Directories'. Check the 'Add links from this file'. Now we need to make our link file. Open up your favorite text editor and use the format shown here: As you can see, I typed the name I want to be displayed to the FTP client that logs in on the left, followed by a space, the pipe ( | ) character and another space, followed by the physical address of the directory. In this way, I can mount these directories in the home directory, allowing easy access to my clients even though the folders are spread out over 2 of my hard drives. The way I do this is set my home directory to an empty directory and mount the links. Make sure that you have the proper permissions set up for your users to browse to/download from the directories you link to. If you don't have the 'list' permission set, the links will not be displayed to the client. Below the link section is the message section. You can select a text file to be displayed to your clients each time they log in. This is useful to display your rules, a disclaimer, etc. Moving along, click 'Ratio, Quota, Bps' on the left side. Your window will now look like this: Don't enable anything here except Speed Limit. Now, in bytes per second, enter in the first box your upload cap. This caps people uploading TO YOU. You can enter whatever since this is your download account. In the second box, enter your download cap. This caps people downloading FROM YOU. Don't forget that 1 kilobyte is 1024 bytes, so if you want to cap someone at 10 kb/s, it's 1024*10=10240. Additionally, if you want to have a sort of dynamic cap, you can use the program Netlimiter. If you decide to use Netlimiter, disable your cap setting in BPFTP and set Netlimiter to allow BPFTP's upload rate to whatever speed you want to use. For example, I set Netlimiter to allow BPFTP to upload as much as 50 kb/s. This means that if one client is logged in, he can get up to 50 kb/s. If two clients are logged in, they split it in half (or maybe not in half depending on the speed of their connections), and so on. This is handy--you won't feel like your bandwidth is going to waste when you only have one client logged in. That's it for the download account. If you want to make a look and upload account, the only real difference will be the cap and permissions. For the look account, only set the List and +subdirs permission... this will let them see your files but not download them. There's no need to worry with a cap for the look account, since nobody can download from it, so you can just disable the Speed Limit. Also, you might want to go back to the Misc. page and disable the max simultaneous users, since the look account won't be a drain on your bandwidth. For the upload account, set the Write, Append, Make, List, and +subdirs permissions. This will let them upload, resume broken uploads, make folders, and list files. You may want to put a different home directory for the upload account--an upload folder--if you want to keep your files orderly. Also, if you have broadband, there's not really any need to cap uploads... unless you're always downloading something. Permissions This is a list of what the various permissions mean. --Files-- Read: Allows the user to download files. Write: Allows the user to upload files. Delete: Allows the user to delete files (use with caution!) Append: Allows the user to resume broken uploads. --Directories-- Make: Allows the user to make new directories (useful for the upload account) List: Allows the user to get a list of all files in a directory (you should always enable this) Delete: Allows the user to delete directories (and all files contained therein; use with caution!) +subdirs: Applies all the other permissions to any folders within the folder you're setting permissions for. Okay, that's it! Any specific questions, corrections, or suggestions can be directed to this thread or to me via PM... I'm always happy to help someone setup a server I can leech from. Frequently Asked Questions Q: I'm unable to connect to my FTP after setting it up per the guide. I am behind a router. A: Read the manual for your router and find out how to forward ports to your local machine. The port your FTP server uses must be forwarded to your local machine. www.portforward.com is also a good resource in configuring your router to work with your server. Q: I'm able to log into my server, but I cannot get a directory listing. I am behind a router. A: Turn off passive mode in your client. If you are able to get a directory listing that way, it means you don't probably don't have passive mode properly configured on your FTP. The info to properly configure your server to work with passive mode is included in the main body of the guide. You will need to forward the range of ports you specified BPFTP server to use for passive mode to your local machine. Consult your router manual for information on that. If you've done all of that properly and you STILL can't get a passive directory listing, make sure that your client is configured properly, preferably with 'Force Server IP for PASV Mode' checked (in the case of SmartFTP). If you STILL can't get a listing, just tell your clients to use PORT or active mode and move on. Q: How do I share the contents of another hard drive? Example: My 'home directory' is on drive C and I want to share the contents of a folder on drive D. A: Check out the newly added section of the guide that covers the Links & Messages section of the user config panel. Client Configuration While I'm here, I might as well plug my SmartFTP guide... it's right here. Please direct client questions to me via PM or that thread... let's keep this thread on the server topic as closely as possible. Jam it back in, in the dark.
Last edited by tenseiken; Feb 13, 2007 at 04:54 PM.
|
Any chance you could post a crack/serial for BPFTP? I've looked for a serial and couldn't find one and the crack sites looked dodgy. Thanks
There's nowhere I can't reach. |
I used to have one that worked reasonably well attached to the old thread, but I've since then purchased a copy of BPFTP, so I haven't bothered keeping a copy. If anyone else has one that works on the current version, I'll be happy to attach it to the tut.
How ya doing, buddy? |
Ahh this tutorial. I got my first basic FTP up and running thanks to this.
Have you thought about doing one for FileZilla server? It's alot simpler to setup asnd operate than BPFTP, and is also freeware. I'll maybe write one up sometime if you haven't already done one. I am a dolphin, do you want me on your body? |
I have a question. What does the bold part of this message mean?
I was speaking idiomatically. |
FTP Server
I just got my FTP server up and going, hope to get it fully functional this weekend. Is this this place to inform others of our up/down ftp server? or is that going to be on a different thread?
What kind of toxic man-thing is happening now? |
What are group accounts?
What, you don't want my bikini-clad body? |
Roph: I played with FileZilla and didn't like it much. If you want to make one, though, I think it would be great to have more than one server tut.
Darko: Basically, your client tossed several different help commands, and the server responded with all the different commands it supports. sabin: Yeah, post it in 'My Stuff' like Darko said. Neo-Zacar: A group account lets you apply the same settings and permissions to multiple accounts. I like to make a group account for my PAs because it lets me keep notes and stats on all my PA holders, but I don't have to set up permissions for each and every one of them--I just specify them to use the permissions set up in the group account. Also, anything you put in the single account has higher priority than the group account, so you can do little tweaks to a certain user account without screwing the whole group up. Jam it back in, in the dark. |
So it's nothing to worry about then? Okay thanks tenseiken.
How ya doing, buddy? |
Ok, so on yesterday morning at work i could access my computer from work and get to my ftp server, but now i am not able to get to either of them. it's like my incoming connections have stopped working. any ideas because now my ftp server has stopped working.
This thing is sticky, and I don't like it. I don't appreciate it. |
IP change, maybe? Hard to say with the info you've provided. Maybe some log snippets or something would help more.
I am a dolphin, do you want me on your body? |
Thanks a lot for this tutorial, and a good thing that this thread has been brought back to life, before GFF was gone all pictures were broken!
I will try to bring up my own FTP, but maybe i'll get big problems with our hardware router! I was speaking idiomatically. |
Carob Nut |
Do you have any idea what would be causing the letters to be displayed in lowercase?
I run two FTPs, one for the home computer, which I'm the only one that uses (and occasionally friends) to bounce files off of since this university's firewall doesn't allow direct inbound connections. I administrate it (not much to administrate, though) through Remote Desktop and such. I also run an FTP here on campus, mainly for my own use so I don't have to carry around a flash drive. And occasionally I'll transfer an anime episode or something. Anyway, both servers were setup the same, following this guide. Yet, for some reason, the server on the home computer does not display a single filename in uppercase, as shown in the screenshot. Every one of those songs should have numerous capital letters in them. Every folder is like this, every file, every everything. What would cause this? What kind of toxic man-thing is happening now? |
I have tried to set up an FTP with my router, but I just get a permission error (connection could not be established). I have set a dynamic IP at tompilk.dyndns.info. I have opened the necessary ports on my computer, but how do i get my router to go to my WAN address of my desktop? e.g. 192.168.1.50.
My router is a D-Link DSL G406T. I cant think about what i haven't done. i know it seems a silly question, but can i access the ftp from a browser? and when i access do i have to tell it which port? eg ftp://tompilk.dyndns.info:21 or just ftp://tompilk.dyndns.info I cant even access it from within the network! Im a bit confused... but when it works i have 25gigs of piano videos to share around in the concert hall... Thanks, Tom FELIPE NO
Last edited by tompilk; Apr 8, 2006 at 01:28 PM.
|
Carob Nut |
If you want to access an FTP from a web browser, such as Firefox or Internet explorer, you want to use this format:
ftp://*user name here*:*password here*@*address here*:*port* Alternatively, you can simply leave out the password portion and they will get a prompt asking for the password to be typed in beforehand. Be careful if you use this method, especially if you have followed Tenseiken's steps for setting this up. Internet Explorer will open up more than 1 simultaneous connection, which will kick that user off under Ten's settings. Firefox lacks an ability to download folders or compressed files, so downloading anything in a .rar or .zip will not be downloadable. As for forwarding ports, http://www.portforward.com/routers.htm should be able to assist you a little. You just need to tell your router to forward all connections to the router to your computer. An easy (but not the best) way is to set your computer in a DMZ, which means, any connection that goes to your router will go straight to your computer, unblocked whatsoever. It essentially makes your computer act as if it were plugged directly into the Cable Modem. What, you don't want my bikini-clad body?
Last edited by tetre; Apr 9, 2006 at 03:16 AM.
|
hi again. im able to access the ftp by ftp://localhost but i cant access it by going to my dyndns address over te internet...
that, im guesing, must mean it is my router. I have opened up the necessary ports and also the passive ports. THat didn't make anything work. I also set up a dmz and put the ip address of my computer on the network, but that didn't let me access it either. When i type my routers assigned ip from our isp i get the router login page... i asked my friend to type it in and he could access my router (if he had the password)!!! Im sure something isnt right... I think it is something to do with when i go to the address, i access my router and i need to forward that to my ftp on my desktop - how? Any more suggestions? Tom Double Post: Ive just unplugged my router and used my normal modem - it works perfectly - any ideas what settings i ned to change? Ive tried DMZ with no luck. Ive port forwarded 21 too, and 6001-6009 for passive. I have a dlink DSL G406T Tom Jam it back in, in the dark.
Last edited by tompilk; Apr 9, 2006 at 10:23 AM.
Reason: Automerged additional post.
|
tetre: My only thoughts on your lowercase thing is this. Go to setup->main->options. There's an option there titled 'Use all lowercase for files/dirs'. If that's ticked, untick it. If it's not ticked, I haven't a clue what the problem is.
tomplik: Definitely sounds like your router. If you've been through your router's page on www.portforward.com and it's not helping, you should read your manual for further info, or contact the manufacturer for support. There's nowhere I can't reach. |
anyways, ill keep trying.. Tom Most amazing jew boots |
Are there possible hackings with this server business?
I had my server on and inactive for about 3 days straight. One morning when I was about to shut it off I noticed the box was green, which signafied it had a client. Well the thing is, no one alerted me of uploading anything to me at the time. I posted the password in my audio request topic too. When I looked at the log I say that someone was trying to log into my server. They used the name User Admistrator and they typed in about 30 random Passwords (like simple stuff like 'blondie','David", etc.). They never got the right password though and I shut down the server and put that unknown person on my ban list. Did I get a hacker? Did they randomly type in my IP or something and then try to get access? How ya doing, buddy? |
More than likely you got a port scanner or something like that. They take a range of IP addresses and scan through them looking for specific open ports, like 21 for an FTP server, etc. If your permissions are set properly and your administrator account (if you even have one) has a solid password, then you don't really have anything to worry about.
I was speaking idiomatically. |
I have closely followed your guide and managed to put up a personal FTP server. The one weird thing is that, as of now, I can't seem to access it.
The message FlashFXP gives me is the following:
What kind of toxic man-thing is happening now? |
It looks like you're actually connecting to your router.
Make sure you have your FTP ports forwarded properly (plus the PASV range if appropriate), and then try again. The 331 line doesn't sound right for BPFTP anyways. For instructions on setting up port forwarding if you don't know how, please check PortForward. Also, are you attempting to connect to your FTP with a 192.168.x.x type of IP, or just the public IP? Try connecting to your internal IP (ipconfig can show you this) and see if that works. FELIPE NO |
I've now tried changing the ports from 21 to 2121. This is the message I get: [R] Connecting to My own Thing -> (data concerning my IP, which is correctly resolved by the client) PORT=2121 [R] Connection failed (Connection refused) [R] Delaying for 120 seconds before reconnect attempt #1 What, you don't want my bikini-clad body? |
Hmm... How do you connect to the net? DSL, cable...? My DSL modem used to occasionally get in the way of my webserver, throwing up its own config page instead of my actual webpage. As far as I could tell, those were flukes, or maybe just poor routing choices. You may need to configure your modem to sort of get out of the way. Your ISP should be able to tell you how to do that.
How ya doing, buddy? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FFXI SERVER CATALOGUE | Kasonyn | Video Gaming | 30 | Jul 7, 2006 03:13 PM |
Weird problem with BPFTP server | jPokalypse | Behind the Music | 2 | May 7, 2006 02:28 PM |