Helpful Information
 
 
Category: Big Board Discussions
Securing Your Server?

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?

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.

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.

And still looking for a nice firewall for a windows machine.Have you tried Winroute Pro ?

I use DenyHosts (http://denyhosts.sourceforge.net/index.html) to help in the security fight.

also you can move ftpd to a secureftpd (data encryption)

Don't use ftp - close that port, and use only ssh2.

Don't use ftp - close that port, and use only ssh2.

is that like ftp?

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.

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.

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)

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

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










privacy (GDPR)