🐧 Linux
(32 posts)
Practical Linux administration guides covering system configuration, networking, troubleshooting, and automation.
📅 2017-08-04
✍️ Bart Schelstraete
Within HAProxy it is possible to redirect all HTTP traffic to HTTPS. It is sufficient to add the following rule within the frontend section: frontend incoming80 bind 10.1.1.13:80 redirect scheme…
Read more →
📅 2017-08-04
✍️ Bart Schelstraete
Within HAProxy it is possible to redirect all HTTP traffic to HTTPS. It is sufficient to add the following rule within the frontend section: frontend incoming80 bind 10.1.1.13:80 redirect scheme…
Read more →
📅 2017-08-04
✍️ Bart Schelstraete
If you configure HAProxy by default, the backends will receive the IP address of the HAProxy as the incoming IP address. Some applications (or people) don't want that. It is possible to configure…
Read more →
📅 2017-07-05
✍️ Bart Schelstraete
With the code below, you can set SELinux to allow remote backends. getsebool haproxy_connect_any # by default 0 setsebool -P haproxy_connect_any 1
Read more →
📅 2017-04-06
✍️ Bart Schelstraete
If you have a file system with a lot of small files, it is possible that you are running out of inodes. Unfortunately it is not possible to increase the number of inodes on the fly. In order to…
Read more →
📅 2017-03-29
✍️ Bart Schelstraete
You can use the following mod_security rules for WordPress/Joomla/Drupal: ## Rules for the CWP ## SecRuleRemoveById 910006 SecRuleRemoveById 950000 SecRuleRemoveById 950001 SecRuleRemoveById 950005…
Read more →
📅 2017-03-01
✍️ Bart Schelstraete
There are different possibilities to run internet speed tests from the Linux (and Unix based systems) command line. Personally, I don't always want to install extra applications on servers. Because…
Read more →
📅 2017-01-19
✍️ Bart Schelstraete
You can use the following commands, as superuser, to clear the systemd logs: Keep the last 7 days: journalctl --vacuum-time=7d Keep the last 100Mb: journalctl --vacuum-size=100M
Read more →
📅 2017-01-02
✍️ Bart Schelstraete
Is your postfix mail queue full of spam? You are not the only one :) In that case it could be interesting to clear your queue before the spam gets sent out. In order to remove all mail from the…
Read more →
📅 2016-12-31
✍️ Bart Schelstraete
Fail2ban is a daemon that can be used to monitor the logs of services and ban clients based on incorrect behaviour. A must-have on your Linux system. But sometimes you can forget to enable the…
Read more →