Solved

what is the opposite of iptables -F ?

Posted on 2014-10-05
2
294 Views
Last Modified: 2014-10-05
I need to do things quick

in a lab environment I setup my firewall and my services

I then often like to do a iptables -F to check mywork without the firewall.

then I would like to enable the iptables with one quick command

how do I undo a iptables -F without going into system-config-firewall-tui and .......

I need to be quick

timfox123

redhat 5+
0
Comment
Question by:TIMFOX123
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
Doesn't

/sbin/service iptables reload

do the trick?

Alternatively try

/sbin/iptables-restore < /etc/sysconfig/iptables
0
 

Author Closing Comment

by:TIMFOX123
Comment Utility
Hello WMP

you are totally correct.  

Brain overload at the moment

this works great
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now