• fail2ban with sbbs non-daemon

    From Scott Comstock@1:103/705 to All on Fri Jan 18 11:21:51 2019
    All,

    After some on-again, off-again fits & starts over the last year or so, I'm looking to open up my board after I get some more doors installed and some
    more stuff for the file areas. Has anyone ever successfully gotten fail2ban
    to work on an SBBS system that isn't running daemonized?

    The system is running CentOS 7.6 x64.

    Thanks!
    -Scott

    ---
    þ Synchronet þ Atavachron BBS * atavachronbbs.net (telnet/ssh/www)
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Marisag@1:103/705 to Scott Comstock on Fri Jan 18 09:47:36 2019
    Re: fail2ban with sbbs non-daemon
    By: Scott Comstock to All on Fri Jan 18 2019 11:21:51

    I provide hosting on ubuntu and use my utility scripts to run sbbs in non-daemon mode so you can connect to it using the screen command.

    If you are interested in them let me know and i will give you the sourceforge link to them...

    Marisa
    --- https://AmigaCity.xyz - Portal for the Amiga - More than 2,600 free DLs
    --- https://amigacity.xyz/index.php/downloads/ourtorrents - Amiga Torrents
    --- https://AmigaCity.xyz/radio.html - Amiga game music 24/7
    --- https://BBSlist.SynchronetBBS.org - Active BBS List for all BBS types
    --- https://SynchronetBBS.org/OurServers - A list of all our websites
    --- https://gamenet.SynchronetBBS.org - GameNet BBS Network
    --- https://PocketGames.online - Handheld gaming emaulation players
    þ Synchronet þ Amiga City - The BBS for the Amiga - more than 3,500+ files
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Retro Guy@1:103/705 to Scott Comstock on Fri Jan 18 13:13:12 2019
    On Fri, 18 Jan 2019 11:21:51 -0500
    "Scott Comstock" <scott.comstock@VERT/ATVCHRN> wrote:

    All,

    After some on-again, off-again fits & starts over the last year or
    so, I'm looking to open up my board after I get some more doors
    installed and some more stuff for the file areas. Has anyone ever successfully gotten fail2ban to work on an SBBS system that isn't
    running daemonized?

    I believe fail2ban reads the log files, then sets an iptables rule to
    block an ip address. As long as synchronet is writing to log files, and
    you write rules to read the specific files properly, I don't see why it wouldn't work.

    Does synchronet not write to log files if not running as a daemon? I
    don't know, that's why I ask :)

    ---
    þ Synchronet þ RetroBBS - bbs.rocksolidbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Retro Guy on Fri Jan 18 17:48:13 2019
    Re: Re: fail2ban with sbbs non-daemon
    By: Retro Guy to Scott Comstock on Fri Jan 18 2019 01:13 pm

    Does synchronet not write to log files if not running as a daemon? I
    don't know, that's why I ask :)

    Synchronet for *nix (i.e. the sbbs console program), when run non-daemonized, will not use syslog (log messages go to stdout) unless you also pass the "syslog" argument on the command-line, in which case you'd get log messages to both stdout and syslog.

    digital man

    This Is Spinal Tap quote #25:
    Viv Savage: Have... a good... time... all the time. That's my philosophy. Norco, CA WX: 58.7øF, 79.0% humidity, 0 mph S wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Retro Guy@1:103/705 to All on Sat Jan 19 05:41:32 2019
    On Fri, 18 Jan 2019 17:48:13 -0800
    "Digital Man" <digital.man@VERT> wrote:

    Re: Re: fail2ban with sbbs non-daemon
    By: Retro Guy to Scott Comstock on Fri Jan 18 2019 01:13 pm

    Does synchronet not write to log files if not running as a daemon?
    I don't know, that's why I ask :)

    Synchronet for *nix (i.e. the sbbs console program), when run
    non-daemonized, will not use syslog (log messages go to stdout)
    unless you also pass the "syslog" argument on the command-line, in
    which case you'd get log messages to both stdout and syslog.

    digital man

    Ah, thanks. So the answer to Scott's question would be that you need to
    pass "syslog" when starting, then fail2ban should work with
    synchronet (assuming it's configured to read synchronet log entries).

    ---
    þ Synchronet þ RetroBBS - bbs.rocksolidbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Scott Comstock@1:103/705 to Retro Guy on Sat Jan 19 09:56:33 2019
    Re: Re: fail2ban with sbbs non-daemon
    By: Retro Guy to All on Sat Jan 19 2019 05:41 am

    Ah, thanks. So the answer to Scott's question would be that you need to
    pass "syslog" when starting, then fail2ban should work with
    synchronet (assuming it's configured to read synchronet log entries).

    Thanks, folks. That's exactly what I needed. Now to spend the long weekend drawing screens and finding more stuff to put on my system :)

    -Scott

    ---
    þ Synchronet þ Atavachron BBS * atavachronbbs.net (telnet/ssh/www)
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)