Been a while since i had any computer projects going on, only means i have been busy doing something else or just sleeping.
Well me and my project partner got our self an VPS at an hosting company based in Stockholm Sweden because we have been using an computer at home with VPN tunnel for domain and static IP but was time to move it outside, so we start with blank VPS. Linux Ubuntu 14.04 was the latest we got offered and we wanted to make the whole installation from beginning.
This move to new VPS will also mean i will move my own neverending projects blog there also under new domain.
Things to install?
root domain – techmonkeys.se (DONE) nothing to see there but atleast we have working hostname.
Kolab groupware – https://docs.kolab.org/installation-guide/winterfell/ubuntu-14.04.html
Multi domain support for kolab – https://docs.kolab.org/howtos/multi-domain.html
Kolab is not the easiest server to setup even tho our installation of Winterfell version went without errors after our host fixed reverseDNS issue. Problems started after we added multi domain support, now we cannot log on to roundcubemail (reading all kinds of problems with this setup)
Configuration continues tomorrow.
So its time to get Mikrotik acting as firewall. And for this i will use SSH key as our command to block ip’s will go via ssh commands. I am going to use address_lists on the mikrotik just because i have already rules set up for thos which i have manually populated in the past.
Continue reading →
OK so it’s time to get fail2ban parsing mikrotik logs and start banning offending ip’s towards its services. As we already have rsyslog done and mikrotik sends logs to it all we have to do is get an filter for fail2ban and we should be done. Continue reading →
Ok time to get syslog server up and running to gather logs from my mikrotik gateway, after all we want to be able to ban attackers on all devices in the end. For this we have all the needed software installed on Ubuntu 14.04 server already and just need to do some configuration. So lets start. Continue reading →
Fail2SQL – An SQL logger for fail2ban can be found at http://fail2sql.sourceforge.net/
But i will do two things at the same time as i also found this http://www.byteme.org.uk/2014/04/21/ban-hammer-fail2ban-geo-ip-on-google-maps/ which will give me statistics on the web with google maps about banned IPS with geo location. So for the next to do this in correct order, Download fail2SQL and then follow RobinC howto along side when activating Fail2SQL. Continue reading →
As i see auth.log is filled with brute force attack on all services that are open to the internet its always good to have protection and fail2ban provides good features to be able to minimize those attacks. fail2ban will alter iptables configuration on the fly on predefined number of unsuccessful login attempts. In the beginning i will configure fail2ban to alter iptables locally on my server but will change that so it is my gateway (mikrotik) that will be the firewall that blocks the banned IP’s. But first installation of fail2ban locally only. Continue reading →
Was time to refresh my server skills so i started project Ubuntu Server 14.04 on new hardware and clean install, everything from scratch. How big the project is going to be i have no idea but so far i have installed the system, configured for my home network.
So far i have installed and configured MySQL, Apache2, PHP and SSH server
Not so much to write about the installation process other than my computer refused to complete installation via USB for some reason, google did not have an solution so i just burned an CD and installed to get it going. After installation was done i installed SSHD and configured it like i normally do, Root login not allowed and only RSA/DSA key logins accepted no password login via SSH at all.
Installation of Apache2, PHP and MySQL and default configs works for now. Just created an database for the server to use for various things as i like to store information in SQL.
It Works! So far so good, Easy. Next post will be soon about Fail2ban with fail2sql and banhammer web statistics.
Here i will gather all my projects about computer mostly Linux Ubuntu and Radio-controlled cars/quadcopters, also some other technical projects. I mostly write here for my self to remember better what i have done for the next time i need to do these things.