Manually Editing iptables
Posted
by
JamesB41
on Super User
See other posts from Super User
or by JamesB41
Published on 2013-06-27T15:31:34Z
Indexed on
2013/06/27
16:23 UTC
Read the original article
Hit count: 141
I'm using CentOS. What I'm wondering is, what happens if I manually edit /etc/sysconfig/iptables and save it? Is that the definitive source? When I type iptables -L I get something that doesn't match the contents of that file. Is there a way I can just edit the chains directly without adding/removing rules one at a time? i.e. open VIM and get everything set up the way I want it and then save.
Along those lines, when I do something like iptables -A INPUT , where does that go in the immediate sense? Is it not applied until I do an iptables-save? I feel like I'm just missing an a-ha moment here and I can't seem to find the answer in a search.
© Super User or respective owner