Category: Tech Tips

  • Using fail2ban to stop WordPress attacks on Administrator

    There is a plugin for WordPress that works with fail2ban so you can lock out at the firewall persistent attempts at invalid passords  http://wordpress.org/plugins/wp-fail2ban/ it works  by login attempts and has a filter too. However, with so many attacks on admin or administrator, which no one should really use anyway, I have written another filter so…

  • How to remove an ip from fail2ban

    If fail2ban locks out an IP address that you want to re enable First find out what fail2ban jail the ip is in by using the command [code]iptables -L[/code] and [code]iptables -D fail2ban-JAILNAME -s xx.xxx.xxx.xxx -j DROP[/code] Where JAILNAME is something like SSH and the IP address is xx.xxx.xxx.xxx

  • To set a background job from the terminal in Linux

    If you run a command from the shell terminal, and you realise that it is going to run a while, you can put it into the background first ctrl-z which suspends it, then bg which starts it running in background, then disown -h which detaches the job from your session, this is important as if you exit…

  • Securing Centos server

    A few useful resources relating to securing Centos find tools and installing isn’t always simple 1. log watch monitors logs and can send e-mails of what has been going on here is a useful resource of how to https://www.dieskim.me/2012/07/03/centos-6-virtualmin-logwatch-install-configure-mail-to-email-disable-service-monitoring-debug-fixmysql-http-error/ 2. chkrootkit  check stuff too http://generallinux.com/install-chkrootkit-on-centos/

  • How to upload a mysql database from a sql.gz file

    How to upload a database from a database.sql.gz file.  For instance c-panel databse backup can create this file and you might want to use it up upload to a test system or when moving server zcat  database.sql.gz | mysql -u username -p -h localhost databasename password: Executing this command line in the shell on your…

  • Cloning a website

    To create a static copy of all website pages, for some reason that may be necessary, in linux   wget –mirror -w 2 http://www.example.com