LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Does Slackware Come with Firewall on? (https://www.linuxquestions.org/questions/slackware-14/does-slackware-come-with-firewall-on-260052/)

UltimaGuy 11-28-2004 01:47 AM

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.

uselpa 11-28-2004 01:51 AM

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.

UltimaGuy 11-28-2004 03:50 AM

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?

guzzi 11-28-2004 04:20 AM

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.

uselpa 11-28-2004 05:48 AM

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).

UltimaGuy 11-28-2004 06:01 AM

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 ???

uselpa 11-28-2004 06:58 AM

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.

pnoguy 11-28-2004 07:44 AM

Quote:

Originally posted by UltimaGuy
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"

Hello,

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

magicm 11-28-2004 09:36 AM

Although Guarddog is popular - there are other (non-X) solutions.
http://projectfiles.com/firewall/ is very simple to install and use.

egag 11-28-2004 12:17 PM

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

ringwraith 11-28-2004 12:24 PM

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 :-)

UltimaGuy 11-28-2004 02:28 PM

Quote:

Originally posted by pnoguy
Hello,

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

This was my problem :) And such a simple one...right.

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 :)

uselpa 11-28-2004 03:23 PM

As I said above, don't copy rc.firewall, make a symlink.
It is automatically called from rc.inet2.

UltimaGuy 11-29-2004 04:52 AM

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.

hanzerik 11-29-2004 07:11 AM

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.