Does Slackware Come with Firewall on?
Hello guys,
Does firewall come with a default firewall ? If so how to configure it? If it doesn't come with a firewall, where to get a good one and how to configure it? Thanks. |
The Linux kernel has a built-in firewall, so it comes with every distribution. For Slackware, it is not turned on by default.
The easiest way to do it is via Guarddog, available on linuxpackages.net. Otherwise, make /etc/rc.d/rc.firewall executable and put your iptables commands in there. |
Well.. I have encountered two problems..
First, i tried to turn on the firewall manually by going to [b]/etc/rc.d[b] but there was no rc.firewall script there. So I searched for it and saw that it was not even present in my hdd. So I tried the second option.. downloaded guarddog, installed it and tried to run it. But it says "Failed to connect to X server" and refuses to start. Any suggestions? |
firewall
like uselpa said, iptables is what yo may be looking for.
many people running Slackware do as usepl mentioned, create a iptables script named rc.firewall and place it in /etc/rc.d/ and make it executable. a search on iptables in this web site will give you lots of information. That is exactly what I did, and now a linux box protects all the boxes in my network. |
The "failed to connect to X server" may be due to the fact that you started no X server before. Easiest thing is to run it from KDE, GNOME or whatever you are using. You will also have to create a symlink (ln -s) from source "/etc/rc.firewall" (created by guarddog) to "/etc/rc.d/rc.firewall" (where slack expects it).
|
Hello again...
First of all the error message I get is "guarddog : cannot connect to X server". I get this same message in GNOME, KDE and XFCE. I have also tried downloading and installing another firewall called kmyfirewall. It also gives the same error message "kmyfirewall: cannot connect to X server" I think this is some wierd library initialization error or something... I read somewhere that u need some library installed...but could not get that page now... may be this has something to do with that problem. I tried going thru the manuals of Iptables but ended up totally confused...what to do in Slack? Any help ??? |
Iptables is complex; I think you should concentrate on getting guarddog operational, otherwise you'll end up with no firewall at all. For me, it works OK with Slack10, no X tweaking whatsoever.
|
Quote:
If you are logged into X (KDE, Gnome, etc.) as a regular user, and you try to run an X app as root from a terminal, the root app will not be able to connect to the X server. (Although I seem to remember a command to launch an app using the current X session. Hmm?) Jim |
Although Guarddog is popular - there are other (non-X) solutions.
http://projectfiles.com/firewall/ is very simple to install and use. |
If you installed Guarddog, there will be a menu-entry in kde under " system ".
click that as a user, and you'll be prompted for a root-password. it will create a file "/etc/rc.firewall. i call thatone from /etc/rc.d/rc.local egag |
If you google just a bit, there are tons of rc.firewall examples on the web you can use or modify. So vim is the only firewall tool you need :-)
|
Quote:
I also have used a command to share the X session but I forgot. Okay...after installing using guarddog and copying that file to /etc/rc.d/ , what else to do ? how to make that script execute at startup??? Also...if I just execute the script, will the firewall start, or should I do something else... Thanks everyone who have helped so far :) |
As I said above, don't copy rc.firewall, make a symlink.
It is automatically called from rc.inet2. |
Okay guys...done it. I think it is working well now...though I don't know how to test it :-/
Thanks for every one...particularly uselpa, pnoguy & others... Now I have to setup my NVidia GeForce card...but for that I'll open a new post. Thank you guys. |
You can go to a site like http://www.grc.com/ and run a scan on yourself
And here is nice FW generator I found on these forums a while back. http://www.citadec.com/FirewallGenerator.html |
All times are GMT -5. The time now is 09:30 AM. |