How can I make my server more secure and stop hackers from attempting to hack?
Make my Server more secure
Started by Grub, Jan 03 2007 04:18 PM
4 replies to this topic
#1
Posted 03 January 2007 - 04:18 PM
|
|
|
#2
Guest_Jordan_*
Posted 17 January 2007 - 11:38 AM
Guest_Jordan_*
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
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
#3
Posted 20 January 2007 - 04:54 PM
Thank you, that should do the trick. I'm also going to setup a Firewall.
#4
Guest_tcm9669_*
Posted 22 January 2007 - 10:16 AM
Guest_tcm9669_*
I thought that linux was already more secure, but I see that I'm wrong.
#5
Posted 07 October 2007 - 05:23 AM
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 :p
Jokes apart.. I too thought that linux was way more than secure, but I too was wrong.. duh.. what a Linux illiterate I am!
Jokes apart.. I too thought that linux was way more than secure, but I too was wrong.. duh.. what a Linux illiterate I am!


Sign In
Create Account


Back to top









