SlackwareThis 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.
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.
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 :-).
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!
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.
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.
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).
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.