Re: [newbie] what do I need to do to get rc.firewall loaded upon bootup?
On 18 Jan 2003 16:42:23 +1100 Stephen Kuhn [EMAIL PROTECTED] wrote: ...or you can link the script to the rc.local - so after the rc.local fires up, it'll fire up the rc.firewall as well (I tend to put everything I want started in my rc.local as it's all in one place, easily found, and easily troubleshooted...) I tired adding /etc/rc.d/rc.firewall into rc.local...the logs indicate it started to load rc.firewall, but it konked out part way thru and sharing the internet for the rest of the house quit working. Took that entry out of rc.local, rebooted (slap my hands) and then ran /etc/rc.d/rc.firewall from a terminal and all is good again. Stephen, are you refering to linking the two files by ls -s /etc/rc.d/rc.firewall /etc.rc.d/rc.local (may be way off here!) or something like this? Thanks Steve -- Linux user #280097 Machine #162480 http://counter.li.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] what do I need to do to get rc.firewall loaded upon bootup?
On Sun, 19 Jan 2003 19:03:04 +1300 Sharrea [EMAIL PROTECTED] wrote: # chkconfig --add /etc/rc.d/rc.firewall # chkconfig --level 345 /etc/rc.d/rc.firewall on the 2nd line starts your firewall in run levels 3, 4 and 5. HTH Sharrea Something isn't right here; [root@internet steve]# chkconfig --add /etc/rc.d/rc.firewall error reading information on service /etc/rc.d/rc.firewall: No such file or directory[root@internet steve]# ls /etc/rc.d init.d/ rc0.d/ rc2.d/ rc4.d/ rc6.d/rc.local*rc.sysinit* rc* rc1.d/ rc3.d/ rc5.d/ rc.firewall* rc.modules* Am showing a listing for that directory to show that rc.firewall is there. Maybe chkconfig has an option for stating/starting files rather than a service? Doesn't show anything in man chkconfig... Thought maybe the group (owner?) was hosed up on rc.firewall; [root@internet steve]# ls -g /etc/rc.d total 92 drwxr-x---2 adm 4096 Jan 18 02:04 init.d/ -rwxr-xr-x1 root 4321 Nov 18 21:46 rc* drwxr-xr-x2 root 4096 Jan 18 02:02 rc0.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc1.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc2.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc3.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc4.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc5.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc6.d/ -rwxr-xr-x1 root 9969 Jan 17 20:26 rc.firewall* -rwxr-xr-x1 root 1636 Jan 18 08:50 rc.local* -rwxr-xr-x1 root 483 Nov 18 21:46 rc.modules* -rwxr-xr-x1 root32676 Nov 18 21:46 rc.sysinit* Any comments anybody? Ugh, I know this is something that should be so simple. -- Help Microsoft stamp out piracy - give Linux to a friend today Here Here! I will gladly help M$ with this one! TIA Steve -- Linux user #280097 Machine #162480 http://counter.li.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] what do I need to do to get rc.firewall loaded upon bootup?
On Mon, 20 Jan 2003 04:58, Steve Jeppesen wrote: On Sun, 19 Jan 2003 19:03:04 +1300 Sharrea [EMAIL PROTECTED] wrote: # chkconfig --add /etc/rc.d/rc.firewall # chkconfig --level 345 /etc/rc.d/rc.firewall on the 2nd line starts your firewall in run levels 3, 4 and 5. HTH Sharrea Something isn't right here; [root@internet steve]# chkconfig --add /etc/rc.d/rc.firewall error reading information on service /etc/rc.d/rc.firewall: No such file or directory[root@internet steve]# ls /etc/rc.d init.d/ rc0.d/ rc2.d/ rc4.d/ rc6.d/rc.local*rc.sysinit* rc* rc1.d/ rc3.d/ rc5.d/ rc.firewall* rc.modules* Am showing a listing for that directory to show that rc.firewall is there. Maybe chkconfig has an option for stating/starting files rather than a service? Doesn't show anything in man chkconfig... Thought maybe the group (owner?) was hosed up on rc.firewall; [root@internet steve]# ls -g /etc/rc.d total 92 drwxr-x---2 adm 4096 Jan 18 02:04 init.d/ -rwxr-xr-x1 root 4321 Nov 18 21:46 rc* drwxr-xr-x2 root 4096 Jan 18 02:02 rc0.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc1.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc2.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc3.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc4.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc5.d/ drwxr-xr-x2 root 4096 Jan 18 02:02 rc6.d/ -rwxr-xr-x1 root 9969 Jan 17 20:26 rc.firewall* -rwxr-xr-x1 root 1636 Jan 18 08:50 rc.local* -rwxr-xr-x1 root 483 Nov 18 21:46 rc.modules* -rwxr-xr-x1 root32676 Nov 18 21:46 rc.sysinit* Any comments anybody? Ugh, I know this is something that should be so simple. -- Help Microsoft stamp out piracy - give Linux to a friend today Here Here! I will gladly help M$ with this one! TIA Steve Hi Steve The file permissions look fine and I see that you're running the chkconfig command as root - I can't see why its not working! You can add the script using ksysvinit. If you haven't used ksysvinit before, after starting the program click the Help menu and read the basics there - its not as hard as it looks but be careful not to change anything else. To add the script you will need to place it in /etc/rc.d/init.d/ Perhaps thats why chkconfig isn't working? I guess you could place the script in /etc/rc.d/init.d/ and then try chkconfig --add ... again. Cheers Sharrea -- Help Microsoft stamp out piracy - give Linux to a friend today Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] what do I need to do to get rc.firewall loaded upon bootup?
On Sat, 18 Jan 2003 18:13, Steve Jeppesen wrote: On 18 Jan 2003 15:59:27 +1100 Stephen Kuhn [EMAIL PROTECTED] wrote: Did you make the executable? (chmod +x rc.firewall) the way I ran it manually was by typing /etc/rc.d/rc.firewall in a terminal, and it ran...so I assumed it was already executable by that. I also have iptables listed in MCC under services, checked to start on boot, but it was not running (going by what MCC showed for status) Could it be I still have to do a chkconfig --add iptables ? Steve # chkconfig --add /etc/rc.d/rc.firewall # chkconfig --level 345 /etc/rc.d/rc.firewall on the 2nd line starts your firewall in run levels 3, 4 and 5. HTH Sharrea -- Help Microsoft stamp out piracy - give Linux to a friend today Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com