List Info

Thread: How to combine a few addresses?




How to combine a few addresses?
country flaguser name
Israel
2007-09-11 06:52:19
How I can combine a few addresses in one rule? For
example, I'd like to add two IPs 10.10.10.1 and
10.10.10.2 to the same rule.


     
____________________________________________________________
________________________
Tonight's top picks. What will you watch tonight? Preview
the hottest shows on Yahoo! TV.
http://tv.yahoo.com/ 



Re: How to combine a few addresses?
country flaguser name
Netherlands
2007-09-11 07:01:43
Vitaly wrote:
> How I can combine a few addresses in one rule? For
> example, I'd like to add two IPs 10.10.10.1 and
> 10.10.10.2 to the same rule.
>
>   

Either use ipset (needs a patched kernel), or iprange (if
the addresses 
are consecutive) or use a subchain, e.g:

-A -s 10.10.10.1 -j CUSTOM
-A -s 10.10.10.2 -j CUSTOM
-N CUSTOM
-A CUSTOM <rest of rule>


HTH,
M4



[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )