|
||||||
| Computer Software/OS Software and OS Support |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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?
|
| Sponsored Links |
|
|
|
|||
|
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!
|
|
|||||
|
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! |
| Sponsored Links |
|
|
|
|||||
|
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
| 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 |
Goal: 100,000 Posts
Complete: 98%