LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 11-08-2005, 04:19 PM   #16
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
Thumbs up


Firewall on Linux:
I think firewall is a must thing as it hides your system from the outer world.
A perfect firlwall makes ur presence stealth thus no one knows if there is some target or not , fairly it is a big differnece between
[without firewall]
1:knowing there is a target and it is blocking it's port . (causing attacker to try something new)

[with firewall]
2:Not sure about target is present or not . ( causing the attacker to first to know if there is target really present or not and then follow the first point).

Further:
a small list of things that are possible:-
* Throttle bandwidth for certain computers
* Throttle bandwidth TO certain computers
* Help you fairly share your bandwidth
* Protect your network from DoS (Denial of Service) attacks
* Protect the Internet from your customers
* Multiplex several servers as one, for load balancing and enhanced availability
* Restrict access to your computers
* Limit access of your users to other hosts
* Do routing based on user id (yes!), MAC address, source IP address, port, type of service, time of day or content.

Linux advanced routing and badwidth control

cheers
 
Old 11-08-2005, 07:10 PM   #17
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
Mmmhh if they are closed, then I see no reason for closing them
I do not claim to be an expert but my understanding is that ports are not "closed" unless they are firewalled.
How are the ports "closed" without one?
 
Old 11-09-2005, 12:06 AM   #18
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
I do not claim to be an expert but my understanding is that ports are not "closed" unless they are firewalled.
How are the ports "closed" without one?
If there is no process bound to a port then nothing can connect to it and any connection attempts will just get a connection refused packet sent back. Same as if you firewalled it with 'REJECT'. Its still a good idea to run a firewall though as you would need to pay very close attention to what's running on your box otherwise to be secure.
 
Old 11-09-2005, 06:38 AM   #19
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
If there is no process bound to a port
I think the term "closed" in our different usages is quite imprecise.
I would not call a port closed just because nothing was being run on it, that seems quite misleading. I would say nothing was being run on it.
I do not think no services being run on a port and having a firewall reject or drop connections to it are equal. I think it is probably dangerous to belive it is.
 
Old 11-09-2005, 10:56 AM   #20
Jamster
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: Debian Sid, LFS
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by 2damncommon
I think the term "closed" in our different usages is quite imprecise.
I would not call a port closed just because nothing was being run on it, that seems quite misleading. I would say nothing was being run on it.
I do not think no services being run on a port and having a firewall reject or drop connections to it are equal. I think it is probably dangerous to belive it is.
Well, by definition a port is 'closed' when it is not accepting connections, and 'open' when it does. But yes, considering that, there are two kinds of closed ports..non-listening and firewalled.

Quote:
Originally posted by tkedwards
Its still a good idea to run a firewall though as you would need to pay very close attention to what's running on your box otherwise to be secure.
Well, if one only uses the package manager of their distribution with
official repositories and/or officialy listed ones, and otherwise
compiles known programs from source (i.e. no little code pieces from script
kiddie sites) things should be relatively safe, seriously.

It comes with the control one has over the system.

Last edited by Jamster; 11-09-2005 at 11:12 AM.
 
Old 11-09-2005, 11:06 AM   #21
Jamster
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: Debian Sid, LFS
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by xxx_anuj_xxx
Firewall on Linux:
I think firewall is a must thing as it hides your system from the outer world.
A perfect firlwall makes ur presence stealth thus no one knows if there is some target or not , fairly it is a big differnece between
[without firewall]
1:knowing there is a target and it is blocking it's port . (causing attacker to try something new)

[with firewall]
2:Not sure about target is present or not . ( causing the attacker to first to know if there is target really present or not and then follow the first point).
What kind of 'stealth' are you referring to?

If you are referring to -j DROP and/or Windows 'Stealth' firewalls..that won't work.

It's a common misconception that any marketed 'stealth' setting or simply completely dropping packets that reach you will turn you invisible.

On the contrary:

As soon as an attacker sends packets to an IP, and nothing at all gets returned they know 'oh lookie, "stealth" firewall'.
This is because if you scan the ip of an ISP, and no computer is currently associated with said IP, the routers of the ISP will return a
'port not reachable' ICMP packet.

Using IPtables this -can- be of course emulated, faking such responses

Instead of using -j DROP or a mere '-j REJECT', actually use '-j REJECT --reject-with icmp-port-unreachable'.

Try it, you'll like it. :>
 
Old 11-09-2005, 02:31 PM   #22
phsythax
Member
 
Registered: Oct 2005
Location: Denmark
Distribution: Gentoo & XP pro for gaming
Posts: 152

Rep: Reputation: 30
best firewall then? (advanced packet filtering, ping blocking, packet fragmentation etc etc.. )
 
Old 11-09-2005, 03:42 PM   #23
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
iptables

Use firestarter, guraddog or shorewall to configure it.
 
  


Reply



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
BSD Firewall vs Linux Firewall ? rootlinux Linux - Security 5 08-29-2007 07:38 AM
how to m$ win client+firewall to linux sshd and use linux to access the M$ computer c_mitulescu Linux - Networking 7 05-14-2004 12:56 PM
Linux As a Firewall shaundyc Linux - Security 8 05-07-2004 11:56 AM
A Firewall for linux marsques Linux - Security 7 01-08-2004 12:41 PM
Linux Firewall preguin1 Linux - Security 7 04-05-2001 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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