Quote:
Originally Posted by qwertyjjj
Is that normal?
|
If this is "normal" depends on your 'grep -i ^i.*save_on /etc/sysconfig/iptables-config' settings.
Quote:
Originally Posted by qwertyjjj
Do I have to add that routing into my current script?
|
If you want it, yes. If the above settings from /etc/sysconfig/iptables-config are set to NO then
Code:
# save iptables rule set to temporary file:
umask 0027; /sbin/iptables-save > /tmp/.iptables.$$
# verify the only changes are your rule (unless you have enabled say counters saving in iptables-config):
diff --side-by-side /tmp/.iptables.$$ /etc/sysconfig/iptables | less
# and if OK backup and copy contents over:
cp /etc/sysconfig/iptables /etc/sysconfig/iptables.previous
cat /tmp/.iptables.$$ > /etc/sysconfig/iptables && rm -f /tmp/.iptables.$$