LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-15-2006, 05:10 AM   #1
Gaucho
LQ Newbie
 
Registered: Feb 2006
Location: Porto Alegre, Brasil
Distribution: Ubuntu 8 / Coyote (now Brazil FireWall 2.31.10) / Slackware 12 / Fedora 9
Posts: 22

Rep: Reputation: 15
Need help to install/configure iptables


Hello all,

I'm relative noob in the linux world, with my only experience as an end-user.

But now I need to configure a firewall for a small network...

Since I'd like to learn from it, I picked Slackware 10.1 :-)

After installing it, I typed modprobe iptables, returned iptables v1.2.4.

I'd like to:
1) Uninstall this version and install v1.3.5. How do I uninstall it?
2) I unpacked v1.3.5 on /usr/src/iptables-1.3.5. But it's all in .c format. Wich commands should I use to configure/install it?
3) I wrote a small script and saved it as firewall.sh. How do I start it with the system all together?

Thats it for now, when I finish configuring it, then I'll post further questions/doubts :-).

Txs,
 
Old 02-15-2006, 05:25 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
1. http://www.slackbook.org/html/packag...TIES-REMOVEPKG
2. Read the README and INSTALL files. Generally, './configure && make && make install'
3. http://www.slackbook.org/html/securi...-HOST-IPTABLES
 
Old 02-16-2006, 05:42 AM   #3
Gaucho
LQ Newbie
 
Registered: Feb 2006
Location: Porto Alegre, Brasil
Distribution: Ubuntu 8 / Coyote (now Brazil FireWall 2.31.10) / Slackware 12 / Fedora 9
Posts: 22

Original Poster
Rep: Reputation: 15
Hello bulliver,


thank you for your time in helping a newbie :-)

I'll take a look and if I have further questions, will post here.

Again thank you very much.


Gaucho
 
Old 02-16-2006, 08:14 AM   #4
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
The IPTables-HOWTO from LinuxGuruz is also very useful.
 
Old 02-16-2006, 11:35 AM   #5
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
I would highly recommend using something like Smoothwall instead of interacting with iptables is you're new to firewalling. It will save you many headaches!
 
Old 02-16-2006, 02:25 PM   #6
Gaucho
LQ Newbie
 
Registered: Feb 2006
Location: Porto Alegre, Brasil
Distribution: Ubuntu 8 / Coyote (now Brazil FireWall 2.31.10) / Slackware 12 / Fedora 9
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mdarby
I would highly recommend using something like Smoothwall instead of interacting with iptables is you're new to firewalling. It will save you many headaches!

and where can i find it? I'd like to give it a try.
 
Old 02-16-2006, 02:33 PM   #7
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
smoothwall.org. I've tried the 3.0 Beta; it seems stable and has nice improvements over 2.0.
 
Old 02-16-2006, 03:28 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
and where can i find it? I'd like to give it a try.
I'm not trying to discourage you here, but in your first post you stated you wanted to use this as a learning experience. Smoothwall will not teach you how to administer iptables firewalls. It uses a web-browser interface to hide the inner workings from you, so keep that in mind.
 
Old 02-16-2006, 04:12 PM   #9
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
As a professed newbie you might want to consider trying an online script generator such as at http://easyfwgen.morizot.net/gen/index.php.

Bear in mind that this tool is somewhat limited, but if the box you are configuring the script for is a gateway for the remainder of the LAN, then this online tool should work. You probably will have to experiment before you generate a script you like.

Do know that if you use this particular online generator, that you must edit the resulting script to point to the correct location for iptables. For Slackware that location is:

IPT="/usr/sbin/iptables"

Additionally, if this box is not going to provide DNS services, then be sure with the other boxes in the LAN that you manually configure where those boxes are to look on the web to resolve DNS lookups. For GNU/Linux boxes that location is /etc/resolv.conf.

Quote:
I wrote a small script and saved it as firewall.sh. How do I start it with the system all together?
The Slackware startup and shutdown scripts are all located in /etc/rc.d.

The default Slackware rc.inet2 script is already configured to look for a script named /etc/rc.firewall. Thus, all you need do is rename your firewall script from firewall.sh to rc.firewall. Store the script in /etc/rc.d.Then be sure to enable the executable bits on the script (chmod +x /etc/rc.d/rc.firewall).
 
Old 02-17-2006, 05:06 AM   #10
Gaucho
LQ Newbie
 
Registered: Feb 2006
Location: Porto Alegre, Brasil
Distribution: Ubuntu 8 / Coyote (now Brazil FireWall 2.31.10) / Slackware 12 / Fedora 9
Posts: 22

Original Poster
Rep: Reputation: 15
Well... looks like there are several ways to do I want :-)

I'll take a look @ everything you guys posted and will pick one way... of course, I want to learn from it (and considering that this should not be a hard task), it's a small LAN with simple needs such access www, some MSN and/or ICQ and that's it...

Thank you all very much!
 
Old 02-20-2006, 01:23 AM   #11
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
Also, you may want to look at Firestarter.
 
  


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
newbie trying to configure iptables with webmin bschiett Linux - Security 3 01-05-2006 04:58 PM
How to configure an iptables extdev and extip that uses dynamic ip? Niceman2005 Linux - Networking 1 10-11-2005 09:43 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
how to configure a firewall (iptables) to let me use a email server behind it? jorgelopez100 Linux - Networking 1 03-26-2004 09:49 AM
How to configure iptables for VMWare? Thoddy Linux - Networking 2 01-26-2004 04:24 PM

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

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