LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-28-2004, 01:47 AM   #1
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
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.
 
Old 11-28-2004, 01:51 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
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.
 
Old 11-28-2004, 03:50 AM   #3
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Original Poster
Rep: Reputation: 32
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?
 
Old 11-28-2004, 04:20 AM   #4
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 313

Rep: Reputation: 40
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.
 
Old 11-28-2004, 05:48 AM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
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).
 
Old 11-28-2004, 06:01 AM   #6
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Original Poster
Rep: Reputation: 32
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 ???
 
Old 11-28-2004, 06:58 AM   #7
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
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.
 
Old 11-28-2004, 07:44 AM   #8
pnoguy
LQ Newbie
 
Registered: Feb 2004
Location: Orlando, FL
Distribution: Slack 10.0;
Posts: 15

Rep: Reputation: 0
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
 
Old 11-28-2004, 09:36 AM   #9
magicm
Member
 
Registered: May 2003
Distribution: Slackware
Posts: 236

Rep: Reputation: 152Reputation: 152
Although Guarddog is popular - there are other (non-X) solutions.
http://projectfiles.com/firewall/ is very simple to install and use.
 
Old 11-28-2004, 12:17 PM   #10
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 11-28-2004, 12:24 PM   #11
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
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 :-)
 
Old 11-28-2004, 02:28 PM   #12
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Original Poster
Rep: Reputation: 32
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
 
Old 11-28-2004, 03:23 PM   #13
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
As I said above, don't copy rc.firewall, make a symlink.
It is automatically called from rc.inet2.
 
Old 11-29-2004, 04:52 AM   #14
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Original Poster
Rep: Reputation: 32
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.
 
Old 11-29-2004, 07:11 AM   #15
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
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
 
  


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
does slackware need a firewall lellyville Linux - Networking 9 03-17-2005 08:46 PM
Slackware Firewall?? onelung02 Slackware 9 01-22-2005 10:58 AM
Firewall in Slackware 10.0 nickbird Linux - Newbie 2 07-29-2004 04:52 PM
Firewall in Slackware 10.0 nickbird Linux - Newbie 3 07-29-2004 04:51 PM
Best Firewall for Slackware? Vindane Slackware 16 07-18-2004 08:38 AM

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

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