Grr... Cut and paste error. Meant to add this is with version 5.0.10

On 12/09/2016 12:17, Ed W wrote:
> Hi, ref the docs here:
>
>       http://shorewall.net/configuration_file_basics.htm#Embedded
>
> I expect to be able to slap in an INLINE perl script into the accounting
> file with:
>
> ?BEGIN PERL
> my $i_count = 1;
> foreach my $iface (qw/lan1 lan2 lan3 lan4/) {
>       # rules:   ACTION           CHAIN   SOURCE    DESTINATION
>       shorewall("acct_in_$i_count -       $iface    -");
>       $i_count++;
> }
> 1;
> ?END
>
>
> However, this gives an error
>
> Compiling /etc/shorewall/accounting...
>      ERROR: Undefined subroutine &Shorewall::User::shorewall called at
> /etc/shorewall/accounting line 21.
>
>
> Adding "use Shorewall::Config;" resolves this
>
>
> This code worked in some previous 4.6.13.4.  Was it supposed to? The
> docs imply that the inline script should be autowrapped with a "use
> Shorewall::Config;" - this would certainly save a little typing?
>
> Note sure if this is a change of behaviour or bug?
>
> Thanks
>
> Ed W
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Shorewall-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/shorewall-users



------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to