LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-30-2004, 05:30 PM   #1
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
Guarddog : opening port for incomming connection


How can I open a port (ssh, http) for incomming connections using guarddog?

Answer:
Got this reply from a good soul on guarddog mailing list:
Click the Protocol tab then select the "local" zone.
On the right, expand "Interactive sessions". Find SSH and check (not X) the boxes to allow the local zone to provide SSH services to whatever other zones you choose.


Last edited by omry_y; 10-02-2004 at 06:52 PM.
 
Old 09-30-2004, 06:32 PM   #2
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Read the sticky 'Debian Configuration Post-Install' at the top.

Do yourself a favor, read the WHOLE thing, including the other posts within the thread, it will save you some posting.

Last edited by macondo; 09-30-2004 at 06:41 PM.
 
Old 09-30-2004, 06:49 PM   #3
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by macondo
Read the sticky 'Debian Configuration Post-Install' at the top.

Do yourself a favor, read the WHOLE thing, including the other posts within the thread, it will save you some posting.

I did read it through.
your tutorial shows how to allow outbound connections from local applications, what I need is to allow incomming connections from the internet.

Last edited by omry_y; 09-30-2004 at 06:50 PM.
 
Old 09-30-2004, 07:20 PM   #4
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
so ftp, http, mail, are not inbound connections from the internet? I must confess, i haven't used SSH yet.
 
Old 10-01-2004, 02:13 AM   #5
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
everything you select (afaik) in the protocls section is opening outbound only.
when I use shields-up to check it (you see I read it? ) , all of the ports are blocked - and still I have no problems to access the web or do anything.
I suspect its just not possible with guarddog - and if thats the case, I`ll use the less convinient (to my taste) firestarter.
 
Old 10-01-2004, 07:55 AM   #6
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
"everything you select (afaik) in the protocls section is opening outbound only."


Maybe somebody who uses SSH, can explain this, i sure am ignorant about this subject."


"when I use shields-up to check it (you see I read it? "

attaboy!


"all of the ports are blocked - and still I have no problems to access the web or do anything.
I suspect its just not possible with guarddog - and if thats the case, I`ll use the less convinient (to my taste) firestarter."

No, i don't think so, if it is as you say, Firestarter configuration is the same (you enable the ports open), maybe there is some way of doing in both, but we don't know.

Have you tried to ssh to your computer? what does it say?
 
Old 10-01-2004, 08:27 AM   #7
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
locally it works fine.
and remotly it works only when the firewall is disabled.

about firestarter - the first time I ran it it asked me if I want to make certain services public, which is just what I need.
but now firestarter seems broken - it says some files /etc/firestarter/firewall.sh is missing.
tried to purge it and re-install, but its still missing.
 
Old 10-01-2004, 08:46 AM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
FireHOL is another firewall. It doesn't have gui but the configuration syntax is very simple. There's a tutorial for FireHOL http://firehol.sourceforge.net/tutorial.html See if that makes sense to you and if it does, just remove the other firewalls ("aptitude purge guarddog" && "aptitude purge firestarter") and install FireHOL.

But DON'T attempt to use many firewalls at the same time!
 
Old 10-01-2004, 10:19 AM   #9
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Dead Parrot:
last night i was bored with the presidential debate, and disinstalled Guarddog and installed Firestarter, which gave me some open ports at grc.com, uninstalled that and installed Firehol, which was easy to set up (default, did nothing) but also showed some red ports at grc.com, uninstalled too, So far, Guarddog is the only one that gives me a clean bill of health at grc.com .

This is going to require some serious reading this weekend. I like Firehol, it was a snap. Then, following one of your posts, i uninstalled XDM, which took with it 'x-window-system' but left 'x-window-system-core', with the hope of eliminating a bunch of worthless fonts, rebooted, and came back to the console login, which was fine, but still i'm getting all those attempts by some companies to go out, which has to do with the configuration of the firewall. Any ideas?

What's your config on Firehol, and do you get these messages when you are at the console for a while?

Last edited by macondo; 10-01-2004 at 10:31 AM.
 
Old 10-01-2004, 11:07 AM   #10
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
messages

I get these messages too.
the most annoying thing is that they pop up when you are at your lowest, with just terminal.
whats the deal with the companies? what companies?
 
Old 10-01-2004, 11:07 AM   #11
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Dead Parrot
FireHOL is another firewall. It doesn't have gui but the configuration syntax is very //...

But DON'T attempt to use many firewalls at the same time!
I`ll try it soon, thanks.
 
Old 10-01-2004, 11:36 AM   #12
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
@macondo:
Thanks for the tip! I've only tested FireHOL (basic setup via "firehol-wizard") in the "Shields UP!!" page -- seemed to be OK. Must try other tests too, the FireHOL page at Sourceforge recommends installing Nessus.

I'm very ignorant on the topic of iptables/netfilter. Have always thought there's plenty of time to study it later on.

I have bookmarked this issue of Linux Productivity Magazine for further studies: http://www.troubleshooters.com/lpm/200305/200305.htm Should probably give it a closer look some time during this weekend.

Edit:

Ah, grc.com is the same as "Shields UP!!". Well, my FireHOL setup passed it cleanly.

My /etc/firehol/firehol.conf looks like this:
Code:
version 5

# Accept all client traffic on any interface 
interface any world
	client all accept
My /etc/default/firehol looks like this:
Code:
START_FIREHOL=YES
In addition, I have "S38firehol" in /etc/rcS.d/. Before testing FireHOL make sure that you haven't got any other firewall scripts in /etc/rcS.d/ or /etc/rc{2-5}.d/. It's better to remove other firewall programs with "aptitude purge" to make sure that they don't interfere.

About those annoying console messages: You can quiet them down by adding the line:
Code:
dmesg -n1
to some init script (it might be useful to make a special "local" init script, like suggested here: http://www.desktop-linux.net/debian-rclocal.htm )

- - -

The steps to enable FireHOL are:
1) Install Firehol.
2) Edit /etc/default/firehol (change "START_FIREHOL=NO" to "START_FIREHOL=YES").
3) Run (as root) "firehol-wizard"
4) Start FireHOL (as root) with "/etc/init.d/firehol restart".
5) Test if your firewall works as expected:
https://grc.com/x/ne.dll?bh0bkyd2
http://scan.sygate.com/

Last edited by Dead Parrot; 10-01-2004 at 01:06 PM.
 
Old 10-01-2004, 02:29 PM   #13
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Dead Parrot:

did a fresh installation on my neighbor's box, he wanted Sarge, did the ReiserFS/x-window-system-core/fluxbox/Firehol/kernel-image -2.6-686 bit, we followed your instructions to the letter, did the configuration, he is so happy 'cause his box never been so fast! it worked like a charm, we left the matter of the messages for tomorrow. FireHOL only showed stealth and closed ports.

Thanks, mate!

Last edited by macondo; 10-01-2004 at 02:34 PM.
 
Old 10-01-2004, 03:40 PM   #14
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
did a fresh installation on my neighbor's box, he wanted Sarge, did the ReiserFS/x-window-system-core/fluxbox/Firehol/kernel-image -2.6-686 bit [--] he is so happy 'cause his box never been so fast!
Debian is sweet.

However, there's a potential security problem in installing x-window-system-core and using .xinitrc -- it doesn't automatically invoke xauth (like xdm does), which leaves doors wide open for anyone to remotely access your Xserver.

The simple solution is to add
Code:
xhost +localhost
to the beginning of .xinitrc.

Or, alternatively, you can edit /etc/X11/xinit/xserverrc and make Xserver call xauth:
Code:
#!/bin/sh
/usr/X11R6/bin/xauth add :0 . 
exec /usr/bin/X11/X -dpi 96 -nolisten tcp -auth $HOME/.Xauthority
Apparently using xauth is the solution that most people recommend, but for normal users xhost should be safe enough, especially when you have a good firewall.

Edit:
I had to edit the xserverrc lines a bit (tested the earlier version with Nessus and noticed it didn't work, but now it works ).

Last edited by Dead Parrot; 10-01-2004 at 05:45 PM.
 
Old 10-01-2004, 04:06 PM   #15
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
i had put this on his ~/.xinitrc

#!/bin/sh

xhost +localhost
exec fluxbox

plus at the terminal:

#export XAUTHORITY=/home/raul/.Xauthority

just to make sure
 
  


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
Iptables - incomming port to external port - possible? ziggie216 Linux - Software 1 07-13-2006 02:08 PM
Is it not possible to route incomming port to another external port? ziggie216 Linux - Software 5 12-03-2005 06:16 PM
Log incomming data from a serial port shoekstr Linux - Hardware 6 05-28-2004 10:53 AM
port 25 for both incomming and outgonig mail? ziggie216 Linux - Software 6 12-24-2003 03:35 AM
Check URL if accepting incomming on port 80 mithras Linux - General 4 07-25-2003 06:43 PM

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

All times are GMT -5. The time now is 06:56 PM.

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