Skip to contentSkip to conversation

Source

DISCUSSION Bobby Guerra 3 participants 3 messages Apr 7, 2003 – Apr 11, 2003

lore
Share & tools
lore
#0 lore raw

I am trying to setup some rules that apply to a range of source ip address in a subnet. Example 10.1.1.60-65 I know that you can specify individual ip adress with -s but this would make me do allot of repeating because I will have to apply the same rules to each ip address. Any help would be appreciated. Thanks

Bobby Guerra
[email protected]

#1 lore raw
Quoted 5 lines · Bobby Guerra

I am trying to setup some rules that apply to a range of source ip address in a subnet. Example 10.1.1.60-65 I know that you can specify individual ip adress with -s but this would make me do allot of repeating because I will have to apply the same rules to each ip address. Any help would be appreciated. Thanks

I don't know if using netmasks would help?

Signature · 2 lines
Vincent Lim <[email protected]>
NESTAC Solution Sdn Bhd
#2 lore raw

----- Original Message -----
From: "Vincent Lim" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Friday, April 11, 2003 11:22 AM
Subject: Re: Source

Quoted 2 lines · Bobby Guerra
Quoted 1 line

I am trying to setup some rules that apply to a range of source ip

address

Quoted 1 line
Quoted 1 line

in a subnet. Example 10.1.1.60-65 I know that you can specify

individual

Quoted 6 lines
Quoted 3 lines

ip adress with -s but this would make me do allot of repeating because I will have to apply the same rules to each ip address. Any help would be appreciated. Thanks

I don't know if using netmasks would help?

You can factorise it down to two lines:

        -s 10.1.1.60/30        which gets .60, .61, .62 and .63
        -s 10.1.1.64/31        which gets .64 and .65

better if you can organise the ip addresses of the hosts that you want to filter
so that they fit inside a single mask, for example number your six hosts 64-69
inclusive, then do not have a host .70 or .71 and you can use a single match:

        -s 10.1.1.64/29        which gets .64 -> .71

that's what netmasks are for...

Mike