LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware iptables startup (https://www.linuxquestions.org/questions/slackware-14/slackware-iptables-startup-339040/)

Atrocity 07-01-2005 08:18 AM

slackware iptables startup
 
had a quick iptables question! I dont use slackware that often but I just installed the newest iptables package for use with guardian and I was wondering if iptables autostarts at boot or if I need to put something somewhere in slackware to make it do that. I am not familiar enough with slackware to know the ins and outs of how it does its processes, i usually use BSD but i need to use it for work....
Also I used an online program to make a iptables rules script so my 2nd question is if iptables is being loaded at startup from some default script how do I make it see my script instead, and where is the default one so i can check it out and see what the parameters are set by default?

killerbob 07-01-2005 08:29 AM

The default script name is rc.firewall. It's referenced in rc.inet2, so make sure that both are executable.

Bruce Hill 07-01-2005 08:47 AM

In Slackware you can issue
Code:

mingdao@james:~/build/linux-2.6.12.2$ whereis iptables
iptables: /usr/sbin/iptables /usr/lib/iptables /usr/man/man8/iptables.8.gz /usr/share/man/man8/iptables.8.gz

and find out where the app is located.

If you used that Easy Firewall Generator for IPTables, then you should
change this portion:
Code:

# IPTables Location - adjust if needed

IPT="/sbin/iptables"
IPTS="/sbin/iptables-save"
IPTR="/sbin/iptables-restore"

It says _adjust if needed_ because it was written for RedHat, not
Slackware. You'll need to change it to look like this:
Code:

# IPTables Location - adjust if needed

IPT="/usr/sbin/iptables"
IPTS="/usr/sbin/iptables-save"
IPTR="/usr/sbin/iptables-restore"

If you're using a script like that, you put it in /etc/rc.d/ and you make
it executable by issuing as root "chmod +x rc.firewall" and it will start
at boot.

There is much more than just that little script for a good firewall using
iptables and netfilter. I'd say start by reading Iptables Tutorial 1.1.19

Atrocity 07-01-2005 11:23 AM

Thanks for all the info, the script seemed to have the correct values for slackware so thats good
Modified permissions and it should be good to go, just need to reboot

Yea I know, I have a whole book on iptables called linux firewalls, well i think its for iptables, I just have way to much other stuff to read at the moment..


Thanks for your help!!!

Atrocity 07-01-2005 11:47 AM

Just restarted and new rules all seem to be in place when I list what are running


All times are GMT -5. The time now is 10:23 AM.