Iptables and system-config-firewall
Posted
by
nivde92
on Server Fault
See other posts from Server Fault
or by nivde92
Published on 2013-11-12T18:30:20Z
Indexed on
2013/11/12
21:56 UTC
Read the original article
Hit count: 161
iptables
I had a set of netfilter rules set with iptables
, but someone else told me to use system-config-firewall
to add a rule for sharing files with Windows. (Samba) This rewrote the iptables rules file and I lost my own custom rules.
I have a backup copy, but am having trouble restoring them.
Edit: The server is Centos, I already tried to restore the rules with
iptables-restore < /root/working.iptables.rules
but for some reason the rules don't change.
What are you trying to do?
Trying to restore the iptable rules that I have in a backup file.
What have you tried in order to make it happen?
I've tried to modify the iptables file with vim
, since the command iptables-restore
was no help.
What results did you expect?
To get the old rules back.
What actually happened?
Nothing, when I run the command or edit the file by hand the file doesn't change at all. Maybe something else it's overwriting.
© Server Fault or respective owner