February 10, 2012, 07:04:32 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Revenue sharing launched. This is offered as a "thank you" for being a member of webmasterstalks.com community! If you have an Adsense/Yahoo publisher account then you can start right away !
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Revenue sharing launched. This is offered as a "thank you" for being a member of webmasterstalks.com community! If you have an Adsense/Yahoo publisher account then you can start right away !
Pages: [1]
  Print  
Author Topic:

Securing a linux distro

 (Read 4402 times)
0 Members and 1 Guest are viewing this topic.
xulescu
Administrator
Sr. Member
*****

Points: 8
Offline Offline

Posts: 257


WWW
« on: June 24, 2006, 22:58:39 »

Please, if you know, tell me some easy steps to secure my server. I just start a new server and I don't want to have problems Smiley

Thanks
« Last Edit: June 28, 2006, 10:57:00 by TheGodFather » Logged



TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #1 on: June 25, 2006, 00:05:19 »

You need to follow this steps to have a secure server:

1. Find a good password for you system. More than 8 chars with numbers and other characters !@#$%%^
2. Never install a program from root account.
3. Never use root account for your current jobs.
4. Update your mysql root password.
5. Uninstall all unnecessary programs and servers.
6. Look at open  ports from you server and try to remove all unnecessary servers what are running

 You can look after listenting ports with :

Code:
For all open ports
$# netstat -nl
OR
For all TCP ports
$# netstat -tnl
OR
For all UDP ports
$# netstat -unl

In a system with only ftp,web and ssh open ports you need to have something like that

Code:
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN

8. Set up a different  mysql acccount  for you programs what need access to database and don't use root account.
9. Run you programs in chroot if that is possible.
10. Install a good firewall and setup some access list for you know hosts and don't let other access to your ssh/ftp ports.
11. Try to install and setup mod_security for Apache. It will drop a lot of nasty things what are coming to your program.
12. and not the last upgrade your server every time when you access him or try to subscribe to a security mailling list for you distro to see when something have problems.

Now you have a good protected system. But for all paranoiac people :
13. Install a Role-Based Access Control (RBAC) system to protect your access and other security patches (I recommend grsecurity for that http://www.grsecurity.net )
« Last Edit: July 04, 2006, 15:58:03 by TheGodFather » Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #2 on: June 28, 2006, 11:05:55 »

Please give me any other hint to improve this document, even spellchecks Smiley

Regards
Logged

spiderx
Jr. Member
**

Points: 3
Offline Offline

Posts: 62



« Reply #3 on: June 28, 2006, 14:28:57 »

Nice info but is not applicable on hosted servers ?

Bye
Logged

Regards
Spider X
xulescu
Administrator
Sr. Member
*****

Points: 8
Offline Offline

Posts: 257


WWW
« Reply #4 on: June 28, 2006, 14:49:10 »

Thank you.

Quote
Nice info but is not applicable on hosted servers ?

If you have shell access on them you can do all what you want ...

Regards
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #5 on: September 04, 2006, 06:06:41 »

I think would be hard to change the kernel on a hosted server only if you have root access there Smiley

Regards
Logged

herbertsmith
Jr. Member
**

Points: 0
Offline Offline

Posts: 57


« Reply #6 on: January 05, 2012, 00:42:09 »

As we know that Security of personal information is a primary concern of customers before they decide to make online transaction.  If your website has got a SSL certificate and its icon is displayed, it instills a sense of security in the customer. It conveys that you take the protection of personal data of customers seriously. It is recommended that customers always check whether the site is protected before submitting any personal information.



________________________________________________________
SSL Certificates | Generate CSR | Comodo SSL | Cheap SSL
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!