Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm wondering what check list other people would use for securing a windows server directly connected to the internet.

Aside from this, anyone's opinions on doing this would be appreciated as well.

Thanks

share|improve this question
    
What role is this server going to have? Just hosting a website on plain old IIS? –  Dan Jul 17 '09 at 10:35
    
Yeah, that kind of thing, database, file transfer, application server(over 80 and 443), if that makes sense? –  optician Jul 17 '09 at 15:04

5 Answers 5

up vote 3 down vote accepted

I have firewalls in front of my servers, but I still do all of the following:

  • Disable IIS if you're not using it
  • Remove FTP if it's not required (if it is then restrict access to your authorised IP addresses only)
  • Apply latest service packs and hotfixes
  • Disable incoming ports that aren't required
  • Disable unnecessary services, e.g. Server (if it's not used as file & print server) and RRAS

If using IIS

  • Move the inetpub\wwwroot folder
  • Change the user account used for anonymous access & set up with appropriate permissions
  • Remove any example folders such as IIS Admin, web-based printing etc.
  • Remove ISAPI filters you're not using
  • Create a dedicated account for FTP transfers - give that account only sufficient permission to do ftp (i.e. read/write the files it puts up, nothing else)

Logins

  • Rename the Administrator account
  • Create a new account called Administrator, remove all its access and privileges and disable the account (while a hacker will work hard to find out the name of an administrator account many scripts aren't so sophisticated)
  • If you have physical access to the server then set "Deny Access to this computer from the network" on the Administrator account
  • Check the guest account is disabled (and check all other accounts)

Personally, I wouldn't do it. If you have ever run a PC with ZoneAlarm (I'm thinking back to 2002 on a Windows 2000 box with an ADSL modem) and watched the alerts as all and sundry knocks on your PC's door then you'll understand why. Cisco and Juniper firewalls start from about £300 / $500 new, or you could get a low spec box and install smoothwall or similar. If you are putting the server up at a colo you should be able to get another 1U rack space for the firewall (and a power socket) for a fraction of the 1st U of rackspace.

share|improve this answer
    
I do remember the days of directly connected computers to the internet and zone alarm, a pity it got so bloated, I liked its fine grain control. I have heared great things about smoothwall. I did hear that black ice was very good, and also would install without any security turned on so you could remotely install/config it. But I think this is now expensive. Do you have any suggestions for a firewall that can fullfill this goal? –  optician Jul 17 '09 at 15:06
    
We used smoothwall 2003 until 2006 - briefly described here: serverfault.com/questions/12535/… . Sounds like you're looking for a software firewall to install on the server itself? –  Dan Jul 20 '09 at 8:38

To kick things off, here is my current list.

  1. Disable administrator account, and all non secure accounts

  2. Disable ftp

  3. Secure the server blocking all unneeded ports and services, using Security Configuration Wizard, I currently leave port 22,80,443

  4. Install WinSSHD for file transfer to the server on port 22 (could be higher random port), also did try win open shh, but it got a bit messed up when trying to install keys.

Anyone else got more steps to add?

share|improve this answer
    
What do you mean by "Disable administrator account"? How will you perform tasks which require admin rights? –  sleske Aug 25 '09 at 22:24
    
windows comes with an account called administrator, like linux root –  optician Sep 7 '09 at 14:33

By "without a firewall", I'm assuming you mean "without an external firewall" - the firewall on the server should be very definitely on, and set up only to expose the services that you need to be exposed to the Internet - you didn't mention what these are, but from the tags, I'm guessing that SFTP is involved.

Make sure the server's patched as fully as you can get it, and remains so for as long as it's connected to the Internet.

If you absolutely have to have (ordinary) FTP, you should look at securing that further as well - limit IP addresses that can connect to your FTP service, do it over SSL, or use SFTP instead. OpenSSH )as optician mentioned) comes with an SFTP service.

share|improve this answer
    
you are absolutely right, will change title to hardware firewall, thanks. –  optician Jul 17 '09 at 14:50

If you're connected directly to the internet without a firewall, you have got to assume that at some stage you will come under attack, and work from there.

As well as security I would also recommend putting some good monitoring in place. At the very least you should be monitoring process activity, CPU and memory usage, and network activity (I'm sure others would add more to the list).

share|improve this answer

The first I would do, if possible, is unplug the network cable, do all the secure steps, especially apply all hotfix/server packs, turn on software firewalls, and then plug the network cable back. un-secured boxes only last about half an hour in the wild, especially windows boxes.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.