Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Iptables block ip address

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 11-11-2009
Member
 
Join Date: Apr 2009
Posts: 36
Iptables block ip address
  

What are the command to block block ip address from Iptables. What I need to do is, to block access from some ip addresses in my network. Is there any command from router to block ip address. Do i need to configure router in access list mode to block ip address. Any recommendations and suggestions are appreciated.

Reply With Quote
  #2  
Old 11-11-2009
Member
 
Join Date: Jan 2006
Posts: 4,221
Re: Iptables block ip address

You can specify IP ranges and networks with iptables to block ip address. For example:
Code:
# iptables -A INPUT -s 192.168.10.0/24 -j DROP
It would block all IP addresses from 192.168.10.0 to 192.168.10.255 (a Class C subnet). You can find what IP block an IP is contained within by using the WHOIS lookup at ARIN.
Reply With Quote
  #3  
Old 11-11-2009
Member
 
Join Date: Jan 2006
Posts: 3,773
Re: Iptables block ip address

IP addresses can be blocked by administrators in the same way as registered users are. IP blocks can be more powerful and effective, but also have additional ramifications. Block IP Address will allow you to prevent security audit from scanning your IP address.
Code:
iptables -I INPUT -s 24.56.56.56 -j DROP
This command will simply drop any packet coming from the address 24.56.56.56.
Reply With Quote
  #4  
Old 11-11-2009
Member
 
Join Date: Jan 2009
Posts: 106
Re: Iptables block ip address

Administrators can block ranges of IP addresses, if you would like to prevent an individual or a group of individuals on a certain IP range from accessing your site, you can selectively deny access to them. iptables block ip when you use the following command
Code:
 <Limit GET HEAD POST>
    order allow,deny
    deny from 19.53.4.6
    deny from 19.133.153
    deny from 25.2
    allow from all
    </LIMIT>
Reply With Quote
  #5  
Old 12-11-2009
charles54
 
Posts: n/a
Re: Iptables block ip address

1. Introduction

Intrusion detection and incident response are the key components in securing assets for any organization. What actually is an Intrusion? How to detect intrusion? And how to response on the intrusion are our key areas for this article.

In order to detect intrusions you must be aware of the normal behavior of your network infrastructure so that any abnormal behavior can be seen easily like a drop of blue ink in a glass of water and you have to cure that intrusion else it will vanished. There are many systems and scenarios by which you can detect intrusions in your network infrastructure.
Intrusion Detection System (IDS) can detect intrusions for a single host or for a complete subnet in a switched environment; deployment of IDS depends on the design of your network infrastructure. To make this article applicable let me explain you how IDS works in a switched environment.
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Iptables block ip address"
Thread Thread Starter Forum Replies Last Post
Does anyone knows to block UDP protocols in iptables in ubuntu Madirakshi Networking & Security 5 13-11-2010 11:06 PM
Block ip range using iptables in Ubuntu 9.04 UbuntU-ME Operating Systems 3 29-07-2009 10:15 PM
How can I block or ban Ip address range? Drogbaa Windows Software 3 18-06-2009 11:12 AM
Invalid block address Mega Member Hardware Peripherals 3 04-05-2009 05:38 PM
How to Filter Mac Address Using Iptables ? Nobleman Networking & Security 3 28-02-2009 06:10 PM


All times are GMT +5.5. The time now is 07:01 PM.