LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-29-2004, 12:48 AM   #1
Wags
LQ Newbie
 
Registered: Aug 2003
Location: Australia mate
Distribution: Slackware 9.1
Posts: 23

Rep: Reputation: 15
Trouble running firewall script - pls help


Hey Guys,

I'm having trouble running my firewall script (using iptables) on my Gentoo box with 2.6.7 kernel. When ever I run it it gives:

Perhaps iptables or your kernel needs to be upgraded.
iptables v1.2.9: can't initialize iptables table `filter': iptables who? (do you need to insmod?)

for every line of the script

I also can not run the commands from the prompt. I have included netfilter in my kernel. Any help would be great!!

How do I make it so the script runs every time the system boots??

Thx

Wags.
 
Old 07-29-2004, 08:19 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
what about the last thing in the message you are seeing:

iptables v1.2.9: can't initialize iptables table `filter': iptables who? (do you need to insmod?)

-are these things compiled in or did you build them as modules? - thats how I did it
-are the modules actually loaded before you or your script wants to apply some firewall-rules? ("lsmod" - maybe with full path - should be in root's $PATH)

My script starts by loading the needed modules via insmod - then come the firewall-rules
I have two extra scripts - one to (manually) stop the firewall and one to print its status.

I dont know about how the init-scripts in slackware work - I have my script called in sysinit - before any runlevels are reached.
Just look how all the other init-scripts are organised and called.

On http://tldp.org/HOWTO/HOWTO-INDEX/howtos.html is among all the others -a firewall-howto which might help.

Jochen
 
  


Reply



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
Shorewall Firewall Help Pls kumarsundaram Linux - Security 1 07-16-2005 01:32 AM
Trouble with a shell script running with inetd scottd431 Linux - Networking 0 11-11-2004 09:57 AM
Trouble with a shell script running with inetd scottd431 Linux - General 0 11-11-2004 09:05 AM
Simple firewall script. pls help Wags Slackware 5 02-18-2004 04:13 PM
pls comment on my firewall mcalizo Linux - Security 5 09-05-2003 04:14 AM

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

All times are GMT -5. The time now is 08:16 PM.

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
Open Source Consulting | Domain Registration