LinuxQuestions.org
Help answer threads with 0 replies.
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 12-17-2002, 02:29 PM   #1
Penguin Dropout
LQ Newbie
 
Registered: Dec 2002
Posts: 21

Rep: Reputation: 15
looking to set up a firewall


Hey I just installed my slackware distro and I have manage to get a few things working thus far, but I seem to be running into a few firewall problems. First off I went into google to see if slackware has a preconfigured firewall as part of the distro. I didn't seem to find a heck of alot. I tryed looking for a slackware webpage, but the only thing I found was www.slackware-linux.org and it's down. I read in another post that they are getting DOSed right now. So this just left me to assume that it has no preconfigured firewall (because what I have read about slackware is that is it not a bloted distro)


So I read the firewall how-to and based on my kernel (2.4) it told me I needed to use ipchains. So I do a locate ipchains and found it the command in my /sbin directory. So I do an ipchains -L to see if there is anything set up yet and I get the error :

ipchains: Incompatible with this kernel

I do a kernelversion and I get: 2.4

I'm not too sure where I am going wrong here. I am thinking I may not have ipchains comipled with the kernel, but if that was the case why would I have ipchains in my /sbin.

well any suggestions or even ideas at this point would be great. I am sort of a standstill right now and don't want to recompile my kernel unless I really have to. Mainly because of the fact I have never done it before and the idea sort of spooks me out.

Thanks

Last edited by Penguin Dropout; 12-17-2002 at 02:30 PM.
 
Old 12-17-2002, 02:43 PM   #2
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Well, 2.4 kernel have ipTables as far as i know...
You will most probably have to recompile the kernel, since you need all the nice IPtables and netfilter options, NAT, etc....
Don't worry, on Slack it's really easy!
http://p-two.net/modules.php?op=modl...catid=&topic=3
has some easy instructions on kernel compilation in slack.
Also you can download a firewall setup utility, firestarter. I have never used it, but you might want to give it a try.
HTH
-NSKL
 
Old 12-17-2002, 09:08 PM   #3
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
Penguin Dropout:

Just doa search for Netfilter, or iptables, or ipmasquerade, and or nat, here in LQ or in the google.com/linux.
Basically netfilter is the program that implements ip masquearding in linux or iptables. In the earlier versions of the kernel, it was ipchains the one used, but I believe that since the 2.4 kernel they are using iptables.
If you install Slackware 8.1, iptables is configured as modules out of the box. Basically look or do a search here in linuxquestions and youll find many scripts that you can use. I do suggest that before doing anything do what I did; read and read, specially look for the ipmasq how-tos in the netfilter webpage, here .
Anyways just keep trying and if any questions Im sure somebody will help you here.


Figa
 
Old 12-17-2002, 09:10 PM   #4
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
Anyways, this is a site that you might like, see if you find anything good here:
http://www.linuxguruz.org/iptables/
 
Old 12-17-2002, 10:52 PM   #5
Penguin Dropout
LQ Newbie
 
Registered: Dec 2002
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks alot for the links guys. This gave me a whole new avenue to look into. I'll work with it some tomorrow and see what I come up with.
 
Old 12-18-2002, 04:17 AM   #6
manwe
LQ Newbie
 
Registered: Dec 2002
Location: Rotterdam, in the Netherlands
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
I'll visit those sites as well, when I have the time. But _maybe_ someone has seen or found a script that would convert a ipchains firewall to iptables...

I have a firewall / gateway configuration based on ipchains, ipfwadm and such, I'd pretty much like it if I can keep that config and use a nice magic wand to convert the most of it. I know one usually has to look closely at what the wand has done, but it saves quite some typing
 
Old 12-18-2002, 09:24 AM   #7
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
In the masquerading how-to, there is a section that talks about ipchains and how they relate to iptable. Im not sure in which how-to though. There are basically two great documents on this masq stuff that are really ecellent, one is the masq-how-to from the linux documentation project and the other one is the tutorial or how to in the netfilter page. I don't know about any scripts that can do that, but againg Im not even a expert on this matter, just triying help.

Figa
 
Old 12-18-2002, 10:20 AM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
In slackware you just need a script called rc.firewall in /etc/rc.d which is called by rc.inet2.
You can download my rc.firewall script here if your interested, it's a statefull firewall written for a cable connection, feel free to modify and use it how you see fit.
 
Old 12-21-2002, 11:19 AM   #9
fskmh
Member
 
Registered: Jun 2002
Location: South Africa
Distribution: Custom slackware64-current
Posts: 308

Rep: Reputation: 92
firewall scripts

Hi there

I've often downloaded firewall scripts and tools and ended up ripping bits and pieces out, reinventing the wheel in making a customised script. I found a script called "Firewall By Jim" which removed the need for that. I've been using version 1.20 of this script for a while now, but I notice there's a 1.30 (http://www.jg555.com/projects/firewall/ftp.php). If ever there was a candidate for an official Slack firewall package, then I think it would be this one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
3 nics set up firewall box props666999 Slackware 2 09-11-2005 02:05 PM
Firewall set-up with vsftpd aquatux SUSE / openSUSE 2 07-29-2005 03:36 PM
How to set up the firewall properly with SuSE 9.1? jnassiri Linux - Security 2 08-03-2004 12:51 AM
Do I need an firewall if I set my tcpwrappers like this? rbrasil Linux - Security 7 12-18-2003 11:19 AM
please help a newb set up a router/firewall basatum Linux - Networking 1 09-20-2003 11:03 AM

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

All times are GMT -5. The time now is 03:53 AM.

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