Code Monkey home page Code Monkey logo

sentry's People

Contributors

msimerson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sentry's Issues

entries in hosts.deny can be duplicated

I haven't attempted to look in the database, but due to issue #1 and entries not being removed from hosts.deny. I can verify, manual or automatic blacklist will add another entry into hosts.deny.

I suspect it would be wise to verify if an ip is already listed in the file, or with a working cleanup, make sure all copies of the ip is removed.

Security feature request

Two things dealing with autoupdates done on the web. First it doesn't look like there is any authentication of the code that you get on update. No digital signature checking of the code or server makes it possible to hijack the request and replace the code with a malicious version. Second it doesn't look like there's an option to turn off auto updates.

Thanks for the code!

v0.25 --delist error: file /var/db/sentry/hosts.deny or enclosing dir is not writable!

FreeBSD 9.1 amd64 & Perl v5.14.2

as root adding a manual blacklist: (also automatic blacklist works great)
/var/db/sentry # ./sentry.pl --verbose -b --ip=192.168.11.35
installed version is 0.25
ip 192.168.11.35 is valid
setup checks succeeded
using /var/db/sentry/sentry.dbm as database
0 connections from 192.168.11.35 (key: 3232238371)
blacklisting 192.168.11.35

As root, trying to delist any blacklist:
/var/db/sentry # ./sentry.pl --verbose -delist --ip=192.168.11.35
installed version is 0.25
ip 192.168.11.35 is valid
setup checks succeeded
using /var/db/sentry/sentry.dbm as database
0 connections from 192.168.11.35 (key: 3232238371)
and it is blacklisted
unblacklisting 192.168.11.35
file /var/db/sentry/hosts.deny or enclosing dir is not writable!
unwhitelisting 192.168.11.35

permissions:
-rw-r--r-- 1 root wheel 996 Jun 12 13:10 hosts.deny
drwxr-xr-x 2 root wheel 512 Jun 12 13:10 sentry

Obviously blacklisting works, but the entry is never removed from hosts.deny

Sentry whitelist command doesn't seem to work.

Sentry version

1.0.5 (on CentOS 8)

Expected behavior

Should whitelist the IP address

Observed behavior

[root@localhost ~]# /var/db/sentry/sentry.pl --ip=N.N.N.N --whitelist
Net::IP not installed. No IPv6 support.
Can't locate object method "new" via package "Net::IP" at /var/db/sentry/sentry.pl line 931.

Steps to reproduce

Installed as per instructions. Ran the above command with a valid IP address.

shebang should be updated when sentry installed

Previous, the shebang line was hard coded:

#!/usr/bin/perl

And then I updated it because /usr/bin/perl doesn't always work (perl5, /opt/local, /usr/local, etc...). So I switched it to:

#!/usr/bin/env perl

Which should, work more often. But not necessarily so. See this and this.

Solution

When sentry is installed, find the path to perl (using ENV, following symlinks, etc..) and update the shebang line with the fully qualified path to perl.

How to uninstall this?

Sentry version

1.05 (CentOS 8)

Expected behavior

I'd like to remove it since it doesn't seem to work.

Observed behavior

I am now locked out of my server and can't remove the lock

Steps to reproduce

Just ran the installation instructions as per the README

Automatic Uninstall Method

Sentry version

our $VERSION = '1.04';

Expected behavior

sentry --uninstall
Should completely and cleanly remove the module and disconnect it from the system.

Observed behavior

Nothing happens

Steps to reproduce

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.