All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables does not support chkconfig!
@ 2002-12-23  4:39 Silkk
  2002-12-23  7:46 ` Rob Sterenborg
  0 siblings, 1 reply; 8+ messages in thread
From: Silkk @ 2002-12-23  4:39 UTC (permalink / raw)
  To: netfilter

Hello,

I installed iptables 1.2.7a with kernel 2.4.20. I tryed to get them to start when i boot
my pc but they are not starting. I created a firewall script named "firewall" in:
"/etc/init.d" 
---I ran:
chown root.root /etc/init.d/firewall
chmod u=rwx /etc/init.d/firewall
chmod 775 /etc/init.d/firewall
---And added this line to my "/etc/rc.d/rc.local" file
sh /etc/init.d/firewall

But that still dont get them started up. If i run 
sh /etc/init.d/firewall manually then my rules properly.

I tryed using 
"chkconfig levels 23456 iptables on" but get this 
service iptables does not support chkconfig

And i get an error when i re-boot my computer on start up after redhat network dameon
starts something about iptables i check my logs but cant see it in there! 
Any help how i can get my rules to start when my PC starts up???

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: iptables does not support chkconfig!
       [not found] <20021223043901.12123.94060.Mailman@kashyyyk>
@ 2002-12-23  6:26 ` Silkk
  2002-12-23  6:53   ` Joel Newkirk
  0 siblings, 1 reply; 8+ messages in thread
From: Silkk @ 2002-12-23  6:26 UTC (permalink / raw)
  To: netfilter

Here is the error message im getting i found it in /var/log/boot.log
firewall: /etc/rc3.d/s80 firewall: iptables: command not found
last message repeated 71 times


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: iptables does not support chkconfig!
  2002-12-23  6:26 ` iptables does not support chkconfig! Silkk
@ 2002-12-23  6:53   ` Joel Newkirk
  2002-12-23  7:01     ` Silkk
                       ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Joel Newkirk @ 2002-12-23  6:53 UTC (permalink / raw)
  To: Silkk, netfilter

On Monday 23 December 2002 01:26 am, Silkk wrote:
> Here is the error message im getting i found it in /var/log/boot.log
> firewall: /etc/rc3.d/s80 firewall: iptables: command not found
> last message repeated 71 times

Try changing "iptables" to "/sbin/iptables" or whatever path it actually 
lives on.  (that's the one for an RPM install under RedHat, I believe)  
You can't count on a script having valid paths set up during the system 
startup, play it safe and be explicit.

j

> __________________________________________________
> Do you Yahoo!?

No, I don't... :^)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: iptables does not support chkconfig!
  2002-12-23  6:53   ` Joel Newkirk
@ 2002-12-23  7:01     ` Silkk
  2002-12-23 17:26       ` Joel Newkirk
  2002-12-23  7:04     ` Silkk
  2002-12-23 10:00     ` Silkk
  2 siblings, 1 reply; 8+ messages in thread
From: Silkk @ 2002-12-23  7:01 UTC (permalink / raw)
  To: netfilter

I looked in 
/sbin/   for iptables and nothing soo i did whereis iptables
/usr/local/sbin/iptables  /usr/local/lib/iptables

Im not sure where the iptables executable file went?
casue in  
/usr/local/sbin/iptables i tryed to veiw that file using vi 
and it is a special chractors like
&8$#  
soo is that the file i need? 




--- Joel Newkirk <netfilter@newkirk.us> wrote:
> On Monday 23 December 2002 01:26 am, Silkk wrote:
> > Here is the error message im getting i found it in /var/log/boot.log
> > firewall: /etc/rc3.d/s80 firewall: iptables: command not found
> > last message repeated 71 times
> 
> Try changing "iptables" to "/sbin/iptables" or whatever path it actually 
> lives on.  (that's the one for an RPM install under RedHat, I believe)  
> You can't count on a script having valid paths set up during the system 
> startup, play it safe and be explicit.
> 
> j
> 
> > __________________________________________________
> > Do you Yahoo!?
> 
> No, I don't... :^)


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: iptables does not support chkconfig!
  2002-12-23  6:53   ` Joel Newkirk
  2002-12-23  7:01     ` Silkk
@ 2002-12-23  7:04     ` Silkk
  2002-12-23 10:00     ` Silkk
  2 siblings, 0 replies; 8+ messages in thread
From: Silkk @ 2002-12-23  7:04 UTC (permalink / raw)
  To: netfilter

Just soo you know i compiled the iptables i didnt use the RPM
I cant find iptables listing when i run
chkconfig --list 
either isnt it suppose to be there after i compiled them?





--- Joel Newkirk <netfilter@newkirk.us> wrote:
> On Monday 23 December 2002 01:26 am, Silkk wrote:
> > Here is the error message im getting i found it in /var/log/boot.log
> > firewall: /etc/rc3.d/s80 firewall: iptables: command not found
> > last message repeated 71 times
> 
> Try changing "iptables" to "/sbin/iptables" or whatever path it actually 
> lives on.  (that's the one for an RPM install under RedHat, I believe)  
> You can't count on a script having valid paths set up during the system 
> startup, play it safe and be explicit.
> 
> j
> 
> > __________________________________________________
> > Do you Yahoo!?
> 
> No, I don't... :^)


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: iptables does not support chkconfig!
  2002-12-23  4:39 Silkk
@ 2002-12-23  7:46 ` Rob Sterenborg
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Sterenborg @ 2002-12-23  7:46 UTC (permalink / raw)
  To: netfilter

> I tryed using 
> "chkconfig levels 23456 iptables on" but get this 
> service iptables does not support chkconfig
> 

Put this in the top of your script (including the #):
#chkconfig: 2345 <start-prio> <stop-prio>

Then use this :
chkconfig --level 2345 iptables on


Rob



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: iptables does not support chkconfig!
  2002-12-23  6:53   ` Joel Newkirk
  2002-12-23  7:01     ` Silkk
  2002-12-23  7:04     ` Silkk
@ 2002-12-23 10:00     ` Silkk
  2 siblings, 0 replies; 8+ messages in thread
From: Silkk @ 2002-12-23 10:00 UTC (permalink / raw)
  To: netfilter

I tryed that and re-started 
#chkconfig 2345 80 30
And firewall script starts but the rules didnt run ...Sooo this is what i did im not sure
if it is the proper method but everything seems to be working:
i installed the latest iptables rpm package 
iptables-1.2.5.rpm and then rebooted and it worked? Could something go worng by doing
this if soo what could have been another method to fix it.




--- Joel Newkirk <netfilter@newkirk.us> wrote:
> On Monday 23 December 2002 01:26 am, Silkk wrote:
> > Here is the error message im getting i found it in /var/log/boot.log
> > firewall: /etc/rc3.d/s80 firewall: iptables: command not found
> > last message repeated 71 times
> 
> Try changing "iptables" to "/sbin/iptables" or whatever path it actually 
> lives on.  (that's the one for an RPM install under RedHat, I believe)  
> You can't count on a script having valid paths set up during the system 
> startup, play it safe and be explicit.
> 
> j
> 
> > __________________________________________________
> > Do you Yahoo!?
> 
> No, I don't... :^)


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: iptables does not support chkconfig!
  2002-12-23  7:01     ` Silkk
@ 2002-12-23 17:26       ` Joel Newkirk
  0 siblings, 0 replies; 8+ messages in thread
From: Joel Newkirk @ 2002-12-23 17:26 UTC (permalink / raw)
  To: Silkk, netfilter

On Monday 23 December 2002 02:01 am, Silkk wrote:
> I looked in
> /sbin/   for iptables and nothing soo i did whereis iptables
> /usr/local/sbin/iptables  /usr/local/lib/iptables
>
> Im not sure where the iptables executable file went?
> casue in
> /usr/local/sbin/iptables i tryed to veiw that file using vi
> and it is a special chractors like
> &8$#
> soo is that the file i need?

/usr/local/sbin/iptables sounds reasonable.  Try invoking it as 
"/usr/local/sbin/iptables -V" to check version and make sure everything 
makes sense.

j

> --- Joel Newkirk <netfilter@newkirk.us> wrote:
> > On Monday 23 December 2002 01:26 am, Silkk wrote:
> > > Here is the error message im getting i found it in
> > > /var/log/boot.log firewall: /etc/rc3.d/s80 firewall: iptables:
> > > command not found last message repeated 71 times
> >
> > Try changing "iptables" to "/sbin/iptables" or whatever path it
> > actually lives on.  (that's the one for an RPM install under RedHat,
> > I believe) You can't count on a script having valid paths set up
> > during the system startup, play it safe and be explicit.
> >
> > j
> >
> > > __________________________________________________
> > > Do you Yahoo!?
> >
> > No, I don't... :^)
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-12-23 17:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20021223043901.12123.94060.Mailman@kashyyyk>
2002-12-23  6:26 ` iptables does not support chkconfig! Silkk
2002-12-23  6:53   ` Joel Newkirk
2002-12-23  7:01     ` Silkk
2002-12-23 17:26       ` Joel Newkirk
2002-12-23  7:04     ` Silkk
2002-12-23 10:00     ` Silkk
2002-12-23  4:39 Silkk
2002-12-23  7:46 ` Rob Sterenborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.