Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Basic security considerations?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Naffer
n00b
n00b


Joined: 24 Aug 2004
Posts: 24

PostPosted: Thu Sep 02, 2004 2:34 am    Post subject: Basic security considerations? Reply with quote

I set up my first gentoo (first linux too) box last week and have spent a few days setting it up as I like. I'm currently running sshd, a bittorrent client, apache, samba, and proftpd. The FTP server only allows anonymous logins and no writes.
My question is simply, how do I keep my box from turning into a mail zombie? The box sits behind a nat with a few essential low ports and some high ones (for pasv ftp) forwarded to it. Am I safe as is?
Back to top
View user's profile Send private message
Valhlalla
Apprentice
Apprentice


Joined: 22 Sep 2003
Posts: 161
Location: Sydney, Australia.

PostPosted: Thu Sep 02, 2004 6:40 am    Post subject: Reply with quote

A few things to look at.

* Make sure you arnt running any services you don't need, as in if you don't use ftp often, turn it off. Also check with netstat to see if there are any services running that you didn't know about.

* Set up a decent iptables script, and block everything that isn't being used, including all the ports that are not forwarded through the nat.

* Make sure every thing is kept up to date and configured properly.

* Read you log files.

* Set up and run a tripwire/snort type program.

This is what I do for my machine, do more or less depending on how paranoid you are :)
_________________
Pork Chop Sandwiches, Oh Sh*t!
Back to top
View user's profile Send private message
lwithers
Guru
Guru


Joined: 31 Dec 2003
Posts: 300
Location: Reading, UK

PostPosted: Thu Sep 02, 2004 6:47 am    Post subject: Reply with quote

Sounds pretty safe to me, but I would suggest:
- set up a simple firewall on the machine (I know you're behind NAT, but "defense at multiple depths" is an old and well-proven adage).
- not using FTP. Use scp and/or SFTP instead. This is because there have historically been many exploits of FTP servers and because the FTP protocol itself is (or can be) open to abuse.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum