Article View: uk.comp.os.linux
Article #452Re: Security
From: Tim Haynes
Date: Sat, 11 Dec 1999 00:00
Date: Sat, 11 Dec 1999 00:00
46 lines
3166 bytes
3166 bytes
Paul Richards <pauldoo@dunvegan1.demon.co.uk> doodled in uk.comp.os.linux: > I've recently got my Linux (Debian) box set up back to how it was before > I broke it. (Well M$ FDISK decided to make a FAT32 partition overlap my > EXT2 which was nice when I tried to format the FAT32..) What should I > do to make the system more secure? I no longer have dual boot, only > Linux because I was pissed off with what M$ FDISK done. Too right! Nuke that evil m$loth scum :) > I'm only on a dialup box and I have no local network. Any tips/ideas? > > I need to have http and anonymous ftp connections allowed and I also > need to be able to telnet in. Okiedokies... as someone's already said, don't run any services you don't really need - start by disabling things in /etc/inetd.conf, and check with netstat -ant | grep LISTEN to see what other standalone daemons you've got running. (You can use fuser -n tcp port# to see what process is using a particular port if it's not running out of inetd.) What I'd also recommend is getting a firewall that blocks all new incoming tcp connections between 1-1024, apart from 22 and 80. (I find ftp expendable, especially if you've got a way of accessing ~ftp over http or ssh, but YMMV as always.) Play with ipchains a bit - in particular you want -y to stop all new incoming tcp connections whilst permitting packets to come back to a low source port, and -l to log failures. (When designing a firewall for dialup purposes, don't use specific IP#s especially if you have dynamic IP, but deal in terms of -i ppp0, of course. You might want to use ipchains-save and ipchains-restore to preserve the firewall and restore it on dialup automatically.) What you might also like to consider is running fakebo - this is a standalone daemon that listens for incoming Back Orifice scans and optionally sends crap back - in the space of two weekends I caught as many scans over even a dynamic dialup IP range... ~Tim -- | Geek Code: GCS dpu s-:+ a-- C++++ UBLUAVHSC++++ P+++ L++ E--- W+++(--) N++ | w--- O- M-- V-- PS PGP++ t--- X+(-) b D+ G e++(*) h++(*) r--- y- | Flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mmx 3dnow | The sun is melting over the hills, | http://www.glutinous.custard.org | All our roads are waiting / To be revealed | piglet@glutinous.custard.org
Technical Details
Message-ID:
<slrn85510g.dk.piglet@pigsty.td.micromuse.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38513A2C.F927313@dunvegan1.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d8ad,f54179a9240e5606 X-Google-Attributes: gid10d8ad,public X-Google-Thread: fac57,f54179a9240e5606 X-Google-Attributes: gidfac57,public From: piglet@glutinous.custard.org (Tim Haynes) Subject: Re: Security Date: 1999/12/11 Message-ID: <slrn85510g.dk.piglet@pigsty.td.micromuse.co.uk> X-Deja-AN: 559659312 References: <38513A2C.F927313@dunvegan1.demon.co.uk> X-Complaints-To: abuse@insnet.net X-Trace: starburst.uk.insnet.net 944997176 22047 212.158.46.97 (12 Dec 1999 11:12:56 GMT) X-Caffeine-Requirement: Irn Bru and rising Organization: The Pigsty User-Agent: slrn/0.9.5.7 (UNIX) Reply-To: piglet@glutinous.custard.org NNTP-Posting-Date: 12 Dec 1999 11:12:56 GMT Newsgroups: uk.comp.os.linux,demon.tech.unix