Solved

what is the opposite of iptables -F ?

Posted on 2014-10-05
2
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 40362550
Doesn't

/sbin/service iptables reload

do the trick?

Alternatively try

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

Author Closing Comment

by:TIMFOX123
ID: 40362588
Hello WMP

you are totally correct.  

Brain overload at the moment

this works great
0

Featured Post

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

634 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