LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   iptables-restore ubuntu server does not restore at boot (https://www.linuxquestions.org/questions/ubuntu-63/iptables-restore-ubuntu-server-does-not-restore-at-boot-785069/)

R03L 01-27-2010 08:42 AM

iptables-restore ubuntu server does not restore at boot
 
what could this be

i saved my correct iptables file @
Code:

/etc/iptables.up.rules
where webmin is looking for it.

webmin config is to automaticly boot this file and addes a line at.

Code:

/etc/network/interfaces
file

post-up iptables-restore < /etc/iptables.up.rules

but when i reboot i have to manualy
Code:

iptables-restore < /etc/iptables.up.rules
file

also i added the line
Code:

iptables-restore < /etc/iptables.up.rules
into
Code:

/etc/rc.local
also no restore iptables?

what could this be and why is this restore not working on ubuntu server edition

kernel 2.6.31-17-server

macemoneta 01-27-2010 10:33 AM

Path
 
Specify a fully qualified path. For example:

/sbin/iptables-restore < some.file

USER4543 01-28-2010 10:07 AM

I had a similar problem when using rc.local also I was only able to get it to work when I loaded iptables-restore < rules via a script instead.

R03L 01-28-2010 12:49 PM

[solved]

i did put this line

Code:

post-up iptables-restore < /etc/iptables.up.rules
at the bottom of
Code:

/etc/network/interfaces
not at the middle like webmin post it

rebooted the machine..

and i got it right ??

tostrander 02-09-2010 08:14 PM

I have the same issue on Desktop 9.1

tried it with "post-up iptables-restore < /etc/iptables.up.rules"
in the middle of /etc/interfaces where webmin put it and at the end like suggested here.

anyone else have any other ideas?

thanks


All times are GMT -5. The time now is 01:38 PM.