|
|
#1 |
|
New Member [01%]
MBTI: INTP
Join Date: Nov 2010
Posts: 9
|
I wanted to play around with Linux and its security, so I'm in the process of setting up a little server.
Here is my question: Does anyone have suggestions for learning how to set up tight security? I want to start out a local transparent NFS system, and move on to setting up a small Apache server on my home network. I feel as if the best approach to security would be knowing how to bypass it as well, so I know what I need to look out for. Note: I'm not looking for cracking advice, I don't have aspirations of being a "hacker". I would, however, like to know about network security workarounds so I know where any security holes would be. Basically, I'm operating under the principle that there is no better chaperon than an old stinker with a good memory. |
|
|
|
|
|
|
|
#2 |
|
Veteran Member [56%]
MBTI: INTJ
Join Date: Jul 2010
Posts: 2,267
|
Use a hardware firewall. Don't use the computer for anything other than hosting the web server, this means do not install a browser or any unnecessary programs which may have backdoors. Choose a secure 32 character random password. Change this password at least once a week. If you need absolute security change this password once a day.
If you follow these basic instructions its very unlikely that you'll get hacked into. If you need to harden your linux server then you can worry about that after you have it setup and running. |
|
|
|
|
|
#3 |
|
Member [36%]
|
A hardware firewall is overkill for a HOME setup. I wouldn't go overboard with the security because of that. The biggest thing is to not be a target and as long as your WiFi is setup properly and everything is hiding behind the NAT of your home router, you should be fine. The only other thing on top of that would be a good anti-virus for Linux and keep your patching up to date.
Honestly, the password suggestion is also overkill to the point where it is ridiculous. I hope Savagelight is joking. If you feel like setting it up, self signed certificates are even more secure and less pain in the long run... that is also overkill however. Security isn't just about restricting access. There has to be a balance between making it work well and preventing unauthorized access. For a home setup, the balance is easy as the risk involved is minimal. Just be careful of what sites you visit, what personal information you put on the system, and what software you install. Fedora is pretty simple and secure out of the box as with CentOS. I would move towards CentOS myself as it is a little more minimalistic. Stay away from Ubuntu, I use it to practice hacking techniques, it's also a pain if something ever goes wrong. DVL (Damn Vulnerable Linux) I believe is also loosely based off of Ubuntu or some perversion of Debian. |
|
|
|
|
|
#4 | |||
|
Member [27%]
|
If every day someone runs the same dictionary attack on you; then by changing your password every day, you're increasing the odds that the dictionary attack is successful :-P. |
|||
|
|
|
|
|
#5 | |||
|
New Member [01%]
|
I don't see how that is statistically true. |
|||
|
|
|
|
|
#6 | |||
|
Member [02%]
|
|
|||
|
|
|
|
|
#7 | ||||||
|
Veteran Member [56%]
MBTI: INTJ
Join Date: Jul 2010
Posts: 2,267
|
I think it's the exact opposite. Also it's not dictionary attacks you have to worry about.
The password should always be long, random, and constantly changing. That is a critical part of security. Access control is also important, this has to do with the permissions. |
||||||
|
|
|
|
|
#8 |
|
Member [20%]
|
The most important thing, if not the most important besides updating your passwords - always keep up-to-date with developer patches, keep everything updated.
Even still, and not to sound like a downer here, if a hacker has the determination and skill..and really wants into your box - he will find a way, it's only a matter of time. If you are really paranoid you could setup a mini-dmz for your home webserver. |
|
|
|
|
|
#9 | |||
|
Member [36%]
|
I don't know where this logic comes from but information security is what I do for a living. I manage vulnerability assessment and patch compliance management at the 2nd most secure bank on the continent.
Last edited by tooboku; 11-20-2010 at 06:17 PM.
|
|||
|
|
|
|
|
#10 | ||||||||||||||||||
|
Veteran Member [56%]
MBTI: INTJ
Join Date: Jul 2010
Posts: 2,267
|
We both do information security for a living. If you wont name the bank I'll take that as typical braggadocio in an attempt to improve your argument by catering to peoples tendencies to listen to those who claim to be "experts" in their fields.
What other password did you think I was talking about? The root password is the most important password on the system.
It's not difficult change the password each week, print it out or write it down, and keep it in a login notebook. The root password ought to be changed at regular intervals just because it's a good habit if you want to take security seriously. If it's a server that isn't just a toy or if hes interested in actually learning about security he should do this.
I would not advocate using wireless at all but if you must use it then secure it behind a pseudo randomly generated password which changes at set intervals. Chances are if hackers want to get in they'll get in through wifi but with this password he can store it in cache and not have to remember it. He just has to store it behind his master password or root password. All of his passwords should be stored in a file behind a master password and never stored in cleartext.
To bypass wireless is not all that difficult. If he uses wireless there is probably software out there to crack the password.
The password trick isn't to stop remote exploitation. Changing the password is just about access control, it makes it more difficult but not impossible. By changing the password you can be sure they wont get in that way, but if you don't have a firewall and don't keep up with patches then you'll be open to a zero-day exploit. The most important thing is not to use the server computer for anything other than what it was built for. |
||||||||||||||||||
|
|
|
|
|
#11 |
|
Member [36%]
|
You can say you're in IS as well. Fine.
At this point though, my advice is given. It is accepted or rejected at the discression of the reader. Nothing more. Again, you are missing the context of the original request. As per my employer, I've already given you enough information to figure it out. |
|
|
|
|
|
#12 | |||
|
Veteran Member [56%]
MBTI: INTJ
Join Date: Jul 2010
Posts: 2,267
|
Thats fine but I hesitate on telling him how to bypass his security. As far as how to secure a server I gave him good advice. If he wants to try different methods to break into his own server this shouldn't be too difficult if he can read source code, compile it, use a port scanner or wifi sniffer. They found a huge bug in Linux (ubuntu) just recently that allows someone to get root remotely from a browser exploit. Of course if you patch it up it's not a problem but that still does not stop zero-day exploits and thats why I said do not use the browser on a computer you don't want to be hacked. If he wants to practice hacking into it, theres enough exploit code out there that he can. If he can read and write code or has a knack for it he may be able to find exploits of his own. |
|||
|
|
|
|
|
#13 | ||||||||||||
|
Veteran Member [53%]
|
You bring up a valid point, but I'd be more concerned about the individual users than a wireless hijacker, as they'll be the ones using this system 24/7. This is not to say that hijackers aren't a threat, just a less probable one given the measures tooboku described.
Agreed. Concerning Tooboku's stance on hardware firewalls being "overkill" in terms of expense, I believe anyone could transform an old machine into one using readily available software for ultra cheap.
What on earth are you talking about? I will agree that the default comes with some flaws, but the system as a whole is a hell of a lot more secure and customizable than Windows. Closing ports and ditching unsecure programs is a breeze.
DVL is a slackware-based linux distro, with intentionally-built-in exploits. You're way off. |
||||||||||||
|
|
|
|
|
#14 | ||||||
|
Member [36%]
|
That's exactly what he wants. I won't deny that the password thing does something, otherwise I wouldn't use it on my laptop.
Fine DVL based off of Slackware. Big deal. |
||||||
|
|
|
|
|
#15 | ||||||
|
Veteran Member [53%]
|
Ubuntu is open-source which means anyone can look at the code, find exploits BEFORE installation, patch them, inform the world and share the patch. That's assuming you know how to read the source code anyway, or know someone who does.
Ugh, I don't care if you think Fedora is superior to Ubuntu. That's not the point. You tried to compare Ubuntu to DVL and failed. While I agree that Ubuntu is not the best choice when it comes to server OSs (god knows I've had my share of bugs to overcome) it's not nearly the nightmare that you make it out to be. |
||||||
|
|
|
|
|
#16 | ||||||
|
Member [36%]
|
As a whole, the open source community is great. Some of the best utilities have come out of it but explain to me how someone who finds exploits and desires to profit off of them will be enforced to share his findings. This argument is naive and operates on the assumption that everyone will behave. If this were true, there wouldn't be any need for security in the first place.
I don't see how that was a failure, that DVL is based off of Slackware and not Debian? Big deal. Saying Ubuntu is more seure than Windows? That's what script kiddies say. Ubuntu was good at one point. It has passed its prime. |
||||||
|
|
|
|
|
#17 | ||||||
|
Member [27%]
|
There are a finite number of characters in the unicode standard. There is also (for multiple reasons) a finite limit to the length a password can be. |
||||||
|
|
|
|
|
#18 |
|
Member [36%]
|
Moving away from theory though, there are some practical disadvantages to setting up passwords this way.
With the assumption that the hacker.. - knows what method you are using - has the computing resources to attack - has read this thread We have the following things to worry about - The file suggested containing the passwords is in effect a dictionary. A dictionary attack would succeed in seconds. - Memorizing such a long password can easily create lockouts - Manual password entry eliminates several bit combinations which translate into escape characters which reduces entropy A logging in with a certificate is a much more convenient and overall secure method if you wanted to go that route. |
|
|
|
![]() |
| Tags |
| operating systems |
| Thread Tools | |
|
|