Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


LinkBack Search this Thread
Old 01-27-2010, 08:42 AM   #1
Registered: Feb 2008
Distribution: mepis, ubuntu server ed. Debian. Redhat. Fedora, centos, LFS
Posts: 211

Rep: Reputation: 31
Question iptables-restore ubuntu server does not restore at boot

what could this be

i saved my correct iptables file @
where webmin is looking for it.

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


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

but when i reboot i have to manualy
iptables-restore < /etc/iptables.up.rules

also i added the line
 iptables-restore < /etc/iptables.up.rules
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
Old 01-27-2010, 10:33 AM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326

Specify a fully qualified path. For example:

/sbin/iptables-restore < some.file
Old 01-28-2010, 10:07 AM   #3
LQ Newbie
Registered: May 2009
Posts: 2

Rep: Reputation: 1
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.
1 members found this post helpful.
Old 01-28-2010, 12:49 PM   #4
Registered: Feb 2008
Distribution: mepis, ubuntu server ed. Debian. Redhat. Fedora, centos, LFS
Posts: 211

Original Poster
Rep: Reputation: 31

i did put this line

post-up iptables-restore < /etc/iptables.up.rules
at the bottom of
not at the middle like webmin post it

rebooted the machine..

and i got it right ??
Old 02-09-2010, 08:14 PM   #5
LQ Newbie
Registered: Feb 2010
Posts: 6

Rep: Reputation: 0
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?



edition, server, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore MySQL Dump File But I want it to restore with different names? helptonewbie Linux - Newbie 5 07-08-2009 05:09 AM
mksysb restore - Wrong OS level for restore pobman AIX 0 12-10-2008 09:32 PM
iptables-save, iptables-restore, how to set up them in some script sarajevo Linux - Networking 1 03-24-2008 11:39 PM
iptables-restore fails on boot with custom kernel burntfuse Fedora 2 06-22-2006 09:52 AM
IPTables will not restore rules dieduster Linux - Security 2 12-22-2005 07:17 AM

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration