Solved

what is the opposite of iptables -F ?

Posted on 2014-10-05
2
305 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Coding C# in Linux 8 135
LINUX backups with VEEAM 8 122
Connect to CentOS (in a local VMWare VM) using Putty 7 71
LINUX Field Separators 7 42
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
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.

820 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