PDA

View Full Version : Securing Your Server?


AdminNation
12 Mar 2006, 03:38
In the past week or so we've had countless attempts at people trying to hack into our sever, most noteably when somebody tried to get FTP access to corrupt files, but made sure to spoof an admin IP so it would go unnoticed. So, as you can imagine, we're starting to get a bit paranoid. Aside from install most of the 3.5.2-4 security hacks on this board (which was already somewhat planned), what else can be done in terms of server configuration, software, firewall settings, ect to help better secure our box?

Trigunflame
12 Mar 2006, 04:30
In the past week or so we've had countless attempts at people trying to hack into our sever, most noteably when somebody tried to get FTP access to corrupt files, but made sure to spoof an admin IP so it would go unnoticed. So, as you can imagine, we're starting to get a bit paranoid. Aside from install most of the 3.5.2-4 security hacks on this board (which was already somewhat planned), what else can be done in terms of server configuration, software, firewall settings, ect to help better secure our box?

Lockdown php with open_basedir for PHP stuff.
Server side, compile a monolithic kernel with grsec, preferably a 2.6.x build.
As for FTP server, it depends which you are using and if its chrooted or not.
Chroot your nameserver, webserver, and FTP if its not already along with any other public services.
Firewall settings are going to be geared mainly towards deflecting illegitimate traffic, that being udp floods, tcp connections, concurrent request etc..
Prevent direct root login, make sure you have to login as a system user first then su- to root; also change SSH to a higher level port thats not currently in use, possibly change ftp to another port as well.

turkforum
12 Mar 2006, 04:58
I do Close all unnecessary ports. Update the server every day. Check the Logs. let my mods change their pass every month or week (admins). And still looking for a nice firewall for a windows machine.

Paul M
12 Mar 2006, 11:17
And still looking for a nice firewall for a windows machine.Have you tried Winroute Pro ?

cirisme
12 Mar 2006, 18:59
I use DenyHosts (http://denyhosts.sourceforge.net/index.html) to help in the security fight.

who is chris c
13 Mar 2006, 23:02
also you can move ftpd to a secureftpd (data encryption)

Erwin
13 Mar 2006, 23:29
Don't use ftp - close that port, and use only ssh2.

GrCh_Jeff
19 Mar 2006, 12:47
Don't use ftp - close that port, and use only ssh2.

is that like ftp?

who is chris c
21 Mar 2006, 01:21
ssh is an encrypted telnet protocol:

Ssh2 (Secure Shell) is a program for logging in on a remote machine and
executing commands on a remote machine. It is intended to replace rlogin
and rsh, and provide secure, encrypted communication channels between two
hosts over an insecure network. X11 connections and arbitrary TCP/IP ports
can also be forwarded over such secure channels.

mikeylikesitz
21 Mar 2006, 04:28
and for those of you who dont know about winscp, it is a great windows based ssh transfer program.

http://winscp.net/eng/docs/introduction

i dont use ftp at all on my server, only ssh on a higher port and this program.

Carnage
21 Mar 2006, 17:27
something else thats worth a go, take a look at your apache error logs from time to time (i often notice people attempting to access none existant files like for example, known buggy web apps) It also may give up some information about people attempting thigns like inserting shell commands into session cookies ?!? (All this results in is the site blocking with a fatel error message)

GrCh_Jeff
05 Apr 2006, 04:49
Here is a question.Is ssh faster at uploading to the server than ftp? I have cable 3meg down 256 up and when uploading files to the server it only uploads at like 30 to 40 kb a sec. .

DavidN
11 Apr 2006, 18:53
Here is a question.Is ssh faster at uploading to the server than ftp? I have cable 3meg down 256 up and when uploading files to the server it only uploads at like 30 to 40 kb a sec. .

I find SCP from a windows machine using pscp really slow. scp from a Linux box can use my full bandwidth. Very odd.

Although, btw 256k up is ~32k/s