How to configure remote log servers with rsyslog?

Rsyslog is an open-source software utility used on UNIX and Unix-like computer systems for forwarding log messages in an IPnetwork. It implements the basic syslog protocol, extends it with content-based filtering, rich filtering capabilities, queued operations to handle offline outputs,[2] support for different module outputs,[3] flexible configuration options and adds features such as using TCP for transport.

How to Install the PHP GeoIP Extension

The GeoIP extension allows you to find the location of an IP address, including the city, state, country, latitude, and longitude. If you'd like to use the new GeoIP2, MaxMind now offers a pure PHP implementation that doesn't require a C extension: https://github.com/maxmind/GeoIP2-php.

.tar.gz /var/www and vardump mysql database and scp ssh to another server – simple backup solution

This is a simple tutorial on how to back up your www directory a.k your website and the database. For the file backup we are going to use the tar command which will archive the files and folders. Mysqldump is going to be our database export tool and scp and ssh the tools for remote transfer the archive.

A simple iptables firewall script to block all ports except port 80 and give port 22 to certain ip’s

Views: 60 This simple script is very useful and very simple and will give you the basics of what you can do with linux iptables firewall. Make a file: Paste all the info and correct the ip addresses with you owns. Give it some permissions And run the script. Now this was tested in ubuntu […]

How to install denyhosts on Ubuntu Linux 17.04 ( intrusion prevention security tool for SSH and more)

Views: 42 DenyHosts is a log-based intrusion prevention security tool for SSH servers written in Python. It is designed to prevent brute-force attacks on SSH servers by monitoring invalid login attempts in the authentication log and blocking the originating IP addresses using /etc/hosts.deny and sbin/iptables on Linux server. In this tutorial, you will learn how […]

Ubuntu mycli install (mysql terminal – modern alternative to the default MySQL client)

Views: 56 Mycli is a modern alternative to the default MySQL client. This tool does to MySQL what bpython does to the standard Python REPL. Mycli will auto-complete keywords, table names, columns, and functions as you type them. The completion suggestions are context-sensitive. For example, after the SELECT * FROM, only tables from the current […]

Install and configure fail2ban on ubuntu 17.04 and block on all ports

Fail2ban scans log files and bans IPs that show the malicious signs -- too many password failures, seeking for exploits, etc. Generally Fail2Ban is then used to update firewall rules to reject the IP addresses for a specified amount of time, although any arbitrary other action (e.g. sending an email) could also be configured. Out of the box Fail2Ban comes with filters for various services (apache, courier, ssh, etc).

How to enable apache2 cache to speed up your website on ubuntu

Views: 52 First enable the mods: Then edit the virtual host: And add ifmodule between virtual host: Then restart the apache service:

Linux: How to get remote page load time with a command from the terminal?

Linux: How to get remote page load time with a command from the terminal? This will give you the remote page load time in miliseconds.

How to install google’s mod pagespeed in ubuntu server and how to disable it

Views: 45 About this articleIntroduction One of the more recently popular modules for Apache is mod_pagespeed. It is an output filter for Apache 2.2+ that can be configured through a variety of options through configuration files or a .htaccess file. An “output filter” is a something that transforms the data before it’s sent to the […]

How to enable mod_rewrite on ubuntu web server?

Mod_rewrite enables your links to be user friendly. For example lateweb.info/post.php?id=121 is going to be converted to lateweb.info/How-to-enable-mod_rewrite-on-ubuntu-web-server/. And that is better for users and search engines. So how do we do that?

How to block ip addresses and protect files and folders with apache and .htaccess in ubuntu?

Views: 50 In this tutorial we are going to create block list for our website so that IP addresses that we know are bad can’t connect to our server. Also we are going to protect files that we don’t want to be opened by other people online. First we edit 000-default.conf and make the needed […]

Subscribe to our newsletter!

We hope you enjoyed this page. if that is so please subscribe to our YouTube channel or follow us on twiter.