LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-30-2002, 07:54 AM   #1
Brian Workman
LQ Newbie
 
Registered: Apr 2002
Location: New Zealand
Posts: 2

Rep: Reputation: 0
Question prob setting up ipchains for network(Urgent plse)


[B]trying to use a script from red hat on slakware but need chkconfig to set it up correctly-not there.any ideas Help please.urgent can't use network yet
 
Old 04-30-2002, 09:03 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,370
Blog Entries: 55

Rep: Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555
The line chkconfig shows should look smptin like this: "chkconfig: 2345 20 08" where the first set of numbers are the runlevels it's run in, the second the start priority and third the kill priority.
So in this stupid example in runlevels 2,3,4 and 5 it will be started linking the script with a prefix of "S20" and in the other runlevels it'll be killed linking the script with a prefix of "K08".

So

for l in 2 3 4 5; do ln -s /etc/path/to/main/ipchains.script /etc/path/to/runlevel/S20ipchains.script; done

and

for l in 0 1 6; do ln -s /etc/path/to/main/ipchains.script /etc/path/to/runlevel/K08ipchains.script; done

Btw, IMO this wasn't a security question but more like generic setup, install or basic networking.
 
Old 05-01-2002, 02:09 AM   #3
Brian Workman
LQ Newbie
 
Registered: Apr 2002
Location: New Zealand
Posts: 2

Original Poster
Rep: Reputation: 0
many Thank yu'sThanks

thx so much will try to do and repost in other field if i have insurmountable prb
cher
Brian
 
Old 05-01-2002, 03:12 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,370
Blog Entries: 55

Rep: Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555Reputation: 3555
soz...

Uhm, well, looking back I see these scripts won't work, here's what it shouldve said:

for l in 2 3 4 5; do ln -s /etc/path/to/main/ipchains.script /etc/path/to/rc$l.d/S20ipchains.script; done

and

for l in 0 1 6; do ln -s /etc/path/to/main/ipchains.script /etc/path/to/rc$l.d/K08ipchains.script; done

:-]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange IPchains / Network Issue rags Linux - Networking 11 08-06-2004 09:23 AM
Problems installing a Modem Plse Heeeelp sicasal Linux - Hardware 3 07-28-2003 03:44 PM
Setting up kernel for ipchains Ironica Linux - Networking 2 01-26-2003 05:11 AM
How to setting ipchains to let inside can using the SSH only, outside can't? explorer1979 Linux - Security 5 12-21-2002 04:41 AM
Network Packet Filter vs ipchains Nephlite Linux - Networking 1 02-04-2002 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration