View previous topic :: View next topic |
Author |
Message |
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Thu Sep 27, 2012 5:24 pm Post subject: /etc/init.d/iptables save not working [SOLVED] |
|
|
I can run iptables-save > iptables-saved and iptables-restore < iptables-saved and get the results expected.
However, when I reboot the configuration is not being rememberd.
I used /etc/init.d/iptables save and it appears to work but upon restore it is not there. the gentoo build is up to date as of 2 days ago.
Im looking at the init scripts trying to follow its logic, but I figured I would toss out the question while I inpsect. _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting.
Last edited by njcwotx on Thu Sep 27, 2012 5:56 pm; edited 1 time in total |
|
Back to top |
|
|
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Thu Sep 27, 2012 5:43 pm Post subject: |
|
|
Update...
I can run /etc/init.d/iptables save and the /var/lib/iptables/rules-save is there and correct.
iptables stop
iptables start
and rules are there.
iptables stop
rules still in /var/lib/iptables/rules-save
reboot
and the rules are back to default......but, /var/lib/iptables/rules-save is still correct _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting. |
|
Back to top |
|
|
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Thu Sep 27, 2012 5:53 pm Post subject: |
|
|
I echoed the IPTABLES_SAVE value in the init script and the path/filename is correct.
still puzzled why it is doing this. _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting. |
|
Back to top |
|
|
njcwotx Guru
Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Thu Sep 27, 2012 5:56 pm Post subject: |
|
|
SOLVED....
i forgot to add iptables to default run level
rc-update add iptables default
reboot
and iptables is correct _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting. |
|
Back to top |
|
|
|