[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: How to save the iptables rules for booting?



But that would be just like running /etc/init.d/iptables. But what we
need is running the command '/etc/init.d/iptables start'. 

I tried to make a link with the start parameter like 

>ln -s /etc/init.d/iptables '/etc/rcS.d/S38iptables start'

But the above also doesn't run it the way we want it to run. The only
inefficient method I came up with is making a shell script called
iptables-boot that runs the command '/etc/init.d/iptables start' inside
it, and making a symbolic link to this file in the rcS.d. This does work
fine, but I feel it's very unprofessional and must be better ways to do
this. Is it? Please advice.

Regards,

-Nabil

-----Original Message-----
From: Jon [mailto:lorddissy@gmail.com] 
Sent: Sunday, August 01, 2004 5:00 PM
To: Nabil MALIK / KTEFH - OTAS
Cc: debian-firewall@lists.debian.org; debian-user@lists.debian.org
Subject: Re: How to save the iptables rules for booting?

Actually, calling  '/etc/init.d/iptables start'  will be the same as
'load active'.
So you just need a standard symlink in /etc/rc?.d/S05iptables ->
/etc/init.d/iptables

Then to save your rules (as im guessing you already did) just manually
issue
/etc/init.d/iptables save



----- Original Message -----
From: nabilm@kuveytturk.com.tr <nabilm@kuveytturk.com.tr>
Date: Sun, 1 Aug 2004 16:17:07 +0300
Subject: How to save the iptables rules for booting?
To: debian-firewall@lists.debian.org
Cc: debian-user@lists.debian.org

 
 

Fellows, 

  

I know the script /etc/init.d/iptables can be used to save the rules.
I made it save in the 'active' rule set. But what is the standard way
to run '/etc/init.d/iptables load active' at boot time. I manually
added a symbolic link to the /etc/rcS.d folder for
'/etc/init.d/iptables load active', and it works, but still is there a
more user friendly way for that in Debian? If not, please also let me
know if the manual way I used is reasonable, since I am new to Linux?

  

Regards, 

  

Nabil. 


DISCLAIMER:
Bu elektronik posta ve ekleri, sadece yukarida ismi yazili alicinin dikkatine gonderilmistir. Mesajin muhatabi degilseniz, icerigini ve varsa ekindeki dosyalari kimseye aktarmayiniz ya da kopyalamayiniz. Boyle bir durumda gondereni uyarip, mesaji imha ediniz. KUVEYT TURK E.F.K. A.S bu e-postanin ve eklerinin icerdigi bilgilerin size degisiklige ugrayarak ulasmasindan veya gec ulasmasindan, butunlugunun ve gizliliginin korunamamasindan veya icerigine guvenilerek yapilacak islemlerden dolayi sorumlu tutulamaz.
This e-mail & its content have been sent to the attention of the receiver named above. If you are not the intended recipient (or have received this e-mail in error), Please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Kuwait Turkish Evkaf Finance House shall not be held liable for the arrival of this e-mail & its content as modified or late, the protection of integrity and secrecy and shall not be liable to any person who acts or omits to do anything in reliance upon it.



Reply to: