Networking Forums

Networking Forums > Computer Networking > Linux Networking > what connections does a server need?

Reply
Thread Tools Display Modes

what connections does a server need?

 
 
Captain Dondo
Guest
Posts: n/a

 
      02-01-2005, 12:21 PM
As a learning process, I'm trying to secure my home server. I've done all
of the 'normal' stuff - it's running only those things it needs, it's
behind a reasonably tight firewall, etc.

The firewall port-forwards certain requests: www, imap, vtun (corporate
VPN), rsync, smtp.

The firewall currently allows all outgoing connections; I'd like to change
that and limit the outgoing connections the server can make. Since the
server should never be used by a real person to initiate connections to
the outside except for regular maintenance, all connections should be
known.

So... what does it need to do its job?

DNS - UDP 53.
ICMP - which ones?
ntp - UDP 123/TCP 123.
passive ftp??? - (How does clamav get its updates?)
http - same as above, plus yum/apt-get, limit to specific hosts in
yum.conf

Any others? Since this server is live, I really don't want to disrupt
services too much.

From past experience, icmp is the big headache. I've not found a good
reference to tell me which ones to block and which ones to let through.

Any good recent references? My copy of 'Building internet firewalls' is
pretty dated these days....
 
Reply With Quote
 
 
 
 
Juha Laiho
Guest
Posts: n/a

 
      02-01-2005, 07:36 PM
Captain Dondo <(E-Mail Removed)> said:
>As a learning process, I'm trying to secure my home server. I've done all
>of the 'normal' stuff - it's running only those things it needs, it's
>behind a reasonably tight firewall, etc.

....
>The firewall currently allows all outgoing connections; I'd like to change
>that and limit the outgoing connections the server can make.

....
>From past experience, icmp is the big headache. I've not found a good
>reference to tell me which ones to block and which ones to let through.


I'd say that you want to allow with the stateful mechanism packets that
have state of 'RELATED,ESTABLISHED'. This will allow appropriate
connection-handling ICMP, without you having to worry about that.
And, if you did allow some ICMP subprotocol completely, there would be
the theoretical possibility for someone to misuse that protocol. The
R,E-rule limits even the ICMP packets to only those that really have
something to do with packets seen (and accepted) earlier.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
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
Server not accepting new connections Shads79 Windows Networking 3 05-15-2007 03:36 AM
Only 2 Http Concurrent Connections, Server to Server, .NET Jay Douglas Windows Networking 1 04-27-2007 10:46 PM
Multiple Connections to VPN server Josh Danko Windows Networking 4 07-08-2006 02:10 AM
scs- Server connections SCS Windows Networking 2 06-16-2006 12:16 PM
Win2k3 server and max connections...? Jason Adams Windows Networking 4 08-17-2004 03:36 PM



1 2 3 4 5 6 7 8 9 10 11