How to install python3-devel on red hat 7

Search for the package in yum , use the following command: yum search python3 | grep devel It will list all the available devel packages. The result will be somewhat like this python3-cairo-devel.x86_64 : Libraries and headers for python3-cairo python3-devel.x86_64 : Libraries and header files needed for Python 3 : development python34-devel.x86_64 : Libraries and … Read more

How to save iptables configuration on Redhat Enterprise Server 7

You should install iptables-services package. Then service iptables save will work. Also these commands will work too: # iptables-save > /etc/sysconfig/iptables # ip6tables-save > /etc/sysconfig/ip6tables AFAIK, systemctl doesn’t have any option to save iptables-services’ configuration. Note: systemctl syntax is as follow : systemctl <operation> <unit>

Check if remote host/port is open – Can’t use GNU Netcat nor NMap – RHEL 7

Bash allows you to connect to TCP and/or UDP ports by redirecting to special files: /dev/tcp/host/port If host is a valid hostname or Internet address, and port is an integer port number or service name, Bash attempts to open the corresponding TCP socket. /dev/udp/host/port If host is a valid hostname or Internet address, and port … Read more

How to redirect output of systemd service to a file

I think there’s a more elegant way to solve the problem: send the stdout/stderr to syslog with an identifier and instruct your syslog manager to split its output by program name. Use the following properties in your systemd service unit file: StandardOutput=syslog StandardError=syslog SyslogIdentifier=<your program identifier> # without any quote Then, assuming your distribution is … Read more

How to enable iptables (instead of firewalld) services on RHEL 7 and Fedora 18?

Make sure you have the iptables-services package installed. This legacy package provides the systemd scripts for the previous iptables invocation. This package is not always installed, depending on your installation choices when you installed (or upgraded). yum install iptables-services And of course, if possible, you should use the new firewalld system. It should only be … Read more

I updated my CentOS 7 system. Why is Meltdown/Spectre only partially mitigated?

As noted in https://access.redhat.com/articles/3311301 CVE-2017-5715 (variant #2/Spectre) is an indirect branching poisoning attack that can lead to data leakage. This attack allows for a virtualized guest to read memory from the host system. This issue is corrected with microcode, along with kernel and virtualization updates to both guest and host virtualization software. This vulnerability requires … Read more