Solved

what is the opposite of iptables -F ?

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 43
Automating a script for user accounts LINUX 14 64
Configuring windows 7 host in Nagios 4 5 38
VMware Workstation 12 Player 16 27
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

12 Experts available now in Live!

Get 1:1 Help Now