LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 01-27-2010, 09:42 AM   #1
R03L
Member
 
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 @
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
 
Old 01-27-2010, 11:33 AM   #2
macemoneta
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: 327Reputation: 327Reputation: 327Reputation: 327
Path

Specify a fully qualified path. For example:

/sbin/iptables-restore < some.file
 
Old 01-28-2010, 11:07 AM   #3
USER4543
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, 01:49 PM   #4
R03L
Member
 
Registered: Feb 2008
Distribution: mepis, ubuntu server ed. Debian. Redhat. Fedora, centos, LFS
Posts: 211

Original Poster
Rep: Reputation: 31
[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 ??
 
Old 02-09-2010, 09:14 PM   #5
tostrander
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?

thanks
 
  


Reply

Tags
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


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 06:09 AM
mksysb restore - Wrong OS level for restore pobman AIX 0 12-10-2008 10:32 PM
iptables-save, iptables-restore, how to set up them in some script sarajevo Linux - Networking 1 03-25-2008 12:39 AM
iptables-restore fails on boot with custom kernel burntfuse Fedora 2 06-22-2006 10:52 AM
IPTables will not restore rules dieduster Linux - Security 2 12-22-2005 08:17 AM


All times are GMT -5. The time now is 06:41 AM.

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