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

Re: Setting up ipchains to work with ifup



		Hi Stephen,

> I have my firewall script done and works fine. Now I want to automatically
> start it when the modem restarts. How do I do that? (Using redhat 6.2).

 No need for that! 6.2 just starts ipchains at boot (if you enable it using 
setup). I am not exactly sure where it stores the rules (don't feel like 
firing up the other machine right now), but I think 
/etc/sysconfig/ipchains.conf. Well, at least something like that. Check the 
/etc/rc.d/init.d/ipchains script to be sure.
 There is one thing you should know, although when not using a permanent 
connection this is not that important. When running runlevel 5 (X) ipchains is 
run before the interfaces and routed are brought up, which is safe. But when 
you run runlevel 3 (multiuser console), ipchains is run after your interfaces 
are brought up. I do not understand this discrepancy, ask RedHat. You can 
adjust the order in which system services are started and stopped with tksysv 
under the X Window, or edit the symlinks in /etc/rc.d/rc3.d by hand. "S" 
stands for start, "K" for kill. "S00" comes before "S01" and "K98" before 
"K99" etc. Services are usually started/stopped FILO.

					CU,

					Leonard.



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