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

Re: IPtables...



The file name in init.d is irrelevant, the link name in rc2.d is not. It
must have the form "SXXwhateverelseherre", the SXX (where XX is the two
digit number representing the order in which the scripts are run) is the
important part. The number that you select is not trivial. For example,
if you start it two early, there might be certain services up in running
that are required. For example, before you can laod your firewall, the
networking support needs to be started. A common way of handling this is
to make a S99local link in rc2.d that points to a file (normally called)
local in init.d. In local you can run whatever extra things you want
started at boot, and pretty much be assured that everything else that is
important is started prior to its running. For example, in my local
script, I start my adsl-connect, load the firewall (I start my firewall
imeadiately after the connection is made, to minimize the time when
there is a connection with out a firewall...if I had a static IP, I
would start it prior to connecting), update my dns server, then run a
few other things, like loading kernel modules for sensors, so I can know
the temperature of my MB and CPU, as well as my fan speeds (they are
displayed in gkrellm).

Hope that gets you started

jason


On Sun, 06 Jan 2002, Alexander Wallace wrote:
> Hello there! Ok I got the libra gateway working! It was much easyer that
> I thought it would be...
> 
> I have a quick question... What shold I do to have the rules for
> iptables load automatically at startup? What file shoudl I use? Where?
> 
> I read something about placing a file in /etc/init.d and then link from
> /etc/rc2.d. I just what to make sure. I guess the file name is
> unimprtant right? and, does it matter if my connection is supposed to be
> dynamic? 
> 
> Also, me external adapter (eth1) is connected to a roadrunner modem,
> when I was doing the rules for ip tables, I gave the static IP for the
> external adapter... How do I tell IP tables that eth1 uses dhcp?
> 
> Thanks! 
> 
> -- 
> The archive is at https://www.libranetlinux.com/archive.html
> To unsubscribe, send email to [email protected]
> with a subject of UNSUBSCRIBE.

-- 
The archive is at https://www.libranetlinux.com/archive.html
To unsubscribe, send email to [email protected]
with a subject of UNSUBSCRIBE.