Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

what is the opposite of iptables -F ?

Posted on 2014-10-05
2
Medium Priority
?
323 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

715 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