Re: [Shorewall-users] Macro files bug

Tom Eastep
Sun, 28 Oct 2007 15:30:37 -0000

Andrew Suffield wrote:

> I want an interface of the form:
>
> my $name = ''knock'' . ++$i;
> my $chainref = new_manual_chain($name);
> shorewall "$name $src $dest";
> add_rule($chainref, ...);
>
> which tells shorewall "I''m going to populate this chain
myself; please
> create it and insert a rule that jumps to it, like for an action, but
> otherwise leave it alone". If I understand the code correctly, this
> should be a simple variation on the theme of the ($actiontype &
> ACTION) bits of process_rule1, that just avoids triggering
> Shorewall::Action.

Patch attached.

Thanks, Andrew.