Re: Group on Iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 27 Aug 2003, Masiero Giorgio, PD wrote:
> 	I'm tryng to translate our Checkpoint FW-1 ruleset into Iptables.
> 	The problem is this: Is it possible to use objects like Checkpoint
> 	Groups (that is a set of host and/or networks) into an Iptables
> 	rule.

One possibility is to use a netmask, e.g. -d 192.168.10.0/24 for that
subnet of 256 addresses.  Similarly for -s.  If the targeted nets or hosts
do not fall in a neat subnet, and if the set has to be referred to from
several places, you could make a special chain and jump to it.  If no rule
in the chain eats the packet (-j DROP, -j ACCEPT, etc.), control will
return to where the chain was called.

It would be really nice to have an analog of -m multiport, for hosts or
networks.  But I don't see one in
http://www.netfilter.org/documentation/pomlist/pom-extra.html

James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA  90095-1555
Email: jimc@xxxxxxxxxxxxx    http://www.math.ucla.edu/~jimc (q.v. for PGP key)


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux