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....
|