SSL Part 2: PC Lock Down: Difference between revisions

From The Uniform Server Wiki
Jump to navigation Jump to search
(New page: <span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000"> {| | MPG UniCenter || SSL Part 2: Home | [[...)
 
No edit summary
Line 1: Line 1:
<span id="top"></span>
=[http://exytebuc.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
<div style="padding:0;margin:0; border-bottom:3px inset #000000">
&lt;span id=&quot;top&quot;&gt;&lt;/span&gt;
&lt;div style=&quot;padding:0;margin:0; border-bottom:3px inset #000000&quot;&gt;
{|  
{|  
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
Line 15: Line 16:
   
   
|}
|}
</div>
&lt;/div&gt;
{| cellpadding="2"
{| cellpadding=&quot;2&quot;
|
|
__TOC__
__TOC__
||
||
'''PC lockdown'''<br>Uniform Server 3.5-Apollo'''
'''PC lockdown'''&lt;br&gt;Uniform Server 3.5-Apollo'''
|}
|}
{|
{|
Line 77: Line 78:
The following are services I disable on my XP-Home machine its not a definitive list. Before disabling any services check on the Internet that doing so will not cause you problems. However disabling network services not required for your computer will protect you from undesirable connections. I have crudely prioritised these, two stars is the highest and you don’t really want these running:
The following are services I disable on my XP-Home machine its not a definitive list. Before disabling any services check on the Internet that doing so will not cause you problems. However disabling network services not required for your computer will protect you from undesirable connections. I have crudely prioritised these, two stars is the highest and you don’t really want these running:


'''Access service control''': Start > Control Panel > Administrative Tools > Services
'''Access service control''': Start &gt; Control Panel &gt; Administrative Tools &gt; Services


'''''Note''''': Right click on service name, select properties and then select disable
'''''Note''''': Right click on service name, select properties and then select disable
{|
{|
|-
|-
|&nbsp;||style="background:#f7f7f7"|Alerter||&nbsp;
|&amp;nbsp;||style=&quot;background:#f7f7f7&quot;|Alerter||&amp;nbsp;
|-
|-
|&nbsp;<nowiki>*</nowiki>||style="background:#f7f7f7"|ClipBook||&nbsp;
|&amp;nbsp;&lt;nowiki&gt;*&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|ClipBook||&amp;nbsp;
|-  
|-  
|&nbsp;||style="background:#f7f7f7"|Error Reporting Service
|&amp;nbsp;||style=&quot;background:#f7f7f7&quot;|Error Reporting Service
|-  
|-  
|&nbsp;<nowiki>*</nowiki>||style="background:#f7f7f7"|Help and Support
|&amp;nbsp;&lt;nowiki&gt;*&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Help and Support
|-   
|-   
|&nbsp;||style="background:#f7f7f7"|Human Interface Device Access  
|&amp;nbsp;||style=&quot;background:#f7f7f7&quot;|Human Interface Device Access  
|-  
|-  
|&nbsp;<nowiki>*</nowiki>||style="background:#f7f7f7"|Messenger
|&amp;nbsp;&lt;nowiki&gt;*&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Messenger
|-   
|-   
|<nowiki>**</nowiki>||style="background:#f7f7f7"|NetMeeting Remote Desktop Sharing
|&lt;nowiki&gt;**&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|NetMeeting Remote Desktop Sharing
|-   
|-   
|&nbsp;<nowiki>*</nowiki>||style="background:#f7f7f7"|Network DDE
|&amp;nbsp;&lt;nowiki&gt;*&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Network DDE
|-   
|-   
|&nbsp;<nowiki>*</nowiki>||style="background:#f7f7f7"|Network DDE DSM  
|&amp;nbsp;&lt;nowiki&gt;*&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Network DDE DSM  
|-  
|-  
|<nowiki>**</nowiki>||style="background:#f7f7f7"|Remote Desktop Help Session Manager  
|&lt;nowiki&gt;**&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Remote Desktop Help Session Manager  
|-  
|-  
|<nowiki>**</nowiki>||style="background:#f7f7f7"|Routing & Remote Access  
|&lt;nowiki&gt;**&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Routing &amp; Remote Access  
|-  
|-  
|&nbsp;<nowiki>*</nowiki>||style="background:#f7f7f7"|SSDP Discovery Service (Manual)||Disables the Universal PNP Service, which leaves TCP Port 5000 open.
|&amp;nbsp;&lt;nowiki&gt;*&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|SSDP Discovery Service (Manual)||Disables the Universal PNP Service, which leaves TCP Port 5000 open.
|-  
|-  
|<nowiki>**</nowiki>||style="background:#f7f7f7"|TCP/IP NetBIOS Helper
|&lt;nowiki&gt;**&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|TCP/IP NetBIOS Helper
|-   
|-   
|&nbsp;<nowiki>*</nowiki>||style="background:#f7f7f7"|Terminal Services
|&amp;nbsp;&lt;nowiki&gt;*&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Terminal Services
|-   
|-   
|&nbsp;||style="background:#f7f7f7"|Themes||Not a security risk just a pain on a slow machine
|&amp;nbsp;||style=&quot;background:#f7f7f7&quot;|Themes||Not a security risk just a pain on a slow machine
|-  
|-  
|<nowiki>**</nowiki>||style="background:#f7f7f7"|Universal Plug and Play Device Host||Allows your computer to automatically connect to network-enabled appliances. Not a good idea
|&lt;nowiki&gt;**&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Universal Plug and Play Device Host||Allows your computer to automatically connect to network-enabled appliances. Not a good idea
|-  
|-  
|&nbsp;<nowiki>*</nowiki>||style="background:#f7f7f7"|Windows Time
|&amp;nbsp;&lt;nowiki&gt;*&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Windows Time
|-   
|-   
|<nowiki>**</nowiki>||style="background:#f7f7f7"|Workstation
|&lt;nowiki&gt;**&lt;/nowiki&gt;||style=&quot;background:#f7f7f7&quot;|Workstation
|}
|}


These are for other Windows versions and only intended to give you some idea what to search for on the Internet.
These are for other Windows versions and only intended to give you some idea what to search for on the Internet.


# <nowiki>*</nowiki> Telnet
# &lt;nowiki&gt;*&lt;/nowiki&gt; Telnet
# <nowiki>*</nowiki> IIS (not installed by default)
# &lt;nowiki&gt;*&lt;/nowiki&gt; IIS (not installed by default)
# <nowiki>*</nowiki> Remote Registry
# &lt;nowiki&gt;*&lt;/nowiki&gt; Remote Registry


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''

Revision as of 01:13, 24 November 2010

Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page

<span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000">

MPG UniCenter

SSL Part 2: Home | Lock Down | No IP | hMailServer | Config hMailServer | PHP mail function | Generate CSR | CAcert | CAcert Signing Process

</div>

PC lockdown<br>Uniform Server 3.5-Apollo

If you are intending to run a personal secure web server or just using your PC for surfing it’s extremely important to lock it down and implement other security measures.

Although this write-up is for XP Home the principals are similar for other versions of Windows. Do not rely on this write-up alone I am bound to have missed something important. Search the Internet for more detailed information it’s a continuous battle hence do it regularly.

Security

In reality trying to secure any Windows machine is a nightmare you are far better off using a Unix machine! Not what you want to hear! That said they are faced with similar security issues. Running a secure server on a machine infested with other programs is a contradiction and should not be considered.

Scared

Scared! Well you should be, still want to run a secure personal web server on your Windows box? I do using the most insecure version, Windows XP Home; ok I have locked it down as best I can. I do not use a self-signed certificate, these are open to man in the middle attacks hence I use a reputable certificate authority. A signed certificate like your personal data is extremely valuable and must be protected. The following are very important security issues you need to consider:

Top

Router with NAT

Use a router instead of ICS (Internet Connection Sharing) they are faster, easier to configure, and more secure. This really is your first line of defense. Don't put your PC into a DMZ (demilitarised zone) use port forwarding and only forward ports that you use.

If you are using some of the P2P services consider the security implications. Check your routers manual and Internet for lockdown scenarios. The following a reasonable starting point:

  • Enable any security features:
  • Enable DoS Defence
  • Disable P2P (eDonkey, FastTrack, Gnutella, BitTorrent)
  • Consider settings in firewall, URL Content Filter etc.
  • Consider Instant Messenger Applications Blocking

All routers are different some or all the above may be included. In most cases all that is required is a mouse click to enable these features.

Top

Secure your wireless network

A wireless network (WLAN) is easy to set-up on these the default security settings do require your attention. It takes a few extra minutes to configure security the following are a must do list to protect your wireless network:

  1. Secure your wireless router or access point administration interface
  2. Don't broadcast your SSID
  3. Enable WPA encryption instead of WEP
  4. Use MAC filtering for access control
  5. Reduce your WLAN transmitter power
  6. Disable remote administration

Top

Firewall

Your router firewall is an excellent line of defence; however make sure you also have a software firewall.

XP comes with a built-in firewall (named ICF), not enabled by default (I believe this is still true), and it only filters incoming traffic, does not restrict outbound connections. If you have no alternative use it, it’s better than having nothing.

However there are several third parties providing free personal firewalls such as Zone Alarm (my personal preference). They are real firewalls designed to manage two-way traffic hence avoid ICF.

Top

Anti-Virus Software

One of the most important things for protecting your system is to use anti-virus software you must ensure that it is kept up-to-date. Avast (my personal preference) does an excellent job as does Clam. Some commercial software are resource hogs these can reduce a perfectely good machine to a snail.

Top

Disable Unnecessary Services

The following are services I disable on my XP-Home machine its not a definitive list. Before disabling any services check on the Internet that doing so will not cause you problems. However disabling network services not required for your computer will protect you from undesirable connections. I have crudely prioritised these, two stars is the highest and you don’t really want these running:

Access service control: Start > Control Panel > Administrative Tools > Services

Note: Right click on service name, select properties and then select disable

&nbsp; Alerter &nbsp;
&nbsp;<nowiki>*</nowiki> ClipBook &nbsp;
&nbsp; Error Reporting Service
&nbsp;<nowiki>*</nowiki> Help and Support
&nbsp; Human Interface Device Access
&nbsp;<nowiki>*</nowiki> Messenger
<nowiki>**</nowiki> NetMeeting Remote Desktop Sharing
&nbsp;<nowiki>*</nowiki> Network DDE
&nbsp;<nowiki>*</nowiki> Network DDE DSM
<nowiki>**</nowiki> Remote Desktop Help Session Manager
<nowiki>**</nowiki> Routing & Remote Access
&nbsp;<nowiki>*</nowiki> SSDP Discovery Service (Manual) Disables the Universal PNP Service, which leaves TCP Port 5000 open.
<nowiki>**</nowiki> TCP/IP NetBIOS Helper
&nbsp;<nowiki>*</nowiki> Terminal Services
&nbsp; Themes Not a security risk just a pain on a slow machine
<nowiki>**</nowiki> Universal Plug and Play Device Host Allows your computer to automatically connect to network-enabled appliances. Not a good idea
&nbsp;<nowiki>*</nowiki> Windows Time
<nowiki>**</nowiki> Workstation

These are for other Windows versions and only intended to give you some idea what to search for on the Internet.

  1. <nowiki>*</nowiki> Telnet
  2. <nowiki>*</nowiki> IIS (not installed by default)
  3. <nowiki>*</nowiki> Remote Registry

Top

Simple File Sharing

XP Home doesn't allow you to disable Simple File Sharing.

The best policy is not to use file sharing. If you must! Make sure you set your shared folders to read only, hide the file shares by using a $ sign after the folder name.

Top

General

Simple File Sharing - Not XP-Home

If you are not operating behind a firewall, you should disable Simple File Sharing.

  1. From Windows Explorer go to Folder Options
  2. Select the View tab
  3. Go to Advanced Settings
  4. Clear the Use Simple File Sharing box
  5. Close Folder Options

Internet Connection Firewall (ICF)

If you are not using a real firewall (hardware or software) enable ICF (see note above).

To enable ICF, right-click an Internet connection in Network Connections, click Properties, click the Advanced tab, and then select the appropriate check box.

Top

Gibson Research

A must visit site is Gibson Research its a no holes bared practical site. Take time to explore this site and make sure you implement any security recommendations that apply to you.

Scroll down the page to ShieldsUP! for a free Internet security check-up run all the tests inparticular the open port scan test.

Tip: Run all tests with no servers running (Uniform Server, mail server etc.) you are looking to achieve a perfect “TruStealth” rating. The “All Service Ports” scan produces a grid of green squares (indicating a pass) click on any red square and read the details and issues for that port.

Enable each of your servers in turn note you will fail the “All Service Ports” test that is expected. The only ports that fail relate to the server you are running (Apache is port 80) any others are suspect so check them out.

Top

Step back

I promise this will be my last rant about security; I want you to enjoy and explore the possibilities of running your own secure web server safely. However take a step back and ask yourself this question, do I have any personal data on this machine that I would not openly give to a stranger? If you do, take it off now and save to a memory stick or whatever secure place you have. Ever asked the same question about the machine you regularly surf the Internet with!

Summary

The above was intended to make you seriously focus on security issues. I am not a security expert and cannot possibly cover every thing you need to implement. However the above provides you with some of the terms to search for on the Internet. The real message it’s no good obtaining a signed certificate if it’s going to be compromised.

With your PC locked down the next thing you require in order to obtain a signed certificate is a domain name. You can either register one with a registrar or take the cheaper option (free) covered on the next page.

Top


Ric