0

I am little confused. I know that iptables-save command will help to take backup of iptables with > to a file. But will this command alone will reload iptable configuration. Sorry, I don't have a server to check this and I was unable to see any online reference.

4
  • 2
    "save" means save and no more. iptables-restore is the command to reload saved rules. Jan 24, 2017 at 17:08
  • Alright. So this is for ALL flavors of Linux right? @ipor
    – prado
    Jan 24, 2017 at 17:09
  • 3
    There is ONE flavor of linux, kernel.org Jan 24, 2017 at 17:19
  • I rolled back your edit because it changes the question too much. If you have another question then just ask.
    – user9517
    Jan 25, 2017 at 6:49

1 Answer 1

2

The iptables-save command writes a series of iptables commands to a file such that the current state of the firewall can be saved. If you want to restore that state you can use the iptables-restore command.

3
  • Ok. I am able to get hold of a server. I was trying save iptables using /etc/init.d/iptables save or using service command. None of them help. Can you help me with the command?
    – prado
    Jan 25, 2017 at 6:40
  • Edited the question to make it clear.
    – prado
    Jan 25, 2017 at 6:47
  • iptables-save and iptables save are not the same command. Load up iptables into your favourite editor and read it - be educated.
    – user9517
    Jan 25, 2017 at 6:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.