plog for ipfilter is not working?

From: perikillo (perikillo_at_gmail.com)
Date: 03/22/05

  • Next message: Duo: "Re: Anthony's drive issues.Re: ssh password delay"
    Date: Tue, 22 Mar 2005 09:44:58 -0800
    To: freebsd-questions@freebsd.org
    
    

       Hi all.

    I want to analize my logs of ipfilter on my freebsd box, i dont want
    to use any X stuff, because i dont any of that on my firewall.

       Them i have read about scripts that we can found under:

    /usr/src/contrib/ipfilter/perl/ (:-? i think)

       On the google, i see that plog is recomend, i dont have much
    experience on perl, but i give the try, i copy that file under the
    root dir
      
        /root/

        Them i make the test:

    test# sh /root/plog -AF block,log < /var/log/firewall.log.0

        And perl send to me this error:

    ---> unexpected '(' on line 159.

        thie is the code where appear this error:

    use strict;
    use Socket;
    use IO::File;

    select STDOUT; $| = 1;

    my %hosts;

    my $me = $0;
    $me =~ s/^.*\///;

    # Map of log codes for various actions. Not all of these can occur, but
    # I've included everything in print_ipflog() from ipmon.c.
    my %acts = ( <------------------------Here
        'p' => 'pass',
        'P' => 'pass',
        'b' => 'block',
        'B' => 'block',
        'L' => 'log',
        'S' => 'short',
        'n' => 'nomatch',
    );

       For me is correct the code, maybe the mistake is on me?

    I forget or miss something?

       Any help i will apreciate or another program to analize my logs?

       Freebsd 4.11 Release ipfilter on the kernel. Thanks.
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Duo: "Re: Anthony's drive issues.Re: ssh password delay"

    Relevant Pages

    • Xorg/Gnome/KDE freeze on latest release
      ... I've been seeing system freezes on freebsd 6.2 Release and also the ... older RC2. ... Absolutely No errors reported in logs. ...
      (freebsd-questions)
    • Re: FreeBSD 6.0 default pty/tty-limit (256) OFF!
      ... I changed my servers operating systems moment ago from Linux to FreeBSD thinking that FreeBSD could be more better, but how this can be possible, that so important think like PTYs are limited to so low?? ... and demand a patch be raised just becuase you think this is rediculous this is why we have man pages and all that google.com/bsd your english is pretty poor too if you dont like freebsd then dont use it but dont demand people a patch just becuase you find something rediculous. ... His English grammar isn't so great, but it is understandable; furthermore, he knows where the shift key is and is ahead of you in spelling, 0 to 2; plus, take a look at paragraph structure. ...
      (freebsd-hackers)
    • Re: Foiffant! (was: Gasflow along surface)
      ... million nice 24 inch logs. ... Count the logs as inventory. ... Dont ask the bank stupid.. ... Im not going to die and let uncle slam fuck up 980,000 acres. ...
      (sci.physics)
    • Re: Problems with FreeBSD installation
      ... I've been trying to install FreeBSD in my laptop, ... but during installation i got the error: ... Looking at the logs, everything seems fine to me (although its my first time on ... acpi0_check: acpi0 not-present ...
      (freebsd-questions)
    • Re: Problems with FreeBSD installation
      ... I've been trying to install FreeBSD in my laptop, ... but during installation i got the error: ... Looking at the logs, everything seems fine to me (although its my first time on ... acpi0_check: acpi0 not-present ...
      (freebsd-questions)