Firewall

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Brown
Date:  
Subject: Firewall
For ipchains (2.2.x kernels) I created a script in the /etc/rc.d/ directory and
chmod'd it so that it was executable. Inside the script I used the commands
exactly like I would've typed them on the command line. Then at the bottom of
the /etc/rc.d/rc.local I added a line that pointed to that script with the full
path to it, e.g. /etc/rc.d/rc.ipchains.

> cj wrote:
>
> I hope this question isn't beneath PLUG's members, but I'm still pretty
> newbie. I'm running the 2.4.0 kernel on Slackware 7.1. I'm trying to set up
> iptables as a firewall and have compiled all the modules into the kernel. I
> have a pretty good script (got it off the Web), but I can't figure out how to
> get it to run. If I type all the commands in the shell, they work fine, but
> when I reboot for any reason, they're gone; obviously, iptables works just
> fine. Slackware uses /etc/rc.d/rc.local to run scripts just before or after
> going multiuser so I'd only be exposed fo a few seconds and have no other
> services (that I'm aware of) running; I've already shut down everything in
> inetd.conf. That being said, I don't know how to shell script in rc.local so I
> can call up my firewall script. Any help would be greatly appreciated. Thanks.
>
> CJ