I'm not sure what the problem you're having is... This is exactly what Firewall Builder (fwbuilder) does when you build rules using it... In my case a quick 'grep ^iptables rules.fw |awk '{print $3}' |sort |uniq' results in 43 chains including the standard 3...
Jeremy On Tue, May 07, 2002 at 12:50:19PM -0700, David Wright wrote: > > I am building a firewall with iptables. There are some checks I'd like to > occur on multiple chains. I'd like to arrange these as a "subroutine > chain", i.e. a chain that is called and then returns to the calling chain > if the packet makes it to the end. Schematically... > > iptables -A FORWARD -j CHECKS > iptables -A INPUT -j CHECKS > > iptables -A CHECKS ... > iptables -A CHECKS ... > iptables -A CHECKS -j RETURN > > Yes, I know I can make it work by just reproducing the CHECKS rules in > each chain, but that's not good programming practice. > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
pgpccT0qOhBTp.pgp
Description: PGP signature