LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08:42 AM   #1
R03L
Member
 
Registered: Feb 2008
Location: Emmer-compascuum
Distribution: redhat* debian* arch* slack*
Posts: 216

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, 10: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: 344Reputation: 344Reputation: 344Reputation: 344
Path

Specify a fully qualified path. For example:

/sbin/iptables-restore < some.file
 
Old 01-28-2010, 10: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, 12:49 PM   #4
R03L
Member
 
Registered: Feb 2008
Location: Emmer-compascuum
Distribution: redhat* debian* arch* slack*
Posts: 216

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, 08: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



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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration