LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Trouble running firewall script - pls help (https://www.linuxquestions.org/questions/linux-security-4/trouble-running-firewall-script-pls-help-210908/)

Wags 07-29-2004 12:48 AM

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.

jomen 07-29-2004 08:19 AM

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


All times are GMT -5. The time now is 05:56 AM.