Linux Disable Core Dumps

A core dump is a file that contains the memory image of a process when it crashes. By default, core dumps are enabled on most Linux distributions. However, in some cases, you may want to disable core dumps to save disk space or to prevent sensitive data from being written to disk. Here’s how to … Read more

Linux Iptables Just Block By Country

Blocking traffic from specific countries using iptables can be challenging as IP addresses are not directly tied to a specific country. However, there are several services and databases that provide geo-location information about IP addresses. One way to block traffic from specific countries using iptables is to use the xt_geoip module, which allows you to … Read more

CentOS or Redhat Enterprise Linux

CentOS and Red Hat Enterprise Linux (RHEL) are two closely related operating systems. CentOS is a community-driven, free and open-source Linux distribution that is built from the same source code as RHEL, but without the branding and licensed components. RHEL is a commercial Linux distribution that is designed for enterprise environments and is backed by … Read more

CentOS Add Route Command

To add a static route in CentOS, you can use the ip route add command. The syntax of the command is as follows: sudo ip route add destination_network/subnet_mask via gateway_ip Where: destination_network/subnet_mask: Specifies the destination network and subnet mask in CIDR notation (e.g., 192.168.1.0/24). via gateway_ip: Specifies the IP address of the gateway that should … Read more

Postfix Configure Client SMTP Authentication ( Smarthost Authentication )

To configure client SMTP authentication (also known as smarthost authentication) in Postfix, follow these steps: Install the sasl2-bin package if it’s not already installed: sudo apt-get install sasl2-bin Create a new file in /etc/postfix/sasl directory for the authentication credentials. For example: sudo nano /etc/postfix/sasl/sasl_passwd Add the following line to the file, replacing smtp.gmail.com with the … Read more