All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Blocking a range of source IPs to a specific port
@ 2005-08-02 13:20 James A Harrison
  0 siblings, 0 replies; 4+ messages in thread
From: James A Harrison @ 2005-08-02 13:20 UTC (permalink / raw)
  To: gtaylor; +Cc: netfilter

Hi,

Replying on my PDA, so just a quick message to say thanks - i'll try that tomorrow.



James Harrison


-----Original Message-----
>From: "Grant Taylor"<gtaylor@riverviewtech.net>
>Sent: 02/08/05 04:05:49
>To: "netfilter"<netfilter@lists.netfilter.org>
>Subject: Re: Blocking a range of source IPs to a specific port
>
>James Harrison wrote:
>
>> Hi,
>>
>> I'm trying to use iptables to block a range of source IP addresses, 
>> but I can't figure out how to specify ranges- i'm trying to block 
>> everything from 172.150-250.*.* on port 8676- can someone help me out 
>> with the rule for this?
>>
>> Thanks,
>> James Harrison
>>
>James, you might want to look in to the IPRange match extension for 
>IPTables. I think you would be able to do something quite literally like 
>this:
>
>iptabels -t filter -A INPUT -p tcp --dport 8676 -m iprange --src-range 
>172.150.0.0-172.250.255.255 -j DROP
>
>I was able to successfully key the above line in to my firewall at the 
>house (test chain) with out any problems so I think the syntax is 
>correct.  However I have never used iprange in production to say what I 
>think of it.  Give it a try and see what you think.
>
>One suggestion is that you may want to send the traffic to a different 
>sub chain to be able to log the traffic before you DROP it.  Just a thought.
>
>
>
>Grant. . . .
>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-02 13:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <42EE63E6.6070801@blackicehosting.com>
2005-08-01 20:36 ` Blocking a range of source IPs to a specific port R. DuFresne
     [not found]   ` <42EE9539.4070800@gmx.co.uk>
     [not found]     ` <Pine.LNX.4.60.0508011801000.3645@darkstar.sysinfo.com>
     [not found]       ` <42EE9CA0.5020805@blackicehosting.com>
2005-08-02  8:26         ` Jörg Harmuth
2005-08-02 13:35 ` Sp0oKeR
2005-08-02 13:20 James A Harrison

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.