Eduardo Ferreira wrote: > > Tom Eastep wrote on 18/05/2007 11:22:02: >> Eduardo Ferreira wrote: >> > > [...] >> >> Eduardo, >> >> Please read the release notes. All compile-time extension scripts must be >> recoded to work with Shorewall-perl >> >> -Tom > > Tom, > > I've changed my extension script to: > # regras para bloquear solicitações NTP das máquinas conectadas à conspira > add_rule $chainref, '-s 172.16.243.0/24 -p udp --dport 123 -j DROP'; > 1; > > Now I'm getting this error: > Processing /etc/shorewall/extensions/ict2fw... > Useless use of a constant in void context at (eval 6) line 2. > ERROR: Couldn't parse /etc/shorewall/extensions/ict2fw: Can't call > method "add_rule" on unblessed reference at (eval 6) line 2. > > Did I miss something here?
No, I did. Your extension scripts need to 'use' any modules that you reference within your script. In particular, your script needs to begin with: use Shorewall::Chains; -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
