Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 11 of 11

This is a discussion on VPS Admins: Anyone use psad ???? in the VPS & Dedicated forum
psad is an Intrusion Detection/Protection System ( yup it can block nastiness ) for iptables - see full description here . I have at home ...

  1. #1
    who exists not. linickx's Avatar
    Join Date
    Mar 2007
    Posts
    7

    Question VPS Admins: Anyone use psad ????

    psad is an Intrusion Detection/Protection System (yup it can block nastiness) for iptables - see full description here.

    I have at home a PC running the same version / config / etc of CentOS as my VPS, but psad doesn't seem to work on my VPS. I just wondered if anyone else was trying the same thing ?

    Thanks in Advance

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Interesting!

    I've never run that proggie, but going by past experience, sometimes these things require that other proggies are available, you know? Like, Shorewall, TCP wrapper, and so forth, and so on.

    Are you sure your home machine and your VPS are configured exactly the same?

    Maybe something is missing in the background.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    who exists not. linickx's Avatar
    Join Date
    Mar 2007
    Posts
    7
    Quote Originally Posted by Vin DSL View Post
    Are you sure your home machine and your VPS are configured exactly the same?
    Well as sure as you can be when you didn't actually install the OS

    I'll keep digging, it'd be nice to see if anyone else has any luck.

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    I was reading the docs, and it says Netfilter is needed for NAT (NAPT) translation.

    Is that available on your VPS?

    They also suggested using Shorewall to build your policies, but that should be neither here nor there, for the moment.

    The basic task of psad is to make use of firewall log messages generated by either ipchains or iptables to detect suspect network traffic. To accomplish this task, psad needs a way of efficiently getting the data it needs from the log messages the firewall writes to syslog. Hence, upon installation psad creates a named pipe called psadfifo in the /var/log/ directory and reconfigures syslogd to write all kern.info messages to the pipe. In syslog parlance both ipchains and iptables log messages are reported via the kern facility at a log level of info. The bulk of the work done by psad is accomplished by two separate dæmons: kmsgsd and psad.
    Interesting, indeed!
    Last edited by Vin DSL; 03-04-2007 at 10:52 AM.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Heh! Sorry for being rudimentary, but...

    I noticed that this proggie is written in Perl. You have the permissions set correctly, right?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    who exists not. linickx's Avatar
    Join Date
    Mar 2007
    Posts
    7
    Hi thanks for your posts, I contacted the developer, he thinks there maybe something wrong with my syslog set up, but still no joy in getting it to work.

    Looks like psad relies on kern.info messages, but I'm not getting any kern.* messages in /var/log/kern , I'm wondering if the virtuozzo mix is effecting stuff (since the kernel is the main thing that's different between a VPS and any other CentOS install)

    Do you have any kern logs ?

  7. #7
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by linickx View Post
    Do you have any kern logs ?
    No...

    Sorry, I should have explained that I'm not a "VPS Admin".

    I have a semi-dedicated account, so I guess I'm a SDX Admin.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  8. #8
    JPC Dream Team JPC-Veena's Avatar
    Join Date
    Sep 2002
    Posts
    572
    linickx,

    There will be no kernel logs or dmesg on a vps since there is no kernel present on a vps, the kernel is actually installed on the hardware node (the physical server your vps is on). Only the OS and control panel etc are on the vps. In case this software relies on a specific kernel module, please contact support with details of the module so we can check if it is available on the hardware node kernel.
    Veena K John
    Jaguar Technologies, LLC.

    Helpful Links
    Knowledge Base | Network Status | Current Specials

    Need a Manager?
    (pm) | (email) David, Customer Service Manager

  9. #9
    who exists not. linickx's Avatar
    Join Date
    Mar 2007
    Posts
    7
    Quote Originally Posted by Vin DSL View Post
    Sorry, I should have explained that I'm not a "VPS Admin".
    No worries

    This is interesting....

    Quote Originally Posted by JPC-Veena View Post
    There will be no kernel logs or dmesg on a vps since there is no kernel present on a vps
    Perhaps I'll contact support and see if there is anything that can be done from their side.

  10. #10
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by linickx View Post
    This is interesting...
    Yes, very interesting!

    Quote Originally Posted by JPC-Veena View Post
    There will be no kernel logs or dmesg on a vps since there is no kernel present on a vps
    That would certainly explain the 'problem'...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  11. #11
    who exists not. linickx's Avatar
    Join Date
    Mar 2007
    Posts
    7
    A quick update for any future googlers for VPS admins.

    Firstly I would like to publicly thank the JPC support team, I've thrown a couple of odd balls at them, and I've had successful resolutions on both counts - much better than my last host.

    Ok, so the resolution... note I have a CentOS machine, so anyone else's mileage may vary.

    1st up: Check with support that kernel module for logging iptables traffic is loaded (ipt_LOG.ko)

    Next: You need edit /etc/rc.d/init.d/syslog, find ...

    Code:
    start() {
            echo -n $"Starting system logger: "
            daemon syslogd $SYSLOGD_OPTIONS
            RETVAL=$?
            echo
            echo -n $"Starting kernel logger: "
            passed klogd skipped #daemon klogd $KLOGD_OPTIONS
            echo
            [ $RETVAL -eq 0 ] && touch /var/lock/subsys/syslog
            return $RETVAL
    }
    Change
    Code:
    passed klogd skipped #daemon klogd $KLOGD_OPTIONS
    to
    Code:
    daemon klogd $KLOGD_OPTIONS
    Then in

    Code:
    stop() {
            echo -n $"Shutting down kernel logger: "
            passed klogd skipped#killproc klogd
            echo
            echo -n $"Shutting down system logger: "
            killproc syslogd
            RETVAL=$?
            echo
            [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/syslog
            return $RETVAL
    }
    Change
    Code:
    passed klogd skipped#killproc klogd
    to
    Code:
    killproc klogd
    finally: restart syslog,
    Code:
    /etc/init.d/syslog restart
    Follow the psad documentation for the rest of the install, step back and watch the e-mails fly in as you suddenly realise how many unsociable people are trying to attack your server !

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •