LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-01-2005, 08:18 AM   #1
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Rep: Reputation: 30
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?
 
Old 07-01-2005, 08:29 AM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
The default script name is rc.firewall. It's referenced in rc.inet2, so make sure that both are executable.
 
Old 07-01-2005, 08:47 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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
 
Old 07-01-2005, 11:23 AM   #4
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Original Poster
Rep: Reputation: 30
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!!!
 
Old 07-01-2005, 11:47 AM   #5
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Original Poster
Rep: Reputation: 30
Just restarted and new rules all seem to be in place when I list what are running
 
  


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
iptables startup script vishamr2000 Linux - Security 3 04-29-2005 08:21 AM
Iptables Startup Ionmag Linux - Security 5 04-11-2005 11:01 PM
iptables startup script mushmaster Linux - General 12 02-25-2005 12:32 PM
curious iptables error on startup brutal_brad Linux - Laptop and Netbook 2 09-20-2003 05:20 PM
Iptables at startup Johnnyboy Linux - Newbie 2 09-19-2003 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:54 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