LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 06-17-2004, 03:47 AM   #1
trostum
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake Linux 10.0
Posts: 5

Rep: Reputation: 0
Arrgh. linux newbie and a firewall


Hi, just installed linux, read a book on linux for everyday use. The thing is that it does not mention firewalls. Don't i need one? I ran the the test on grc.com and almost all of my ports were closed. That's ok, but the best would be if they were stealth. On my winxp box i use sygate and that is a very good firewall. on grc.com, the test showed stealth on all the tests.

I use mandrake linux 10.0 and shorewall is supposed to be here, but i can't seem to make it work. when i turn it on it just blocks everything.
Downloaded libfwbuilder or something, annother firewall. It needed glib to be installed, so i went to the gtk.org and downloaded glib-2.4.0. installed it, worked fine, but still the libfwbuilder says it needs glib.

1. how do i configure shorewall?
2. why can't libfwbuilder find that glib thing (what is it, by the way?)
3. Do i need to learn about iptables and a lot of networking just to run a firewall on linux?
 
Old 06-17-2004, 04:42 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
You can configure shorewall through the Mandrake ControlCentre (you should also have been given the opportunity during the Mandrake installation - it is on by default).

By default a firewall should block all incoming traffic; you need to open up the ports you want to allow in.

If you are just running a client (i.e. no-one needs to initiate a connection to your computer from the outside) then shorewall with the default no ports open should be fine. Works for me, anyway.
 
Old 06-17-2004, 06:25 AM   #3
trostum
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake Linux 10.0
Posts: 5

Original Poster
Rep: Reputation: 0
hmm... got it right, now the test only detects one closed port. how do you manually stealth a port?
the open port is 113 - auth / ident.
 
Old 06-17-2004, 10:25 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
not much you can do with 113. if you stealth it, it slows down certain things. it's safe enough to leave open. this is common to all firewalls.
 
Old 06-17-2004, 08:49 PM   #5
paeng16
Member
 
Registered: May 2004
Posts: 47

Rep: Reputation: 15
quote:
_______________________________________________________________________
3. Do i need to learn about iptables and a lot of networking just to run a firewall on linux?


I suggest you atleast learn the iptables because it would surely help you BEEF-UP your security. In my experience, I have solve many problems and tighten security using IPTABLES. (eg. Masquerading, allowing ssh only to a known IP-ADD, Dropping Ping!, .,etc.,)
 
Old 06-27-2004, 03:14 AM   #6
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Quote:
Originally posted by trostum
hmm... got it right, now the test only detects one closed port. how do you manually stealth a port?
the open port is 113 - auth / ident.
If you are using a NAT router, you can stealth port 113 by forwarding all packets to an unused IP address on your subnet. As amosf says, this can slow certain things down, if you communicate with certain older UNIX systems which, when you contact them, send a request back to port 113 to confirm identity. However, I don't think that's very common these days. I've forwarded port 113 so it appears stealthed and have yet to see any problems; if you did, you could always unstealth it again.
 
Old 07-16-2004, 10:54 AM   #7
hoarenet
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake 10
Posts: 29

Rep: Reputation: 15
Quote:
Originally posted by trostum
hmm... got it right, now the test only detects one closed port. how do you manually stealth a port?
the open port is 113 - auth / ident.

What exactly did you do?

I had exactly the same problem as you and out of frustration simply tagged the following script, which was supplied but another member yesterday, into shorewalls start file.

# reset firewall
iptables -F
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT

# allow loopback traffic
iptables -A INPUT -d lo -j ACCEPT

# un comment out if you want this machine to respond to pings
# iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT

# allow established or related connections
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# un-comment out to trust all pc's on your lan.
#iptables -A INPUT -s 192.168.0.0/16 -j ACCEPT

# un comment out if this machine is a printer server, and you have NOT truested all machies on your lan
#iptables -A INPUT -p tcp --dport 631 -s 192.168.0.0/16 -j ACCEPT




I know that probably isn't the right place to have put it but all I wanted was to make my machine secure for my uses of email and web browsing. Shorewall says that file is run every time shorewall is reset or started and there wasn't anything else in it appart from commented lines.

I realise because of where I placed it I won't be able to configure shorewall by any other means than edit the start file each time I want to change something but that's fine with me as I know exactly where to go.

Maybe someone knows where it should be placed in a shorewall setup.

It works fine anyway and grc shields up test looks OK. I have noticed the browsing is slightly slower but nothing drastic however I noticed someone mentioned another test that I should run that gives a better test.

I would appreciate any comments about my start file bodge.
 
Old 07-17-2004, 08:26 AM   #8
hoarenet
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake 10
Posts: 29

Rep: Reputation: 15
My start file bodge isn't working as well as I thought

In fact as a warning to others DONT DO IT.

It has a peculiar effect on the starting of the system while booting.

I commented out shorewall start file entries I had previously added and the system is now back to normal but I have had to revert the firewall to allow everthing if I want to connect to the internet.

There is deffinately a problem with shorewall and the default settings.

I would appreciate any guidance from experienced users.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ARRgh Windows wont remember position... Mystical Itachi Suse/Novell 4 02-26-2007 03:18 AM
Newbie:Configuring Firewall paultaylor Linux - Security 7 11-18-2004 01:19 PM
Arrgh! Tried several times to install 9.1! ThunderBunny Mandriva 2 09-04-2003 04:24 PM
Java+Mozilla+Debian Woody=Arrgh! KePSuX Linux - Software 1 07-05-2003 02:05 PM
Newbie firewall question menhilmor Linux - Security 9 07-18-2002 02:25 PM


All times are GMT -5. The time now is 05:16 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration