LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-14-2003, 07:43 AM   #1
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Rep: Reputation: 15
installing iptables to slack 9.0


Hello there!
I am a new user of Linux, I currently use Slack 9.0 and I wish to install iptables to my machine. I have some questions and would be thankful if i get answers:
1.How can I understand if my kernel (v.2.4.20) contains everyhting needed for iptables to work, before having to compile it from the scratch?
2.I saw that in the directory lib/modules/2.4.20/kernel/net/ipv6/netfilter there are some modules for iptables, does it mean that I can use them instead of compliling my kernel, and if so how is it possible?

Thank you in advance
 
Old 05-14-2003, 07:57 AM   #2
vexer
Member
 
Registered: Jan 2003
Location: Sudbury Ontario, Canada
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
You'll need to go to Network Options in your menuconfig/xconfig and add support for Netfilter, then scroll down to Netfilder options (or configuration) and enable everything (unless you know what you need and don't need)
 
Old 05-14-2003, 08:26 AM   #3
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
I am sorry but I cannot find the menuconfig/xconfig could you be more helpful?
 
Old 05-14-2003, 08:47 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
vexer is refering to recompiling your kernel. I would imagine you already have iptables support, although the path you supplied is the modules for IPv6 which unless you've got a LAN running IPv6 then you won't be using. 'Normal' IP (192.168.10.1 for example) is IPv4. The netfilter module for that would be in /lib/modules/2.4.20/kernel/net/ipv4/netfilter. You can always try running an iptables command and see what happens. The output from lsmod will tell you if the modules are already loaded.

cheers

Jamie...
 
Old 05-14-2003, 01:37 PM   #5
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
Thank you jharris for your help!
Well the lsmod gives me nothing concerning iptables. In the directory you indicated me there are a lot of modules which one should I modprobe?

BTW IMHO the biggest problem with Linux nowadays is documentation, I mean to say that there is a great number of available documents but someone must try hard to distinguish the garbage from the jewel. I have downloaded a number of HOW-TOs about installing and running iptables and nothing is mentioned about this option, i.e. module-installing iptables, I was about to recompile my kernel...

Anyway thank you very much for your help
 
Old 05-14-2003, 03:56 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Switch to su and try typing iptables -L in the console. If you get a list of the current rules, iptables is running. Since Slackware 9 has iptables, if you did a full install it is probably there.
 
Old 05-15-2003, 03:44 AM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by stelmed
the directory you indicated me there are a lot of modules which one should I modprobe?
I would expect the kernel to autoload the basic iptables module so you shouldn't need to worry about it really. If Hangdog42's suggestion doesn't throw an error then its there and working.
Quote:
Originally posted by stelmed
IMHO the biggest problem with Linux nowadays is documentation, I mean to say that there is a great number of available documents but someone must try hard to distinguish the garbage from the jewel.
You might find some of the longer documents on TLDP useful as they tend work at a higher level and cover the basics without getting too scary. http://www.tldp.org/guides.html

I find that most of the HOWTOs are pretty good so long as you think along the same lines as the author. Most of the time I think I do, however there have been a few where I've not been able to get anywhere with them (an early DNS howto was one) yet friends have given them a quick read an been up and running in 10 minutes.

cheers

Jamie...
 
Old 05-15-2003, 10:46 AM   #8
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
Ok guys thank you, it appeared that iptables is running in my system, now I am reading some doc and start to get used to it...
Thanx
 
Old 05-16-2003, 02:56 AM   #9
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
There should be lots of posts that will help you in the securiy forum.

cheers

Jamie...
 
  


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
upgrading iptables in Slack 10 linuxhippy Slackware 4 03-21-2005 04:52 PM
slack 10 iptables DENY erros tank728 Slackware 2 02-09-2005 12:45 PM
iptables start doesn't work in slack 9 phishintrip Linux - Newbie 4 06-25-2003 01:15 PM
does slack use ipchains or iptables cirkut5732 Linux - Newbie 1 04-15-2003 06:51 PM
Installing iptables 1.2.4 phil1076 Linux - General 0 10-25-2001 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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