Results 1 to 15 of 19

Thread: how to install fail2ban on a WL700g

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by tiwag View Post
    i got it installed, basically it works with python 2.4 too,
    at least it showed me the configuration settings with using
    Code:
    $ fail2ban-client -d
    but i didn't get it working, during the configuration phase
    i had to do some reboots of my Wl700g and somehow i
    managed to brick my asus. first it got crazy with constantly
    rebooting and after resetting the device all configuration of
    my shares was lost.

    will see if i can retrieve my config somehow

    brgds
    What errors appeared in your syslog? what logging level were you using? did the same thing happen when installing / running under python2.5? Did you modify the jail.conf before running in non-debug mode?

  2. #2
    Join Date
    Aug 2007
    Location
    Austria
    Posts
    52
    hi medsource

    got everything on my router working again

    my problem wasn't related to the configuration of fail2ban,
    now i know, that since i had edited the root user's homepath,
    then my WL700g got crazy on reboot.

    now i want to work further on getting fail2ban to work.

    my problem is, how can i get dropbear and vsftp to write their
    log entries into a logfile, which can be read by fail2ban ?

    any solution which wouldn't disable the standard syslog provided
    by syslogd, and access with logread command would be preferred.
    i tried using syslog-ng which basically works, but syslogd and klogd
    have to be disabled if syslog-ng shall be used.

    medsource, how did you manage this issue ?

    thanks && brgds
    tiwag

  3. #3
    Quote Originally Posted by tiwag View Post
    hi medsource

    got everything on my router working again

    my problem wasn't related to the configuration of fail2ban,
    now i know, that since i had edited the root user's homepath,
    then my WL700g got crazy on reboot.

    now i want to work further on getting fail2ban to work.

    my problem is, how can i get dropbear and vsftp to write their
    log entries into a logfile, which can be read by fail2ban ?

    any solution which wouldn't disable the standard syslog provided
    by syslogd, and access with logread command would be preferred.
    i tried using syslog-ng which basically works, but syslogd and klogd
    have to be disabled if syslog-ng shall be used.

    medsource, how did you manage this issue ?

    thanks && brgds
    I changed, in the vsftpd.conf file, the location and method of the logging. I set it (if memory serves correct) to /var/tmp/log and called it ftp.log (I think). I then set a cron job to run a script to check the size of the log and purge it if it got too big (I think it was set to 200kb).

    I too would have loved fail2ban to just peruse the syslog, but I never found a way to do that. Anyway, using a true log file (on the ramdisk so spindown is preserved) works.

  4. #4
    Join Date
    Aug 2007
    Location
    Austria
    Posts
    52
    any other one, who has some other ideas

    (maybe with tested and working scriptfiles
    and precise instructions, what has to be changed where,
    instead of "maybe could be working when my brain remembers correctly" )


    sorry medsource, but you are way too unspecific !
    therefore of no great help.

    brgds
    tiwag

  5. #5
    Quote Originally Posted by tiwag View Post
    any other one, who has some other ideas

    (maybe with tested and working scriptfiles
    and precise instructions, what has to be changed where,
    instead of "maybe could be working when my brain remembers correctly" )


    sorry medsource, but you are way too unspecific !
    therefore of no great help.

    brgds
    <rant>

    Well, that lovely public bash really makes me want to check my config files and cron scripts WHEN I GET HOME TO WHERE MY WL-700GE IS to help you out.

    Maybe you should learn to ask politely and not behave like a complete ass. Methinks your results might be better.

    </rant>

  6. #6
    Join Date
    Aug 2007
    Location
    Austria
    Posts
    52
    Quote Originally Posted by medsource View Post
    <rant>

    Well, that lovely public bash really makes me want to check my config files and cron scripts WHEN I GET HOME TO WHERE MY WL-700GE IS to help you out.

    Maybe you should learn to ask politely and not behave like a complete ass. Methinks your results might be better.

    </rant>


    looking politely forward ...

    just a small reminder to what i requested a few times already ...
    Quote Originally Posted by tiwag View Post
    thanks medsource,

    you could post your modified fail2ban files package here,
    then we wouldn't need to investigate the same issues ever and ever again.

    brgds

    --
    tiwag


    anyhow, i made some progress in the meanwhile

    i got syslog-ng working, which produces nice logfiles, which can be read by fail2ban.
    at the moment i'm working to find out, which are the least common settings for syslog-ng,
    in order to produce a /opt/var/log/auth.log where dropbear and vsftp logins are collected,
    and all the other necessary stuff goes to /opt/var/log/syslog
    and all the unnecessary stuff is silently dropped.

    brgds
    Last edited by tiwag; 04-09-2007 at 22:35.
    tiwag

  7. #7
    Quote Originally Posted by tiwag View Post

    i got syslog-ng working, which produces nice logfiles, which can be read by fail2ban.
    at the moment i'm working to find out, which are the least common settings for syslog-ng,
    in order to produce a /opt/var/log/auth.log where dropbear and vsftp logins are collected,
    and all the other necessary stuff goes to /opt/var/log/syslog
    and all the unnecessary stuff is silently dropped.

    brgds
    You might run into a problem with that log location for two reasons...

    1) Unless /opt/var/log is cramfs (need to check the mount point for that) then everytime you experience an attack this data will get written to the drive and will negate spindown on the HD (granted if you are not using spindown then this is not an issue).

    2) Make sure you set a size limit for the log files (syslog-ng SHOULD be able to do this; but I have never used it so I can't say for sure) else the log files (at least vsftpd) will get large over time (speed of increase in size depending on how heavy you are getting hit or how often you use ftp).

Similar Threads

  1. Инструкция по настройке роутера WL-500gP с нуля
    By OlegI in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 1259
    Last Post: 10-02-2011, 21:25
  2. Русские имена торрентов
    By Mirage-net in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 110
    Last Post: 18-06-2010, 14:16
  3. Install softs even you can't install ipkg
    By once in forum SL-1000 Q&A
    Replies: 0
    Last Post: 21-06-2007, 06:50
  4. Ctcs install
    By fisha in forum WL-HDD Q&A
    Replies: 0
    Last Post: 30-08-2006, 12:48
  5. Install python; no success?!
    By ikerstges in forum WL-500g Q&A
    Replies: 4
    Last Post: 07-03-2006, 14:36

Tags for this Thread

Posting Permissions

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