Networking Forums

Networking Forums > Computer Networking > Linux Networking > Firewall setup

Reply
Thread Tools Display Modes

Firewall setup

 
 
Tim Frink
Guest
Posts: n/a

 
      06-22-2010, 08:46 AM
Hi,

I've a new Linux box (running Debian Lenny) which is connected via a WLAN
card to a DSL router. The firewall of the DSL router is disabled. Now I
would like to install a firewall on my Linux system. Which connections
do I need to block in general? Are there any graphical tools that help me
to setup firewall rules? Or any out-of-the-box scripts that can be used
after a slight modification?

Thank you.

Tim
 
Reply With Quote
 
 
 
 
Jorgen Grahn
Guest
Posts: n/a

 
      06-22-2010, 06:08 PM
On Tue, 2010-06-22, mjt wrote:
> On Tue, 22 Jun 2010 08:46:43 +0000 (UTC)
> Tim Frink <(E-Mail Removed)> wrote:
>
>> I've a new Linux box (running Debian Lenny) which is connected via a
>> WLAN card to a DSL router. The firewall of the DSL router is
>> disabled. Now I would like to install a firewall on my Linux system.
>> Which connections do I need to block in general?

>
> Basically, everything except services required


Or nothing, if you don't run any servers, or only secure ones.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
Aragorn
Guest
Posts: n/a

 
      06-22-2010, 08:39 PM
On Tuesday 22 June 2010 10:46 in comp.os.linux.networking, somebody
identifying as Tim Frink wrote...

> Hi,
>
> I've a new Linux box (running Debian Lenny) which is connected via a
> WLAN card to a DSL router. The firewall of the DSL router is disabled.
> Now I would like to install a firewall on my Linux system. Which
> connections do I need to block in general?


Only those which are in use by a service offered by your machine, and
only insofar that the firewalling rejects unsolicited connections on
said ports.

For instance, you might have "sshd" running to allow remote logins, but
you are seeing a lot of of break-in attempts on that. So then you
could set up a firewalling rule that only allows access to port 22 from
a limited and trusted range of IP addresses. (Note: In the case
of "sshd", this need not necessarily be done -via firewalling rules, as
the "sshd" configuration file already allows for finegraining access to
that service, and as has been pointed out elsewhere already, it is
always a good idea to use a non-standard port for "sshd".)

Most people who have a residential internet connection and who are
inquiring about firewalling are people who come from the Windows world,
where firewalling is an absolute necessity, because Windows is by
nature very promiscuous. UNIX does not work that way, and there is no
point in blocking a given port if that port has no daemon running on
it.

> Are there any graphical tools that help me to setup firewall rules? Or
> any out-of-the-box scripts that can be used after a slight
> modification?


For graphical tools, another poster has already recommended "webmin".
It's a web-based graphical interface for system administration - not
just firewalling. Most distributions ship with "webmin" packages.

Once it's installed and properly set up, you can connect to it on port
10000. It is advised to use it with https only, especially if you
intend administering the machine remotely from another location on the
internet.

As for scripts... There are some, but considering what I wrote higher
up about how UNIX only accepts connections on ports which have a
service/daemon running on them, such scripts would be highly
specialized. For instance, if you install your machine with the Xen
hypervisor, then the management virtual machine will - provided that it
has direct access to a NIC, which is not always the case in a Xen
set-up - implement a firewalling script which secures the management
virtual machine from the internet and sets up the NIC either as a
bridge or with routing, depending on the chosen networking set-up.

There are however no general purpose scripts for firewalling on a
GNU/Linux system, because every system has different needs. Alas, and
again as I wrote higher up, people coming from the Windows world have
been badly misindoctrinated into believing that a firewall is
absolutely required under all circumstances.

With Windows, that is the case, yes, even if it were only to prevent
Windows from phoning home, because although most people don't know
this - and I don't do Windows but I'm familiar with how it works -
Windows is actually spyware that contacts Microsoft at least once every
week to let them know that you're still using an official version. A
tactic which, given the sheer number of pirated copies, doesn't seem to
serve its purpose too well. ;-)

In real operating systems however, there is no need for a firewall
except for what firewalls were really designed for, i.e. to keep the
bad guys out and let the good guys in. ;-)

--
*Aragorn*
(registered GNU/Linux user #223157)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
W2K3 SP1 Firewall setup Silver Windows Networking 0 03-09-2006 08:48 AM
MN-100 Firewall Setup Ron Bower Broadband Hardware 5 06-09-2004 12:59 PM
DG834G Firewall setup Peter Crosland Broadband 5 02-02-2004 01:10 PM
Dlink 504 No Nat Firewall setup John 365247 Broadband 1 10-19-2003 08:01 PM
need help w/RH9 firewall setup LRW Linux Networking 4 09-19-2003 01:17 PM



1 2 3 4 5 6 7 8 9 10 11