![]() |
Simple firewall for slackware
1 Attachment(s)
Based on robby workman firewall script and some google search I write a small script that provides a basic firewall system for slackware.
I attach my script to this post Attachment 11047. Just copy it to /etc/rc.d remove .txt from the script name and reboot. Hope it helps some of you. |
If you Google search AlienBOB's website he has an Easy Firewall Generator script builder most people use.
|
Don't forget about ip6tables too if you have IPv6 enabled in the kernel.
|
Quote:
The idea is to give a lot of choices for slackware users. They can decide what is more comfortable for them. |
I use firehol which is fairly straightforward (I just couldn't be bothered spending any more time on the ins and outs of iptables), though I don't think there's been any updates recently, and you need to make sure you provide it with a correct list of reserved IPs as the inbuilt one is quite out of date.
firehol.sourceforge.net |
Shorewall is a good one too. Not too difficult to install if you simply read the instructions (if I can do it, anyone can...literally!).
http://www.shorewall.net/ |
In the Op's script IPT=$(which iptables) ...or even the command at bash prompt doesn't work? ..I use ALienBoB's firewall generator, but was curious why it doesn't work?
Using whereis iptables does? Forget that...it does, don't know what I was doing wrong. I now know, I wasn't root. A question though, why does whereis work and not which work as user? |
Quote:
cheers, |
| All times are GMT -5. The time now is 09:43 PM. |