Another RHEL6 firewall tip.

Share this link

Today I went to the official RedHat forum and learned a firewall tip from Jamie Bainbridge.
If you need to change the firewall configuration of a server and don’t want to lock yourself out of this server, you can type the following command:
# echo "service iptables restart" | at now + 5 minutes
This way, whatever iptables command you type, you will get the configuration reset after the delay specified. Furthermore, you will be able to view and remove the job by using the commands atq and atrm respectively.
Finally, when debugging your firewall configuration, don’t forget to use the -j LOG target to see if/when traffic hits a certain point in the rules. This can be very useful.

Posted in RHEL6

Upcoming Events (Local Time)

There are no events.

RHCSA7: Task of the day

Allowed time: 10 minutes.
Boot and change the root password before the end of the boot process.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a default secure MariaDB database called maria and create a table named people with two columns respectively name varchar(20) and age int(10) unsigned.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...