Pages: [1]
|
|
|
|
Author
|
Topic: Creating a FTP Server (Read 695 times)
|
|
Deuce
CSR Super Ultra Mega Nerd
Global Moderator
Karma: +169/--41
Offline
Gender:
Posts: 2914
|
|
Creating a FTP Server
« on: January 19, 2005, 11:41:16 PM »
|
|
Seeing as I have 3 computers with one of them having the only purpose of playing recorded Phil Hendrie shows 24/7, i figured i would try to convert it into a FTP server.. the school accounts have such an annoyingly small space size, and living off campus usually involves me needing to send files back and forth continuously.. ive had my business email shutdown twice for going over the limits
what i could use is some help from anyone who has done it before, and what would be the best setup format.. the computer i plan on using is a 3 year old Dell with some following specs:
120 GB Harddrive 215 mb memory 1.4 ghz intel currently using a linksys wireless adapter
the ideal setup i would want is set aside 50GB or so of the harddrive just for ftp access.. i want to create secure accounts (no access for anyone else).. most likely 3 accounts. and it still needs to be able to play my phil hendrie all the time . also, accessing the ftp needs to be done with mostly IE, as that is the primary browser of the business computers, and i have yet to notice a ftp program on them (i was suprised to learn in my first couple business classes how computer illiterate most of my classmates are)
so i guess my main question is what ftp client should i be using, what is the best way to set it up, what is the best way to make sure no one else can access the files (and thus suck up my bandwidth), and will my wireless internet adapter do okay or should i need to switch to ethernet cables (the farthest this ftp server would be accessed is from mine and my brothers campuses.. about a 5 minute drive away from where i live)
|
|
Logged
|
|
|
|
Grounded
Admin Team CSR Connoisseur
Karma: +158/-21
Offline
Posts: 3176
|
|
Re:Creating a FTP Server
« Reply #1 on: January 20, 2005, 05:18:49 AM »
|
|
an FTP server
|
|
Logged
|
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #2 on: January 20, 2005, 08:31:33 AM »
|
|
Actually, you only really need FTP if you plan on UPloading files too. What you're asking for can easily be done with a HTTP (or web) server.
Given the proximity of the people intending to use this, and that everyone involved has broadband (I'm assuming), it would be way better to wire the machine to the network. It probably wouldn't make much of a difference, but if you're talking about reliability, a wire is less likely to fail than two pieces of wireless equipment (the wireless card for the computer and also the base station).
The last big gotcha is that this thing needs to be "publicly accessible." That means it has to have an IP address that anyone in the world can get to, much like the CSR game server does. You mentioned something about this machine being at school? Usually they have pretty good routers and firewalls between you and the open-internet. Chances are slim of that ever working the way you want.
Also, keep in mind that a Windows machine placed directly on the internet with a public IP address is usually compromised in less than 20 minutes (Just one link of many: Unpatched PCs compromised in 20 minutes). I would NEVER consider putting a Windows machine directly on the internet. They are SUCH an easy target that I would expect to be getting arrested for breaking the CAN-SPAM act in less than a week (because somebody had broken into my public Windows machine and gotten it to start sending 50,000 pieces of junk mail every day).
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Deuce
CSR Super Ultra Mega Nerd
Global Moderator
Karma: +169/--41
Offline
Gender:
Posts: 2914
|
|
Re:Creating a FTP Server
« Reply #3 on: January 20, 2005, 02:11:02 PM »
|
|
Actually, you only really need FTP if you plan on UPloading files too. What you're asking for can easily be done with a HTTP (or web) server. |
|
thats what i plan to do.. upload and download
Given the proximity of the people intending to use this, and that everyone involved has broadband (I'm assuming), it would be way better to wire the machine to the network. It probably wouldn't make much of a difference, but if you're talking about reliability, a wire is less likely to fail than two pieces of wireless equipment (the wireless card for the computer and also the base station). |
|
no biggy.. i have $150 of gift certificates.. just need to pick up a 50' cable next time im out shopping
You mentioned something about this machine being at school? Usually they have pretty good routers and firewalls between you and the open-internet. Chances are slim of that ever working the way you want. |
|
other way around.. the computer is at my house on my house's network.. i want to access it from school.
I would NEVER consider putting a Windows machine directly on the internet. |
|
keep in mind i have knowledge of linux know.. and despite the pain in the arse it would be to install linux again, i would have no problem needing to do it.
|
|
Logged
|
|
|
|
Terraji
Admin Team CSR Connoisseur
Karma: +35/-15
Offline
Gender:
Posts: 789
|
|
Re:Creating a FTP Server
« Reply #4 on: January 20, 2005, 03:11:54 PM »
|
|
I think your school should be informed of how cheap hard drive space is these days. Small hard drive quotas blow my mind. Despite my university department's generally incompetent staff, they have the disk quota issue down. (its unlimited, but if you are using, say 3gb, dont be surprised if all your movies and .mp3s dissapear one day).
I use Gentoo for my file server needs since its easy to install all the plumbing, but it can take alot time to set up from scratch. I hear Ubuntu is an quick and painless install. It puts X and all the regular desktop stuff on automatically. a FTP daemon shouldn't be to hard to throw on.
|
|
Logged
|
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #5 on: January 20, 2005, 07:37:35 PM »
|
|
Ah, much clearer picture now.
I would suggest NetBSD. It's the most hardened *nix available, and specifically designed for use as an internet server. Actually, most distros these days come with suitable ftp servers (and apache for that matter), but NetBSD is going to be the most secure (or any BSD-- iCabbit is running FreeBSD and hasn't been cracked in almost 4 years, despite not being patched or upgraded or maintained at all). It will be very difficult for your server to be cracked and exploited that way. Especially if you're hosting from behind a router, you can specifically route JUST ftp (and ssh) to your server.
There is a catch though-- your IP at home probably isn't static. Just like with dial-up, most basic DSL and cable plans assign customers dynamic (and thereforce shifting) IP addresses. These can change as frequently as every hour, or last as long as a week, but they WILL change on a regular basis. You're going to need a dynamic-dns account with one of the many providers out there to link a given hostname (such as "deuce.dyndns.org" to whatever IP your house's broadband router currently has assigned to it. I personally use no.ip.com for that-- the interface for configs is nice and simple, and the setup is fairly straightforward.
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Terraji
Admin Team CSR Connoisseur
Karma: +35/-15
Offline
Gender:
Posts: 789
|
|
Re:Creating a FTP Server
« Reply #6 on: January 20, 2005, 10:52:14 PM »
|
|
Jan 18 10:46:42 jarret sshd[16318]: Illegal user test from 203.158.200.4 Jan 18 10:46:50 jarret sshd[16390]: Illegal user admin from 203.158.200.4 Jan 18 10:46:53 jarret sshd[16419]: Illegal user admin from 203.158.200.4 Jan 18 10:46:56 jarret sshd[16438]: Illegal user user from 203.158.200.4 Jan 18 10:47:09 jarret sshd[16571]: Illegal user test from 203.158.200.4
|
|
Those are all the attacks on the ssh daemon on my machine since 1.5 weeks ago when it was up and running after I built it. My system doesnt have users named 'test' 'admin' or 'user', and if I did the password would be pretty hard to guess. Mr 203.158.200.4 is nothing more than a script kiddy shooting login packets to random IPs. The chances of him guessing anyone's user and password is pretty small. Just a moron, nothing to worry about.
People shooting packets around to break into a Windows machine is an entirely different story. The chances of you being on the internet long enough to download security updates on a new machine before it gets owned is remotely small.
This log was pretty long on my old machine since it was up and running for several months, but the attacks were not all that regular. The point is, the chances of a serious attack on Joe Student's ftp server is small, and the chances of them getting in is even smaller as long as you have good passwords.
p(attack) = small * small = very very small.
As long as you have a machine running linux or BSD you will be fine.
|
« Last Edit: January 20, 2005, 10:56:44 PM by Terraji » |
Logged
|
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #7 on: January 21, 2005, 08:20:42 AM »
|
|
I agree, I see hundreds of ssh attacks against my own BSD machine (SlightOfCode.com) every day. I literally mean hundreds. (I only had 3 last night...)
Jan 20 04:00:23 slightofcode sshd[58261]: Failed password for root from 202.57.72.50 port 35621 ssh2 Jan 20 04:00:26 slightofcode sshd[58263]: Failed password for root from 202.57.72.50 port 35666 ssh2 Jan 20 04:00:29 slightofcode sshd[58265]: Failed password for root from 202.57.72.50 port 35714 ssh2 |
|
All of them go after obvious user accounts, such as root, operator, and mysql. ssh doesn't allow root to log in remotely, and I don't have an "operator" account, but there is a mysql account, so you have to make sure that sshd has that username disabled too. Just because you use a more secure operating system to begin with doesn't mean you don't have to do your part to protect it.
For that matter, some of the stock FTP daemons have easy-to-exploit security flaws, and care needs to be take to adequately protect them. I personally don't keep my ftp daemon running 24/7. If I need to transfer something *in*, I ssh in first and turn on the daemon manually. And so I don't forget to turn it off, there is a cron script that shuts it down every day at 5 AM. (I'm never transferring multi-gig files though, so my chances to interrupting a live session are small. This obviously would not work well for Deuce. On the other hand, if I'm just *grabbing* a file, I always use http-- it's much safer than starting ftp.
And despite these warnings, I once again reiterate what Terraji said: it is most definitely waaaaaaaaaay better to trust a linux or BSD over Windows.
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Terraji
Admin Team CSR Connoisseur
Karma: +35/-15
Offline
Gender:
Posts: 789
|
|
Re:Creating a FTP Server
« Reply #8 on: January 21, 2005, 09:10:04 AM »
|
|
I personally don't use FTP ever anymore. I do all my transfers with scp or sftp which all go throught the ssh daemon which I assume is inherantly more secure. The only problem with that is that you need different client software for windows (WinSCP), which you probably won't find installed in public lab computers at many universities.
|
|
Logged
|
|
|
|
|
Terraji
Admin Team CSR Connoisseur
Karma: +35/-15
Offline
Gender:
Posts: 789
|
|
Re:Creating a FTP Server
« Reply #10 on: January 21, 2005, 03:31:09 PM »
|
|
Ha! thats a gooder.
|
|
Logged
|
|
|
|
slightcrazed
-TWB-
Admin Team CSR Connoisseur
Karma: +65/-7
Offline
Gender:
Posts: 983
|
|
Re:Creating a FTP Server
« Reply #11 on: January 21, 2005, 08:16:10 PM »
|
|
I would suggest:
Beginners guide to setting up proFTPD on linux
I got my slack 9 machine up and running in a couple hours with it. It is what we were using for the cs_reloaded ftp server, if you remember. I also have apache running so that the files in the FTP directory are available through a browser without the need for FTP client software.
I would consider my machine fairly secure, although there is not much on it anyway, and I have shut off ssh access to it, cause I really don't need it. Every now and then I do get an idiot like this though:
Dec 29 11:10:33 hltv proftpd[7130] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'lizdy' Dec 29 11:10:33 hltv proftpd[7130] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER lizdy: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:33 hltv proftpd[7131] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'administrator' Dec 29 11:10:33 hltv proftpd[7131] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER administrator: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:33 hltv proftpd[7135] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:33 hltv proftpd[7132] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'web' Dec 29 11:10:33 hltv proftpd[7132] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER web: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:33 hltv proftpd[7133] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'data' Dec 29 11:10:33 hltv proftpd[7133] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER data: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:33 hltv proftpd[7136] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:33 hltv proftpd[7134] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'oracle8' Dec 29 11:10:33 hltv proftpd[7134] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER oracle8: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:33 hltv proftpd[7137] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:33 hltv proftpd[7135] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'backup' Dec 29 11:10:33 hltv proftpd[7135] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER backup: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:33 hltv proftpd[7138] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:33 hltv proftpd[7139] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:33 hltv proftpd[7136] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'access' Dec 29 11:10:33 hltv proftpd[7136] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER access: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:33 hltv proftpd[7140] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:33 hltv proftpd[7141] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:33 hltv proftpd[7137] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'user' Dec 29 11:10:33 hltv proftpd[7137] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER user: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:34 hltv proftpd[7143] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:34 hltv proftpd[7142] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:34 hltv proftpd[7144] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:34 hltv proftpd[7138] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'pwrchute' Dec 29 11:10:34 hltv proftpd[7138] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER pwrchute: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:34 hltv proftpd[7139] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'server' Dec 29 11:10:34 hltv proftpd[7139] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER server: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:34 hltv proftpd[7140] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'lizdy' Dec 29 11:10:34 hltv proftpd[7140] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER lizdy: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:34 hltv proftpd[7141] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'administrator' Dec 29 11:10:34 hltv proftpd[7141] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER administrator: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:34 hltv proftpd[7145] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:34 hltv proftpd[7125] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:34 hltv proftpd[7146] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): FTP session opened. Dec 29 11:10:34 hltv proftpd[7143] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'data' Dec 29 11:10:34 hltv proftpd[7143] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER data: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:34 hltv proftpd[7142] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'web' Dec 29 11:10:34 hltv proftpd[7142] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER web: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 Dec 29 11:10:34 hltv proftpd[7144] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): no such user 'oracle8' Dec 29 11:10:34 hltv proftpd[7144] hltv.slightofcode.com (151.44.64.163[151.44.64.163]): USER oracle8: no such user found from 151.44.64.163 [151.44.64.163] to 192.168.0.101:21 |
|
Pathetic....of course, this guy never even found an existing user that he could bounce a password off of, so we're not exactly dealing with anybody of intelligence here.
slight
|
« Last Edit: January 21, 2005, 08:24:18 PM by slightcrazed » |
Logged
|
I once beat Drizzt Do'Urden at thumb wrestling.
|
|
|
zeus
CSR Connoisseur
Karma: +19/-14
Offline
Gender:
Posts: 790
|
|
Re:Creating a FTP Server
« Reply #12 on: January 21, 2005, 08:56:15 PM »
|
|
lol got to love the hackers
|
|
Logged
|
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #13 on: January 21, 2005, 09:30:14 PM »
|
|
lol got to love the hackers
|
|
"hacker" is too kind. These are "script kiddies." Nobody's who download scripts that real hackers wrote and throw them at any machine they can, just for the "fun" of it, apparently. Usually, they wouldn't even know what to do with a machine if one of their scripts ever worked. They themselves are not so dangerous, but the scripts they can run can be. That's what you have to protect against. Thankfully scripts are pretty dumb compared to a living, breathing, thinking human.
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
slightcrazed
-TWB-
Admin Team CSR Connoisseur
Karma: +65/-7
Offline
Gender:
Posts: 983
|
|
Re:Creating a FTP Server
« Reply #14 on: January 22, 2005, 06:57:37 PM »
|
|
"Hacker" isn't even the right term. A 'hacker' is someone who writes code. By todays standards a 'hacker' is someone who takes existing code and attempts to modify it for one purpose or another, i.e. "I downloaded the dairy_deserts.c file last night, and managed to hack it so that it would make whipped cream."
A 'cracker' is someone who attempts to crack encryption codes and maliciously take over a computer system.
Unfortunately, the media of the day has tied the term 'hacker' to everything from the russian mafia to 14 year old script kiddies..... pathetic really, but the public's perception of the term is what drives it's usage, which is why my resume includes 'writes code' instead of 'hacker'.
slight
|
|
Logged
|
I once beat Drizzt Do'Urden at thumb wrestling.
|
|
|
animal sex
CSR Expert
Karma: +20/-3
Offline
Gender:
Posts: 313
|
|
Re:Creating a FTP Server
« Reply #15 on: January 22, 2005, 07:43:50 PM »
|
|
haha
that would be totally cool to have '1337 }{4x0|2' on your resume
|
|
Logged
|
|
|
|
Terraji
Admin Team CSR Connoisseur
Karma: +35/-15
Offline
Gender:
Posts: 789
|
|
Re:Creating a FTP Server
« Reply #16 on: January 23, 2005, 12:27:43 AM »
|
|
I do not know a single person who programs that would ever refer to themselves as a "1337 }{4x0|2" and I know some pretty bad-ass programmers. If typing like that was ever cool in geek circles, its not anymore.
|
|
Logged
|
|
|
|
Deuce
CSR Super Ultra Mega Nerd
Global Moderator
Karma: +169/--41
Offline
Gender:
Posts: 2914
|
|
Re:Creating a FTP Server
« Reply #17 on: January 23, 2005, 02:04:24 AM »
|
|
oh i love step by step idiot proof guides. i will try this out tomorrow.
There is a catch though-- your IP at home probably isn't static. Just like with dial-up, most basic DSL and cable plans assign customers dynamic (and thereforce shifting) IP addresses. These can change as frequently as every hour, or last as long as a week, but they WILL change on a regular basis. You're going to need a dynamic-dns account with one of the many providers out there to link a given hostname (such as "deuce.dyndns.org" to whatever IP your house's broadband router currently has assigned to it. I personally use no.ip.com for that-- the interface for configs is nice and simple, and the setup is fairly straightforward. |
|
could you be a little bit more exact with this, as i have no idea what the hell you said. with adelphia i obtain my IP automatically. perhaps a quick explanation as to what i need to do would help
|
|
Logged
|
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #18 on: January 23, 2005, 03:29:52 AM »
|
|
Okay, so say you're at school, and you have a file you want to upload to your server at home. What address will you type in to connect to it? CSR for example, you would type in "server.csreloaded.com" as the hostname, and then give your username and password, and you'd be in. Well, what hostname are you going to put in for your machine? Forget that-- hostnames are too complicated: what plain old IP address will you put in? Let's say you were really smart, and checked your router to see what IP adelphia had given it before you left the house that morning. You have the IP written down, but now it's 8 PM, and adelphia has changed your home router's IP address sometime during the day, and now you don't know what the new one is so you can connect to your ftp server.
THAT is the problem I'm trying to describe. Make more sense now?
The way around this is to get a free "dynamic DNS" account from one of the major providers, like no-ip.com. Basically how that works is that you put a program on your server that keeps track of its own public IP address. When adelphia changes it (as the routinely do), the program notifies the DNS servers at no-ip.com, and updates your records to attach your newly changed IP to a specific hostname, such as "deuceserver.no-ip.com". So now, no matter what your home IP address changes to, the hostname "deuceserver.no-ip.com" always points to your home server because the program keeps the IP address updated. This is how you and grounded got to slight's machine during your work on cs_reloaded.
Does that make even more sense now?
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Deuce
CSR Super Ultra Mega Nerd
Global Moderator
Karma: +169/--41
Offline
Gender:
Posts: 2914
|
|
Re:Creating a FTP Server
« Reply #19 on: January 24, 2005, 01:38:46 AM »
|
|
that makes much more sense.. thanks
just need to back up my mp3's, then gonna try putting slackware onto the computer..
|
|
Logged
|
|
|
|
Grounded
Admin Team CSR Connoisseur
Karma: +158/-21
Offline
Posts: 3176
|
|
Re:Creating a FTP Server
« Reply #20 on: January 24, 2005, 07:19:35 AM »
|
|
Best sig ever All it needs now is a 1 after the two exclamation points
|
|
Logged
|
|
|
|
Deuce
CSR Super Ultra Mega Nerd
Global Moderator
Karma: +169/--41
Offline
Gender:
Posts: 2914
|
|
Re:Creating a FTP Server
« Reply #21 on: February 04, 2005, 08:32:46 PM »
|
|
finally got around to backing up my files onto disk (8 cd's worth of crap), and i just finished downloading slackware, so im gonna give the installation of linux a shot tonight.. and tomorrow im picking up a 50' ethernet cord
|
|
Logged
|
|
|
|
animal sex
CSR Expert
Karma: +20/-3
Offline
Gender:
Posts: 313
|
|
Re:Creating a FTP Server
« Reply #22 on: February 04, 2005, 11:51:10 PM »
|
|
I do not know a single person who programs that would ever refer to themselves as a "1337 }{4x0|2" and I know some pretty bad-ass programmers. If typing like that was ever cool in geek circles, its not anymore.
|
|
little factoid, l337 speak was made up by hackers to avoid the FBI/CIA...not sure which one
|
|
Logged
|
|
|
|
slightcrazed
-TWB-
Admin Team CSR Connoisseur
Karma: +65/-7
Offline
Gender:
Posts: 983
|
|
Re:Creating a FTP Server
« Reply #23 on: February 09, 2005, 08:05:49 PM »
|
|
finally got around to backing up my files onto disk (8 cd's worth of crap), and i just finished downloading slackware, so im gonna give the installation of linux a shot tonight.. and tomorrow im picking up a 50' ethernet cord
|
|
Let me know if you need any help... I'm not around much, but at the very least I can answer a question or too.
slight
|
|
Logged
|
I once beat Drizzt Do'Urden at thumb wrestling.
|
|
|
Deuce
CSR Super Ultra Mega Nerd
Global Moderator
Karma: +169/--41
Offline
Gender:
Posts: 2914
|
|
Re:Creating a FTP Server
« Reply #24 on: February 09, 2005, 08:24:47 PM »
|
|
yes. how can i make a static IP on my linux box with a linksys router? O_o
the ftp program does work.. i was able to connect to slightofcode with it
|
|
Logged
|
|
|
|
slightcrazed
-TWB-
Admin Team CSR Connoisseur
Karma: +65/-7
Offline
Gender:
Posts: 983
|
|
Re:Creating a FTP Server
« Reply #25 on: February 09, 2005, 08:40:10 PM »
|
|
Run 'netconfig' as root, and instead of picking DHCP - tell it you want a static IP - it will ask you for what address you want, just make sure it's one that is on the subnet that your router recognizes. Easiest thing is to set it to DHCP - then run ifconfig - find out what IP your router assigned to you, and then assign that as your static IP along with the netmask (usually 255.255.255.0) and gateway (gateway should be your router's internal IP address)- you may also need to list a DNS server in the /etc/resolv.conf file..... usually your router does DNS forwarding, so you can usually just list your routers internal IP address in that file and it will work fine.
slight
|
|
Logged
|
I once beat Drizzt Do'Urden at thumb wrestling.
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #26 on: February 09, 2005, 10:26:24 PM »
|
|
See Deuce? Didn't I tell you Slight was the guy to talk to?
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Deuce
CSR Super Ultra Mega Nerd
Global Moderator
Karma: +169/--41
Offline
Gender:
Posts: 2914
|
|
Re:Creating a FTP Server
« Reply #27 on: February 16, 2005, 12:34:49 AM »
|
|
i can access the server using the ftp client on my linux itself, but when i try to access it from a different computer using ftp pro, it takes forever to access it, it brings me to an empty /home/deuce folder, and it times me out when i try to add files.
so.. out of a things i still need to do..
1) fix this problem 2) get it so if my linux machine ever restarts for some reason (power outage maybe?), it logs me in (startx), and starts up the noip program. 3) i need to know how to make other log ins with access, and i want to make sure i dont have common user names (root, user, admin, ect) 4) figure out how to access it from any computer that might not have a ftp program (ie, ive been able to access slightofcode with IE before)
bleh.
|
|
Logged
|
|
|
|
Grounded
Admin Team CSR Connoisseur
Karma: +158/-21
Offline
Posts: 3176
|
|
Re:Creating a FTP Server
« Reply #28 on: February 16, 2005, 07:21:15 AM »
|
|
I tried connecting to slightofcode the other day to look for those old screenshots from the last Admin vs. Regular game but it wouldn't work. Has something changed with it?
|
|
Logged
|
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #29 on: February 16, 2005, 08:25:53 AM »
|
|
iCabbit *and* slightofcode are still offline along with HLstats because yu^rei's DSL service is still out.
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Grounded
Admin Team CSR Connoisseur
Karma: +158/-21
Offline
Posts: 3176
|
|
Re:Creating a FTP Server
« Reply #30 on: February 16, 2005, 09:28:49 AM »
|
|
Ah that'll be it then
|
|
Logged
|
|
|
|
slightcrazed
-TWB-
Admin Team CSR Connoisseur
Karma: +65/-7
Offline
Gender:
Posts: 983
|
|
Re:Creating a FTP Server
« Reply #31 on: February 16, 2005, 08:00:40 PM »
|
|
Actually, csr.slightofcode.com or hltv.slightofcode.com (both on my home box) were both out for several days last week due to, *ahem* "intermittant power fluctuations".
Should be fine now...I think.
slight
|
|
Logged
|
I once beat Drizzt Do'Urden at thumb wrestling.
|
|
|
slightcrazed
-TWB-
Admin Team CSR Connoisseur
Karma: +65/-7
Offline
Gender:
Posts: 983
|
|
Re:Creating a FTP Server
« Reply #32 on: February 16, 2005, 08:14:58 PM »
|
|
i can access the server using the ftp client on my linux itself, but when i try to access it from a different computer using ftp pro, it takes forever to access it, it brings me to an empty /home/deuce folder, and it times me out when i try to add files.
so.. out of a things i still need to do..
1) fix this problem 2) get it so if my linux machine ever restarts for some reason (power outage maybe?), it logs me in (startx), and starts up the noip program. 3) i need to know how to make other log ins with access, and i want to make sure i dont have common user names (root, user, admin, ect) 4) figure out how to access it from any computer that might not have a ftp program (ie, ive been able to access slightofcode with IE before)
bleh.
|
|
#1. By default proFTPd tries to do reverse DNS and ident lookups. I had the exact same issue when I first set my server up. Try adding these lines to your proftpd.conf
UseReverseDNS off IdentLookups off
...and see if that helps.
slight
|
|
Logged
|
I once beat Drizzt Do'Urden at thumb wrestling.
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #33 on: February 16, 2005, 09:07:10 PM »
|
|
The other tack to take would be to get the reverse lookups working for the sake of speed first, but also for logging. Good logs make tracking down trouble-makers a lot easier.
Also, it might be the router. FTP uses port 21 to initiate connections, but will use any ports higher than 1024 for actual data transfers. If these ports aren't being forwarded properly by the router, FTP transfers will fail. I recommend just placing your server in the router's DMZ. As long as it's sufficiently hardened against intrusion, you shouldn't have any problems with cracking attempts.
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Grounded
Admin Team CSR Connoisseur
Karma: +158/-21
Offline
Posts: 3176
|
|
Re:Creating a FTP Server
« Reply #34 on: February 17, 2005, 05:10:13 AM »
|
|
Actually, csr.slightofcode.com or hltv.slightofcode.com (both on my home box) were both out for several days last week due to, *ahem* "intermittant power fluctuations".
Should be fine now...I think.
slight
|
|
Hmm, still doesn't seem to be working...
|
|
Logged
|
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #35 on: February 17, 2005, 08:30:01 AM »
|
|
Hmm, still doesn't seem to be working...
|
|
Same here. Is the no-ip duc running?
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
slightcrazed
-TWB-
Admin Team CSR Connoisseur
Karma: +65/-7
Offline
Gender:
Posts: 983
|
|
Re:Creating a FTP Server
« Reply #36 on: February 17, 2005, 10:15:45 PM »
|
|
OMG...... I just pluged the box in and turned the power on and figured the rest would take care of itself.......come to find out that my BIOS won't go past POST unless there is a keyboad connected to the thing.
Who knew.
Should be runnin now.
slight
|
|
Logged
|
I once beat Drizzt Do'Urden at thumb wrestling.
|
|
|
slightcrazed
-TWB-
Admin Team CSR Connoisseur
Karma: +65/-7
Offline
Gender:
Posts: 983
|
|
Re:Creating a FTP Server
« Reply #37 on: February 17, 2005, 10:21:46 PM »
|
|
The other tack to take would be to get the reverse lookups working for the sake of speed first, but also for logging. Good logs make tracking down trouble-makers a lot easier.
Also, it might be the router. FTP uses port 21 to initiate connections, but will use any ports higher than 1024 for actual data transfers. If these ports aren't being forwarded properly by the router, FTP transfers will fail. I recommend just placing your server in the router's DMZ. As long as it's sufficiently hardened against intrusion, you shouldn't have any problems with cracking attempts.
|
|
Actually, I thought FTP uses port 20 for transfers, and 21 for connections..... I only forward 20 and 21, and she hums along fine with that.
As for 'sufficiently hardened against intrusion', as I like to tell my students, "That is outside the scope of this discussion." I would NOT stick in in the DMZ unless it is the only way to get the thing to work correctly.....my box works just fine behind a router.
slight
|
|
Logged
|
I once beat Drizzt Do'Urden at thumb wrestling.
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #38 on: February 18, 2005, 08:31:14 AM »
|
|
iCabbit has been directly accessible for close to three years now, and slightofcode over a year, both with static IPs no less, and neither of them have been cracked. iCabbit hasn't even had it's OS or core packages updated in that time. The chances of something happening to even a stock linux install that is a moving target thanks to dynamic DNS are incredibly slim. For most intents and purposes of this discussion, "sufficiently hardened" means, "is not running Windows."
Of course, Macs are just about the safest computer in the world to put directly on the internet, because even if they are susceptible to buffer overflows in core daemons like apache or ssh, the payloads of the overflows will without fail be designed for x86 architecture, and at worst will crash the application on the Mac, but won't result in a security breach.
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Grounded
Admin Team CSR Connoisseur
Karma: +158/-21
Offline
Posts: 3176
|
|
Re:Creating a FTP Server
« Reply #39 on: February 18, 2005, 08:37:25 AM »
|
|
That makes complete sense to me
|
|
Logged
|
|
|
|
Nick Wild
CSR Regular
Karma: +18/-7
Offline
Posts: 84
|
|
Re:Creating a FTP Server
« Reply #40 on: February 18, 2005, 01:00:33 PM »
|
|
Ok well how about this?
Consider this 5 x 16 binary matrix:
1111010110010000 0111101011001000 H = 0011110101100100 1110101100100010 1010011011100001
Given any values of the 11 bits x1, x2,....,x11, we can find values of the last five bits x12,x13,...x16 such that
H x = 0
The first 11 bits are called "message bits"; the last five are called "check bits".
The set of all 16-bit binary vectors, x, which satisfy these constraints is called the CODE. The vectors in this code are called CODEWORDS. This code is the null space of the matrix H. It contains 2^11 = 2048 codewords.
Given an 11-bit message, we may first "encode" it by appending to those 11 bits an additional five "check" bits to obtain a 16-bit codeword, which is then stored or transmitted in a way which is less then complete reliable.
Suppose that a small number of the 16 bit values are corrupted in such a way that they are "erased" (i.e., replaced with question marks).
Wild
|
« Last Edit: February 18, 2005, 01:04:55 PM by Nick Wild » |
Logged
|
Kevlar,Nades,Ammo..........Stick together teams!!........lets rock n roll
|
|
|
Porter
[Wumpa]
Board Admin
Karma: +176/--88
Offline
Gender:
Posts: 3910
|
|
Re:Creating a FTP Server
« Reply #41 on: February 18, 2005, 01:36:02 PM »
|
|
Parity bits are a pretty basic computer technology principle. It's used at the deepest level of hard drive mechanisms, modem connections, large file downloads, and even redundant disk array levels such as RAID 3.
...I still don't see the point of bringing it up here though other than in response to Grounded's last comment. If that's the case, what's the point? It makes sense to me, but you didn't finish. You just stopped with "suppose...".
|
|
Logged
|
[Wumpa] Porter --Silent, professional, lethal... sometimes.
|
|
|
Terraji
Admin Team CSR Connoisseur
Karma: +35/-15
Offline
Gender:
Posts: 789
|
|
Re:Creating a FTP Server
« Reply #42 on: February 18, 2005, 01:38:26 PM »
|
|
I much prefer error correction as opposed to error detection, its so much sneakier.
Whats your computer background Nicky?
|
|
Logged
|
|
|
|
Grounded
Admin Team CSR Connoisseur
Karma: +158/-21
Offline
Posts: 3176
|
|
Re:Creating a FTP Server
« Reply #43 on: February 18, 2005, 01:59:50 PM »
|
|
Actually with codes I'm on much firmer ground - I had an algebraic codes class in my final semester at uni. Not sure how much of it I could actually recall if I had to, but I understood it all at the time.
|
|
Logged
|
|
|
|
Nick Wild
CSR Regular
Karma: +18/-7
Offline
Posts: 84
|
|
Re:Creating a FTP Server
« Reply #44 on: February 18, 2005, 04:28:26 PM »
|
|
Parity bits are a pretty basic computer technology principle. It's used at the deepest level of hard drive mechanisms, modem connections, large file downloads, and even redundant disk array levels such as RAID 3.
...I still don't see the point of bringing it up here though other than in response to Grounded's last comment. If that's the case, what's the point? It makes sense to me, but you didn't finish. You just stopped with "suppose...".
|
|
Question: In general, under what circumstances can the recipient of the corrupted block be sure that he has recovered the original message correctly?
Answer: If the corresponding columns of the H matrix are (linearly) independent. This is because the recipient can construct a set of linear binary equations in the erased bits, and the coefficient matrix of this system of linear equations are the columns of the H matrix corresponding to the locations of the erasures.
/* The class picked an 11-bit message vector which I encoded. We then also picked a set of five positions to "erase". I wrote down the relevant set of 5 binary equations in the 5 unknown bits, and factored the relevant 5x5 binary matrix into an LU form, and tried to solve. The example turned out to have two solutions, which agreed in 1 of the five erased bits but differed in the other four.
This example showed that this coding technique is limited; if there are too many erasures, then it may be impossible to recover the initial codeword uniquely; this particular case of 5 erasures was too many. */
Henceforth, assume the particular H matrix specified above.
Question: Is there any single erasure which cannot be uniquely corrected?
Answer: No. A single (column) vector is (linearly) "dependent" only if it is zero, and this H matrix has no all-zero column.
Question: Is there any pair of erasures which cannot be uniquely corrected?
Answer: No. A pair of nonzero vectors, x and y, is (linearly) dependent only if there are scalars a and b, not both zero, such that
ax + by + 0
If either a or b (but not both) were zero, then we could deduce that y or x = 0, contradicting our prior observation that all columns of H are nonzero. If both a and b are nonzero, in the binary field, they must both be 1, whence we have x = y. But we observe that all columns of H are distinct.
Question: Is there any pattern of 3 erasures which cannot be uniquely corrected?
Answer: No. The sum of all of the rows of the H matrix is
1111111111111111
So this is also a linear constraint on the code space, and it says that if
SUM c[i]x[i] = 0, then SUM c[i] = 0, which means there are
an EVEN number of nonzero c's.
Question: Is there any pattern of 4 erasures which cannot be uniquely corrected?
Answer: YES. For example, 1st, 12th, 15th, and 16th.
So the properties of H which ensure that any pattern of 1,2,or 3 erasures can be uniquely corrected are these:
1. All columns are distinct 2. The all-ones vector is in the row space 3. All columns are nonzero
(Note that property 2 immediately implies property 3.)
So instead of the H shown above, one might begin by writing down a 4x16 matrix whose columns are all 16 4-bit binary column vectors, in any order, and then appending a fifth row which is the all-ones vector. This would be the same as the H matrix shown above, except for premultiplication by some invertible 4x4 matrix (which can't change the null space, and some permutation of the columns).
The H matrix listed above has its columns permutated in such a way that a 5x5 identity matrix appears on its right. This makes it easier to explain that the 16-dimensional vectors in the null space can conveniently be regarded as consisting of an initial eleven "message" bits, followed by five "check" bits.
The H matrix listed above also has the additional property that its row space is the same as the row space of the following matrix, whose second, third, and fourth rows are all shifts of its first row (a property which can be helpful in simplifying the circuitry of certain kinds of implementations):
1111010110010000 0111101011001000 H' = 0011110101100100 0001111010110010 1111111111111111
ANOTHER QUESTION: If 4 erasures can be uncorrectable, how is it that sometimes 5 erasures are correctable?
ANSWER: Whether an erasure pattern can be corrected depends BOTH on how many bits are erased and on where the particular erasures happen to occur. With the particular H matrix shown above, if there are s erasures, and if they are distributed randomly among the 16 bits, then here are the probabilities:
s Prob uniquely correctable Prob not uniquely correctable 1 1 0 2 1 0 3 1 0 4 12/13 1/13 5 8/13 5/13 >=6 0 1
###################################################################
|
|
Logged
|
Kevlar,Nades,Ammo..........Stick together teams!!........lets rock n roll
|
|
|
Nick Wild
CSR Regular
Karma: +18/-7
Offline
Posts: 84
|
|
Re:Creating a FTP Server
« Reply #45 on: February 18, 2005, 04:29:39 PM »
|
|
I much prefer error correction as opposed to error detection, its so much sneakier.
Whats your computer background Nicky?
|
|
nerd
|
|
Logged
|
Kevlar,Nades,Ammo..........Stick together teams!!........lets rock n roll
|
|
|
Grounded
Admin Team CSR Connoisseur
Karma: +158/-21
Offline
Posts: 3176
|
|
Re:Creating a FTP Server
« Reply #46 on: February 18, 2005, 05:11:52 PM »
|
|
I could probably have done all that stuff back in uni, but it might have taken me a while to remember the difference between linearly dependent and independent if I'd tried to do it today!
|
|
Logged
|
|
|
|
Pages: [1]
|
|
|
|
|
|
CSReloaded Forums | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved. |
|
|