Lost Password?


  #1 (permalink)  
Old 12-29-2006, 03:15 PM
Ronin Ronin is online now
Programming Professional
 
Join Date: Apr 2006
Posts: 299
Rep Power: 11
Ronin is on a distinguished road
Default Linux: How do I block an IP?

How can I block an IP in Linux from my entire server? I'm getting several "hack" attempts I believe and the admin has recommended me blocking them. I don't see this feature in WHM but do in cPanel. Blocking them per website does not help, I need the entire server and all ports to block the IP address. Anyone?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 12-29-2006, 04:27 PM
littlefranciscan
Guest
 
Posts: n/a
Default

I too would like to know how to stop hackers..there are times that I am sure my who computer is being run by outside sources.. I have the AVG virus protection and paid for some thing Called "Evidence Eraser" that is suppose to hide your tracks..but I don't know if I have all the protection I need either!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-30-2006, 09:52 AM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Well doesn't mean that they cant hack you! even if you have Evidence Eraser.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-30-2006, 10:07 AM
littlefranciscan
Guest
 
Posts: n/a
Default

So if this is true, how do you get them not to hack you..I was told this helps and paid some pretty penny for it so I must search and find if there are any free ways..Are there? To prevent hackers?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-30-2006, 11:41 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,224
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

This does help, in fact, it prevents them from hacking you at all unless they spoof their IP or change it which most people can change their IP very easily.

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
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 12-30-2006, 02:36 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Quote:
Originally Posted by littlefranciscan View Post
So if this is true, how do you get them not to hack you..I was told this helps and paid some pretty penny for it so I must search and find if there are any free ways..Are there? To prevent hackers?
Use a Firewall? and read this tutorial http://forum.codecall.net/tutorials-...cure-free.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What do you say about Linux on PS3? Onur Video Game Talk 9 08-07-2008 09:26 PM
Linux OS mysticalone Technology Ramble 12 01-22-2007 11:13 AM
Best Linux for a noob... PC101 General Programming 14 09-22-2006 10:21 AM
Mac or Linux profitable? smith General Programming 6 07-08-2006 12:53 PM
linux vs windows 98 ravs2k6 General Programming 7 06-14-2006 08:53 PM


All times are GMT -5. The time now is 12:21 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads