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

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz

RHCSA7: Task of the day

Allowed time: 5 minutes.
Create two users "tom" and "engine". "tom" has the UID/GID 3000 and "engine" the UID/GID 4000. "engine" doesn't have an interactive shell.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a NFS server that exports the /opt directory in read-only mode.

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 ...