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
    Join Date
    Aug 2007
    Location
    Austria
    Posts
    52

    how to install fail2ban on a WL700g

    Quote Originally Posted by medsource View Post
    Here's a list of 'wants.' Granted I've got most of these already running ...

    Fail2ban for disabling bruteforce attacks
    ...
    could you please explain how you've built and installed fail2ban on your router ?

    brgds

    --
    tiwag

  2. #2
    Quote Originally Posted by tiwag View Post
    could you please explain how you've built and installed fail2ban on your router ?

    brgds

    --
    tiwag
    Firstly you need python installed (2.4 and 2.5)

    Then download the fail2ban sw from their server (http://www.fail2ban.org/wiki/index.php/Main_Page)

    Install it (you'll have to mod the setup.cfg script to run python2.5 as the environment and to the opt directory)

    After that you need to do some tweaking...

    To get it to run you need to modify the three core files: fail2ban-client, fail2ban-server and fail2ban-regex (they should be in the /opt/bin directory... if not then move them there).

    Each file references the /usr/share/fail2ban directory for the core components (it's like line 30ish). All you have to do is replace the /usr/share/fail2ban in each of the three files with /opt/fail2ban (which should be your install directory). To test if it's running ok all you have to do is type fail2ban-client -d (you don't need the python statement as it was set at install when you modified setup.cfg to use python2.5 as the environment).

    If it works it will display the current jail.conf settings. Then if your jail.conf settings are ok you can launch the application by typing fail2ban-client start (with the -c /[dir]/ if you didn't switch the location of the config files in the fail2ban-client file in the /opt/bin directory). Also make sure that the logging is to the correct location (I put it to the syslog) and that the logging level is correct (3 for runtime 4 for debug).

    Hope this gets you off the ground.

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
  •