That's method is prefered instead of 2):
/etc/init.d/iptables restart
Main Topics
Browse All TopicsI was creating a firewall with firewall builder, and accidentally installed a firewall that won't let me do anything. (oops...)
How do I reset iptables to allow me to get back to normal? I can't ssh, run xserver, or ANYTHING
Pulling my hair out,
Doc.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi DrDamnit,
All the methods are the things when you have an established open session with you.
You need to have a physical access to your machine if it is not responding to any of other connections over the network or a trusted source as per your ruleset.
By the way which way are you using Firewall Builder to build your firewall ?
Which OS are you using ?
Thanks!
-- Aashish
Business Accounts
Answer for Membership
by: NopiusPosted on 2007-05-16 at 18:37:00ID: 19105526
Choose either one of:
1) iptables -F
will flush all rules with default rule to be applied to all packets
2) iptables-restore < /etc/sysconfig/iptables
will restore system defaults (if you have any)
3) iptables -F
iptables -A INPUT -j ACCEPT
iptables -A OUTPUT -j ACCEPT
iptables -A FORWARD -j ACCEPT
executed locally will force every protocol to be allowed (almost the same as turn off firewall).