Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-15-2006, 05:10 AM
|
#1
|
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:
|
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,
|
|
|
02-15-2006, 05:25 AM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
|
|
|
02-16-2006, 05:42 AM
|
#3
|
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:
|
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
|
|
|
02-16-2006, 08:14 AM
|
#4
|
Member
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879
Rep:
|
|
|
|
02-16-2006, 11:35 AM
|
#5
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
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!
|
|
|
02-16-2006, 02:25 PM
|
#6
|
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:
|
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.
|
|
|
02-16-2006, 02:33 PM
|
#7
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
smoothwall.org. I've tried the 3.0 Beta; it seems stable and has nice improvements over 2.0.
|
|
|
02-16-2006, 03:28 PM
|
#8
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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.
|
|
|
02-16-2006, 04:12 PM
|
#9
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
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).
|
|
|
02-17-2006, 05:06 AM
|
#10
|
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:
|
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!
|
|
|
02-20-2006, 01:23 AM
|
#11
|
Member
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879
Rep:
|
Also, you may want to look at Firestarter.
|
|
|
All times are GMT -5. The time now is 10:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|