Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Security

Linux Security Make your Linux box more secure - Learn How

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-2007, 12:18 AM
Member
 
Join Date: Dec 2006
Posts: 51
Grub is on a distinguished road
Default Make my Server more secure

How can I make my server more secure and stop hackers from attempting to hack?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-17-2007, 07:38 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

Ban their IP Address when you discover they are trying to hack.

Here is how:

1. Login to your server via SSH and su - to root (do not forget the - after su).

2. After logging in as root, you may want to look at what's already loaded, if anything. To look at the tables that are currently in effect:

(Note: You might need to add "| less" to the end of your iptables -L commands if you have a lot of iptables rules. This will let you view the rules one page at a time. You can use "q" to quit.)

# iptables -L -n

3. To successfully block an IP address, the syntax would be:

# iptables -I INPUT -s IP_ADDRESS_HERE -j DROP

e.g.:

# iptables -I INPUT -s 123.123.123.123 -j DROP

4. To verify that your entry was successful:
(Note: You might need to add "| less" to the end of your iptables -L commands if you have a lot of iptables rules. This will let you view the rules one page at a time. You can use "q" to quit.)

(as root still)

# /sbin/iptables -L -n

5. If you want to flush your IPtables:

# /sbin/iptables -F

You can find other options to choose from with the following command:

# /sbin/iptables --help

Block From: [Linux] Block IP Address using IPtables - Webmaster Forum
Reply With Quote
  #3 (permalink)  
Old 01-21-2007, 12:54 AM
Member
 
Join Date: Jan 2007
Posts: 62
Crop is on a distinguished road
Default

Thank you, that should do the trick. I'm also going to setup a Firewall.
Reply With Quote
  #4 (permalink)  
Old 01-22-2007, 06:16 PM
tcm9669
Guest
 
Posts: n/a
Default

I thought that linux was already more secure, but I see that I'm wrong.
Reply With Quote
  #5 (permalink)  
Old 10-07-2007, 02:23 PM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

Well I think if you want it to be 100% secure then just disconnect it from the internet and from any form of network.. perhaps even switch it off

Jokes apart.. I too thought that linux was way more than secure, but I too was wrong.. duh.. what a Linux illiterate I am!
__________________
Business Directory
Technology Blog
Reply With Quote

Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Tar in linux to make a backup Onur Tutorials, Guides and Tips 2 06-27-2008 12:38 PM
Who needs Windows Home Server with Linux around? kernel Linux News 0 08-22-2007 08:37 PM
"Linux more secure than Windows", Microsoft vulnerability report suggests kernel Linux News 0 08-21-2007 04:15 PM
Cobbler: How to set up a network boot server in 10 minutes kernel Linux News 0 08-11-2007 11:50 AM
Web Server with Solaris Jame Solaris 1 05-27-2007 10:45 PM


All times are GMT. The time now is 11:31 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.