Removing Pre-Routing NAT Rules in IPtables

To remove specific iptables rule from Pre-Routing chains, first display all Pre-Routing chains using a following iptables command:

iptables -t nat --line-numbers -L

This will display all Pre-Routing chains with relevant line numbers. To remove a specific Pre-Routing rule, you can use the corresponding line number. For example below command will remove Pre-Routing NAT chain with line number 1.

iptables -t nat -D PREROUTING 1

Apache 2.4.16 installation with SSL manually on RHEL 7.0/CentOS 7.0

In this article, we are going to build Apache service (2.4.16) with custom settings and install it on RHEL 7.0 from scratch with SSL support. Before we start, let’s install dependencies required.

Post build packages required,

yum groupinstall “Development Tools”
yum install openssl-devel
yum install pcre-devel

Continue reading