Difference between revisions of "Linux ipblock"

From John Freier
Jump to: navigation, search
(Created page with ' == Why Block IP Addresses == When running my server I found in the logs that I was getting a lot of users that were just scanning my server for openings. So I decided to start…')
 
Line 1: Line 1:
 
 
== Why Block IP Addresses ==
 
== Why Block IP Addresses ==
  
Line 15: Line 14:
 
This command shows all the iptable references.
 
This command shows all the iptable references.
 
   # iptables -L
 
   # iptables -L
 +
 +
 +
This will remove and IP Address from the IPTable rules.
 +
  # iptables -D INPUT -s xx.xxx.xx.xx -j DROP

Revision as of 13:34, 29 September 2014

Why Block IP Addresses

When running my server I found in the logs that I was getting a lot of users that were just scanning my server for openings. So I decided to start blocking IP Addresses.


Fedora Block IP Addresses IPTable

This is a way of blocking IP Addresses in Fedora.

This command will add an IP Address to the blocked list.

 # iptables -A INPUT -s 65.55.44.100 -j DROP


This command shows all the iptable references.

 # iptables -L


This will remove and IP Address from the IPTable rules.

 # iptables -D INPUT -s xx.xxx.xx.xx -j DROP