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

Re: iptables subroutine chains



also sprach David Wright <ichbin@shadlen.org> [2002.05.07.2150 +0200]:
> 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, this works perfectly well.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
  
three things are certain:
death, taxes and lost data.
guess which has occurred.

Attachment: pgpYAvZJqKyNo.pgp
Description: PGP signature


Reply to: