LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-18-2006, 05:46 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Rep: Reputation: 30
iptables-save, but rules don't load on boot-up


I enter my ip-tables and everything works fine. I then do iptables-save and reboot. Afterwards (after the boot-up) , "iptables --list" doesn't give me the rules.
What's wrong?

Thnx
 
Old 11-18-2006, 08:21 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
iptables-save is a utility which sends an ASCII representation of the rules to stdout, which you need to then redirect to a file. iptables-restore is then used to restore these rules at boot time.

But apparently Debian has set up its own system (possibly using the mentioned utitilies) which is described here. (Please note I am not a Debian user; I am just reporting what a Google search turned up.)
 
Old 11-18-2006, 10:36 PM   #3
cct3000
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by nocturna_gr
I enter my ip-tables and everything works fine. I then do iptables-save and reboot. Afterwards (after the boot-up) , "iptables --list" doesn't give me the rules.
What's wrong?

Thnx
iptable-save > ipt.txt can only save the iptables' rules into a text file in current directory.
It can not make your setting autorun at boot up time

Debian is using a systematical method to invoke the boot up program launching.

you can try install arno-iptables-firewall by

apt-get install arno-iptables-firewall
after that you have to configure the rules by interacting with the programs.
after you have install properly ,

cd /etc/init.d

ls arno*

you can see arno-iptables-firewall have already in this folder.

cd /etc/rcS.d

arno-iptables-firewall also in the folder.

that's mean while you boot the debian, the startup script will check /etc/rcS.d to boot all script files in have, (also look for /etc/rc5.d if you are running xwindows mode.

you can not make the script file in /etc/init.d and /etc/rcS.d manually. you must trigger Debian system program to make it.


try it. very strong program to write iptables, no need to make a firewall yourself, you can also refer to the iptables generated by this program to see how is the right iptables.
 
  


Reply


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
how can i load iptables rules at startup synaptical Debian 6 07-15-2005 11:28 AM
iptables save rules Osten Debian 1 02-10-2004 04:53 PM
RH8 - how to automatically run iptables rules shell script at boot time nu-B Linux - General 1 10-29-2003 08:38 PM
how to get iptables to load rules on startup ? qwijibow Linux - Security 5 09-02-2003 09:48 AM
I can't load iptables rules Kinstonian Linux - General 15 04-13-2003 07:55 PM


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

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