LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-19-2016, 02:21 AM   #1
sbabuv
LQ Newbie
 
Registered: Jun 2016
Posts: 3

Rep: Reputation: Disabled
Follow steps to take backup and restore IPTABLES


Dear Friends,

Please click on below link to take backup and restore of IPTABLES..

https://winlinuxtips.wordpress.com/2...tore-iptables/



Quote:
Originally Posted by hans51 View Post
to save changes made to the iptables config file - use

iptables-save >/etc/iptables.conf

to restore from that file - use in shell:

iptables-restore </etc/iptables.conf

obviously you may run above save command to create a second backup copy in case all gets lost again ! example:
iptables-save >/etc/iptables.conf-backup
 
Old 06-19-2016, 03:31 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
This post was pruned from the vintage 2007 thread "Need to restore iptables config". Please mind where you post, thanks.
 
Old 06-20-2016, 01:33 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
Also: "Meh... I haven't hand-coded an IPTables rule-set in years now."

Take a look at tools such as Shorewall, which will process a specifications-file and issue(!) the commands necessary to implement that firewall.

It is, in other words, a "DWIW = Do What I Want" tool.

To me, the rather-enormous advantage of this approach is that the tool's configuration-files specify "what you want," leaving it up to the tool itself "to achieve that." (Such that, if it fails to do so, that's merely "a bug.")

This is vastly easier than trying to deal with command-scripts which may-or-may not "accomplish your intentions" successfully, and in which in any case do not describe what "your intentions" actually are.

Last edited by sundialsvcs; 06-20-2016 at 01:34 PM.
 
Old 06-20-2016, 02:05 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by sbabuv View Post
Dear Friends,
Please click on below link to take backup and restore of IPTABLES..
Read the LQ Rules. You did this for the sole purpose of ADVERTISING YOUR OWN BLOG.

Really, if you're going to get people to read your blog, try putting something out there that's original, not ancient, and also without spelling/grammar errors. Post reported.

Last edited by TB0ne; 06-20-2016 at 02:06 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and Java. Steps to follow to be able to start using them. glore2002 Slackware 10 10-07-2008 09:05 AM
what steps to follow when you have to recompile? echnat0n Linux From Scratch 1 05-07-2007 10:51 AM
what steps to follow when reentering chroot iam whoiam Linux From Scratch 3 02-13-2005 09:12 AM
first steps a new admin must follow ddaas Linux - Newbie 3 12-21-2004 04:53 PM
first steps a new admin must follow ddaas Linux - General 3 12-21-2004 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration