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.
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.
-
Ok. I am able to get hold of a server. I was trying save iptables using
/etc/init.d/iptables save
or usingservice
command. None of them help. Can you help me with the command? – prado Jan 25 '17 at 6:40 -
-
iptables-save
andiptables save
are not the same command. Load up iptables into your favourite editor and read it - be educated. – user9517 Jan 25 '17 at 6:54
iptables-restore
is the command to reload saved rules. – Ipor Sircer Jan 24 '17 at 17:08