![]() |
iptables-save can't save settings
Hi, I am new here,
Config a CentOS iptables. I issued some iptables rules. the rules were effective at once. Then, I came with a "iptables-save", but the "/etc/sysconfig/iptables" file hasn't been updated, it still loads the defaults rules with CentOS after reboot. I tried a new installation on VMware, but it's the same. Thanks for help. |
From the man page
Quote:
HTH |
iptables-save? never seen or used it like that, I generally use "/etc/init.d/iptables save" alternatively as root "service iptables save". Remember you need root permissions for iptables to be able to write to it's on configuration file.
|
Yeah, if you use the iptables-save binary you'd need to specify where to send the output. Example:
Code:
iptables-save > /etc/sysconfig/iptables |
Thanks for all.
I had overlooked the instruction of iptables-save command. |
| All times are GMT -5. The time now is 02:08 AM. |