Linux tutorials, system administration, web hosting, programming

HSTS (HTTP Strict Transport Security)

botond published 2023. 01. 09., h - 06:35 time
HSTS (HTTP Strict Transport Security) is a policy mechanism that helps protect websites from man-in-the-middle attacks, such as protocol downgrade or cookie hijacking. It allows websites to require web browsers (and other web client applications) to automatically only use HTTPS connections, which implement strong encryption using SSL/TLS. HSTS is a 2012 IETF standard defined in RFC 6797.

Merry Christmas!

botond published 2022/12/24, Sat - 12:17 time
Linuxportál wishes you a blessed and peaceful Christmas!

How to enable the HTTP/2 protocol on our Apache based web server

botond published 2022/12/20, k - 02:50 time
The HTTP/2 or HTTP2.0 protocol enables faster web services with less data traffic. Although the protocol created in 2015 has been widespread for quite a few years, it is not turned on by default in the majority of web servers due to compatibility reasons. Among other things, it does not support the outdated mod_php Apache module, which in turn still operates many old websites, so enabling and enabling it is left to system administrators. In this short description, we will see how we can enable the use of the HTTP/2 protocol on Apache web servers that still use the old HTTP/1.1 protocol.

Perfect server: Debian 11 (Bullseye) v1.0

botond published 2022/12/13, k - 07:08 time
In this description, we will create a newer, Debian 11 (Bullseye) version of the perfect server. Unlike the previous perfect server installations, this time we will not do this with lengthy package installations and configurations, but with the help of an automation script, which the developers of ISPConfig have put together to facilitate the preparation of the server. The script has been available for some time, with the help of which it can be used not only on the Debian 11 (Bullseye) operating system, but also on the Debian 10 version, as well as on Ubuntu 20.04 and Ubuntu 22.04 systems. I automated the components of the perfect server.

UNC (Universal Naming Convention)

botond published 2022/11/01, k - 21:14 time
The Universal Naming Convention (UNC) is a naming standard for identifying servers, printers, and other network resources that originated in the Unix community.

Basic port scanning - Or how to check the security of our Linux server against unauthorized intruders

botond published 2022/10/23, v - 09:30 time
When checking ports from the outside, we perform a port scan on the computer to be checked to find out which ports are open, which services monitor these ports, etc. Port scanning is usually performed by system administrators to check the security of the server, but unfortunately, it is also often used by malicious attackers to map the weak points of the selected target computer. On this page, we review the basic use of the nmap command.

How can we check the used and free TCP/UDP ports of our Debian or Ubuntu Linux operating system?

botond published 2022/10/23, v - 08:20 time
Several services can run on a Linux operating system, especially on a more complex web server installation. These services communicate through different TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) ports on the network interface. A listening port is a network port on which an application or process listens and acts as a communication endpoint. Checking ports is an important task from several points of view. On the one hand, for the sake of security, we must monitor the open ports and the communication on them, and on the other hand, we can also reduce the number of error possibilities that result from several similar services using the same port.

How can we change the default tcp port 22 of our SSH server on our Debian or Ubuntu Linux server for better security?

botond published 2022/10/23, v - 08:10 time
There are several ways to manage web servers and other servers remotely, of which SSH is the most common command line solution. The SSH protocol communicates over an encrypted channel between the server and the client. Like all similar communications, SSH transmits data through a specific port, which by default is the well-known tcp port 22. Since the function of this port is known to many people, it exposes the servers to regular attacks. This is usually avoided - or at least to reduce the number of attempts - by switching this well-known port to another, unknown port number, which can only be detected externally by port scanning, which is a more time-consuming task.
In this write-up, we will look at how to change SSH's well-known TCP port 22 to a unique port number to minimize the number of attack attempts via SSH.

How to fix "AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error." types of Apache errors?

botond published March 2022, 09, Thu - 22:16 time
.htaccess files are very useful accessories for the Apache web server, with the effective use of which we can solve many problems. However, in the case of a more complex server configuration, we need to pay attention to several things, otherwise we can easily generate Apache errors.
In this troubleshooter, we deal with redirects, where in certain situations we can end up in an endless redirect cycle, which eventually results in "AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error." leads to content errors.

Debian 11 (Bullseye) LAMP server v1.0 installation

botond published 2022/09/06, k - 17:12 time
With the help of LAMP systems, we can run dynamic websites on our server or even on our home computer. In this description, we will create a LAMP server on the Debian 11 (Bullseye) operating system, on which the following components will be installed: Apache 2.4.54, MariaDB 10.5.15, PHP 7.4 and phpMyAdmin 5.0.4, UFW firewall.