<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Personal website of Dave Hope</title>
	<atom:link href="http://davehope.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://davehope.co.uk</link>
	<description>Open source projects, sysadmin stuff and the home of Product Key Finder</description>
	<lastBuildDate>Wed, 29 Feb 2012 17:50:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Configuring the Cisco 877W with BE</title>
		<link>http://davehope.co.uk/Blog/configuring-the-cisco-877w-with-be/</link>
		<comments>http://davehope.co.uk/Blog/configuring-the-cisco-877w-with-be/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 17:35:10 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=1008</guid>
		<description><![CDATA[I recently wanted to update my Cisco knowledge so replaced my old Juniper home router with a Cisco 877W ADSL2+ wireless router. I thought I&#8217;d share the config for any other UK BEthere.co.uk users with a static IP address: ! version 12.4 no service pad service timestamps debug datetime msec service timestamps log datetime msec [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to update my Cisco knowledge so replaced my old Juniper home router with a Cisco 877W ADSL2+ wireless router. I thought I&#8217;d share the config for any other UK BEthere.co.uk users with a static IP address:</p>
<pre>!
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service internal
!
hostname ROUTER
!
boot-start-marker
boot-end-marker
!
enable password <strong>&lt;ENABLE PASSWORD&gt;</strong>
!
aaa new-model
!
!
!
!
aaa session-id common
!
!
dot11 syslog
!
dot11 ssid <strong>&lt;WIRELESS SSID&gt;</strong>
vlan 1
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 0 <strong>&lt;WPA KEY&gt;</strong>
!
ip cef
ip dhcp use vrf connected
!
ip dhcp pool dhcp-lan
network 10.99.99.0 255.255.255.128
default-router 10.99.99.1
dns-server 8.8.8.8
domain-name davehope.co.uk
!
!
ip domain lookup source-interface ATM0
ip domain name davehope.co.uk
ip name-server 8.8.8.8
!
!
!
username admin privilege 15 password 0 <strong>&lt;PASSWORD&gt;</strong>
!
!
archive
log config
hidekeys
!
!
!
bridge irb
!
!
interface ATM0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
no atm ilmi-keepalive
dsl operating-mode auto
dsl enable-training-log
dsl noise-margin -3
dsl bitswap both
!
interface ATM0.1 point-to-point
description BEthere ADSL
ip address <strong>&lt;STATIC IP&gt;</strong> <strong>&lt;SUBNET MASK&gt;</strong>
ip nat outside
no ip virtual-reassembly
atm route-bridged ip
pvc 0/101
oam-pvc manage
encapsulation aal5snap
!
!
interface FastEthernet0
!
interface FastEthernet1
!
interface FastEthernet2
!
interface FastEthernet3
!
interface Dot11Radio0
no ip address
!
encryption vlan 1 mode ciphers tkip
!
broadcast-key vlan 1 change 60
!
!
ssid <strong>&lt;WIRELESS SSID&gt;</strong>
!
speed basic-1.0 basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0 24.0 36.0 48.0 54.0
station-role root
!
interface Dot11Radio0.1
encapsulation dot1Q 1 native
no cdp enable
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 spanning-disabled
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
!
interface Vlan1
no ip address
bridge-group 1
bridge-group 1 spanning-disabled
!
interface BVI1
ip address 10.99.99.1 255.255.255.128
ip nat inside
no ip virtual-reassembly
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 <strong>&lt;GATEWAY ADDRESS&gt;</strong>
!
no ip http server
no ip http secure-server
ip nat inside source list 1 interface ATM0.1 overload
!
access-list 1 permit 10.99.99.0 0.0.0.255
!
!
!
control-plane
!
bridge 1 route ip
!
line con 0
no modem enable
line aux 0
line vty 0 4
transport input ssh
!
scheduler max-task-time 5000
ntp clock-period 17175571
ntp server 146.185.21.74
end</pre>
<p>Once you&#8217;re up and running, log a support call with BeThere and ask them to switch your SNR Profile and that&#8217;ll raise the speed above the 14mbps you&#8217;ll get without it.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/configuring-the-cisco-877w-with-be/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerConnect vulnerability fixed</title>
		<link>http://davehope.co.uk/Blog/powerconnect-vulnerability-fixed/</link>
		<comments>http://davehope.co.uk/Blog/powerconnect-vulnerability-fixed/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 13:11:20 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=983</guid>
		<description><![CDATA[Dell have recently released a firmware update for the PowerConnect line of switches to resolve the security vulnerability I discovered. Firmware version 4.1.0.19 lists the following fix: Access is allowed to files on the switch without log in permissions required. If the file name is known, the file can be downloaded through the web browser [...]]]></description>
			<content:encoded><![CDATA[<p>Dell have recently released a firmware update for the PowerConnect line of switches to <a title="Dell PowerConnect vulnerability" href="http://davehope.co.uk/Blog/dell-powerconnect-vulnerability/">resolve the security vulnerability I discovered</a>.</p>
<p>Firmware version 4.1.0.19 lists the following fix:</p>
<pre><strong>Access is allowed to files on the switch without log in permissions required.</strong>
If the file name is known, the file can be downloaded through the web browser without having to be logged in.
Corrected the web process to require login credentials before downloading a file.</pre>
<p>Looking at the release notes, Dell have certainly had a few problems with these Broadcom switches. Fingers crossed their new Juniper product line has less issues!</p>
<p>You can find the firmware update on the Dell website.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/powerconnect-vulnerability-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Avaya IP Office SMDR receiver</title>
		<link>http://davehope.co.uk/Blog/free-avaya-ip-office-smdr-receiver/</link>
		<comments>http://davehope.co.uk/Blog/free-avaya-ip-office-smdr-receiver/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 10:58:28 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=971</guid>
		<description><![CDATA[I recently needed to log all calls made via one of our Avaya IP Office phone systems (running software version 5). The only way to do this was via a protocol known as SMDR. This is a process by which the phone system sends call data to another service for recording. I put together a [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to log all calls made via one of our Avaya IP Office phone systems (running software version 5). The only way to do this was via a protocol known as SMDR. This is a process by which the phone system sends call data to another service for recording. I put together a quick Windows service to receive this information and output it to CSV format. Here&#8217;s an example of the output (please do not call the numbers in the example):</p>
<pre>Call Start, Connected Time, Ring Time, Caller, Call Direction, Dialed Number
25/07/2011 08:27:25,37,1,01202222222@93.95.124.7,Inbound,*7849+441202222222
25/07/2011 08:26:54,70,10,01202222222,Inbound,6000
25/07/2011 08:31:25,0,14,6000,Outbound,01202222222
25/07/2011 08:36:42,0,2,6000,Inbound,#Dev Spare
25/07/2011 08:38:13,43,0,6000,Inbound,?Dave Hope
25/07/2011 08:40:16,0,55,6000,Outbound,01202222222</pre>
<p>For download and installation information head over to the <a href="http://davehope.co.uk/projects/smdr-receiver/">SMDR Page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/free-avaya-ip-office-smdr-receiver/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Extract bandwidth information from lighttpd log files</title>
		<link>http://davehope.co.uk/Blog/extract-bandwidth-information-from-lighttpd-log-files/</link>
		<comments>http://davehope.co.uk/Blog/extract-bandwidth-information-from-lighttpd-log-files/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:20:18 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=960</guid>
		<description><![CDATA[I was recently looking for a simple way to get some bandwidth statistics for websites that I host. Interested in historical data my only option was to look back over my webserver log files. My webserver of choice on linux systems is currently lighttpd. Here&#8217;s a quick shell script to get the bandwidth statistics out [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently looking for a simple way to get some bandwidth statistics for websites that I host. Interested in historical data my only option was to look back over my webserver log files.</p>
<p>My webserver of choice on linux systems is currently lighttpd. Here&#8217;s a quick shell script to get the bandwidth statistics out of the default lighttpd log files:</p>
<pre>#!/bin/bash
cat access.log | awk '{
month=substr($4,5,3)
year= substr($4,9,4)
timstamp=year" "month
bytes[timstamp] += $10
} END {
for (date in bytes)
printf("%s %20d MB\n", date, bytes[date]/(1024*1024))
}' | sort -k1n -k2M</pre>
<p>That will give you a table containing the stats based on the bytes sent for the body of the pages:</p>
<pre>2011 Jan                  662 MB
2011 Feb                12090 MB
2011 Mar                13645 MB
2011 Apr                12274 MB
2011 May                12279 MB
2011 Jun                 9551 MB</pre>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/extract-bandwidth-information-from-lighttpd-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automate backups of Netgear WNDAP330 &amp; WNDPA350</title>
		<link>http://davehope.co.uk/Blog/automate-backups-of-netgear-wndap330-wndpa350/</link>
		<comments>http://davehope.co.uk/Blog/automate-backups-of-netgear-wndap330-wndpa350/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 16:03:11 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=953</guid>
		<description><![CDATA[As part of my ongoing battle to backup all our network devices, I&#8217;ve cobbled together a batch script to backup Netgear&#8217;s ProSafe range of access points. Save the following as Backup.bat: @echo off REM ================================================================ REM CONFIGURATION INFO REM ================================================================ set CFGFILE=BackupList.txt set DESTDIR=C:\Backups\ set NET_USERNAME=admin set NET_PASSWORD=netgear REM ================================================================ REM STOP CHANGING HERE OR [...]]]></description>
			<content:encoded><![CDATA[<p>As part of my <a href="http://davehope.co.uk/Blog/automate-backups-of-netscreen-configuration/">ongoing</a> <a href="http://davehope.co.uk/Blog/automatic-backup-of-ip-office-configuation/">battle</a> to backup all our network devices, I&#8217;ve cobbled together a batch script to backup Netgear&#8217;s ProSafe range of access points. Save the following as <em>Backup.bat</em>:</p>
<pre>@echo off

REM ================================================================
REM CONFIGURATION INFO
REM ================================================================
set CFGFILE=BackupList.txt
set DESTDIR=C:\Backups\
set NET_USERNAME=admin
set NET_PASSWORD=netgear

REM ================================================================
REM STOP CHANGING HERE OR YOU'LL BREAK SOMETHING
REM ================================================================
SET TIMESTAMP=%date:~-4,4%.%date:~-7,2%.%date:~-10,2%
for /F "tokens=1,2 delims=," %%A in (%CFGFILE%) do (
	IF NOT EXIST "%DESTDIR%%TIMESTAMP%" mkdir "%DESTDIR%%TIMESTAMP%" > NUL
	echo %%B

	curl -s -c "%%A.cookie.txt" "http://%%B/login.php?username=%NET_USERNAME%&#038;password=%NET_PASSWORD%"
	curl -s -b "%%A.cookie.txt" "http://%%B/downloadFile.php?file=config" -o "%DESTDIR%%TIMESTAMP%\%%A.cfg"

	IF EXIST %%A.cookie.txt del %%A.cookie.txt
)</pre>
<p> In the same directory create a TXT file named <em>BackupList.txt</em>. Add access points to the file that should be backed up in <em>Name,ip address</em> format. A sample BackupList.txt file might look like:</p>
<pre>LON-CORE-WAP01,192.168.1.1
NY-CORE-WAP01,192.168.2.1</pre>
<p>You&#8217;ll also need to download the windows version of cURL<a href="http://curl.haxx.se/latest.cgi?curl=win32-nossl">a list of mirrors can be found here</a>. Place it in the same directory as the other two files.</p>
<p>Then run <em>Backup.bat</em> to backup all your Netgear ProSafe WNDAP access points.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/automate-backups-of-netgear-wndap330-wndpa350/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dell PowerConnect vulnerability</title>
		<link>http://davehope.co.uk/Blog/dell-powerconnect-vulnerability/</link>
		<comments>http://davehope.co.uk/Blog/dell-powerconnect-vulnerability/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 11:22:51 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[PowerConnect]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=907</guid>
		<description><![CDATA[Whilst trying to automate backups of our network device configuration I stumbled across a major disclosure vulnerability with Dell PowerConnect switches. Under the default configuration the running config if the switch can be downloaded without authenticating. Simply open a web browser and navigate to: http://switch management IP/filesystem/running-config I&#8217;ve tried writing back to the switches by [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst trying to automate backups of our network device configuration I stumbled across a major disclosure vulnerability with Dell PowerConnect switches. Under the default configuration the running config if the switch can be downloaded without authenticating. Simply open a web browser and navigate to:</p>
<p>http://<strong>switch management IP</strong>/filesystem/running-config</p>
<p><img class="aligncenter size-full wp-image-917" title="Dell Powerconnect Vulnerability" src="http://davehope.co.uk/wp-content/uploads/2011/06/PowerconnectVulnerability.png" alt="" width="445" height="310" /></p>
<p>I&#8217;ve tried writing back to the switches by posting data to /http_file_download.html with no success &#8211; Cookies are required for that. Still, with a copy of the encrypted root password it shouldn&#8217;t take long to get access with a good set of rainbow tables (<a href="http://cvk.posterous.com/how-to-crack-vxworks-password-hashes">See here for such a tool</a>).</p>
<p><strong>This is likely to effect most current Dell PowerConnect switches</strong> though I&#8217;ve only tested it on M6220 and 6248 switches running the latest firmware (3.1.3.9 blades / 3.2.1.3 on 6200).<br />
<span id="more-907"></span><br />
If you have vulnerable PowerConnect switches in your environment I&#8217;d urge you to use ACLs to restrict management to a particular IP range or disable HTTP management altogether from the global configuration context:</p>
<pre>console&gt;en

console#conf

console(config)#no ip http server

console(config)#ex

console#copy running-config startup-config

This operation may take a few minutes.
Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Configuration Saved!</pre>
<p>Dell are working on a fix.</p>
<h2>Update:</h2>
<ul>
<li>Older 2.x firmware versions on the 62xx series do not seem to be effected and just display a 404 page;</li>
<li>Vulnerability has been confirmed on 62xx series devices running both 3.2.0.7 and 3.2.1.9 firmware releases;</li>
<li>This does not effect the 54xx or 35xx series switches;</li>
<li>As of 9<sup>th</sup> June 2011, Dell have escalated the problem to Broadcom. A fix is estimated in 3-4 weeks.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/dell-powerconnect-vulnerability/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Automatic backup of IP Office configuation</title>
		<link>http://davehope.co.uk/Blog/automatic-backup-of-ip-office-configuation/</link>
		<comments>http://davehope.co.uk/Blog/automatic-backup-of-ip-office-configuation/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 15:45:21 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ArgentOffice]]></category>
		<category><![CDATA[Avaya]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[IPOffice]]></category>
		<category><![CDATA[Lucent]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=903</guid>
		<description><![CDATA[I&#8217;ve recently been looking at automating backups of network devices such as switches, access points and other devices. I recently knocked up a quick batch script to backup Avaya IPOffice phone systems (It&#8217;d probably work on the older Lucent ArgentOffice too). Save the following as Backup.bat: @echo off REM ================================================================ REM CONFIGURATION INFO REM ================================================================ [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been looking at automating backups of network devices such as switches, access points and other devices. I recently knocked up a quick batch script to backup Avaya IPOffice phone systems (It&#8217;d probably work on the older Lucent ArgentOffice too). Save the following as <em>Backup.bat</em>:</p>
<pre>@echo off

REM ================================================================
REM CONFIGURATION INFO
REM ================================================================
set CFGFILE=BackupList.txt
set DESTDIR=C:\Backups\

REM ================================================================
REM STOP CHANGING HERE OR YOU'LL BREAK SOMETHING
REM ================================================================
SET TIMESTAMP=%date:~-4,4%.%date:~-7,2%.%date:~-10,2%
for /F "tokens=1,2 delims=," %%A in (%CFGFILE%) do (
	IF NOT EXIST "%DESTDIR%%TIMESTAMP%" mkdir "%DESTDIR%%TIMESTAMP%" > NUL
	echo %%B
	tftp -i %%B GET config "%DESTDIR%%TIMESTAMP%\%%A.cfg" > NUL
)</pre>
<p> In the same directory create a TXT file named <em>BackupList.txt</em>. Add phone systems to the file that should be backed up in <em>Name,ip address</em> format. A sample BackupList.txt file might look like:</p>
<pre>London Phone System,192.168.1.1
New York phone System, 192.168.2.1</pre>
<p>You&#8217;ll also need to download the following <a href="http://www.tftp-server.com/tftp-client.html">free TFTP client from Tandom Systems Ltd</a>. Place it in the same directory as the other two files.</p>
<p>Then run <em>Backup.bat</em> to backup all your phone systems.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/automatic-backup-of-ip-office-configuation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find accounts without a thumbnail photo</title>
		<link>http://davehope.co.uk/Blog/find-accounts-without-a-thumbnail-photo/</link>
		<comments>http://davehope.co.uk/Blog/find-accounts-without-a-thumbnail-photo/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 15:17:15 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=899</guid>
		<description><![CDATA[Exchange 2010 introduces the thumbnailPhoto attribute for user accounts, allowing you to have photos of staff displayed in Outlook 2010 (or 2007 if you have the social connector installed). Here&#8217;s a quick powershell snippet to find accounts that don&#8217;t already have a photo set: Import-Module ActiveDirectory Get-ADUser -Filter * -SearchBase "OU=Staff,DC=nwtraders,DC=msft" -properties thumbnailPhoto &#124; ? [...]]]></description>
			<content:encoded><![CDATA[<p>Exchange 2010 introduces the thumbnailPhoto attribute for user accounts, allowing you to have photos of staff displayed in Outlook 2010 (or 2007 if you have the social connector installed).</p>
<p>Here&#8217;s a quick powershell snippet to find accounts that don&#8217;t already have a photo set:</p>
<p><code>Import-Module ActiveDirectory<br />
Get-ADUser -Filter * -SearchBase "OU=Staff,DC=nwtraders,DC=msft" -properties thumbnailPhoto | ? {!$_.thumbnailPhoto} | select Name</code></p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/find-accounts-without-a-thumbnail-photo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 2008 SSTP Configuration</title>
		<link>http://davehope.co.uk/Blog/sstp-vpn-server-setup/</link>
		<comments>http://davehope.co.uk/Blog/sstp-vpn-server-setup/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 17:38:00 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=886</guid>
		<description><![CDATA[A few weeks ago I was asked how to configure SSTP on a Windows 2008 RRAS server. Most of the MCP documents say that a certificate needs installing, but fail to mention what needs to be done. So I&#8217;ve written up the notes I sent, hopefully it&#8217;ll help someone out. The requirement for SSTP connectivity [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I was asked how to configure SSTP on a Windows 2008 RRAS server. Most of the MCP documents say that a certificate needs installing, but fail to mention what needs to be done. So I&#8217;ve written up the notes I sent, hopefully it&#8217;ll help someone out.</p>
<p>The requirement for SSTP connectivity are pretty basic:</p>
<ul>
<li>HTTPs (tcp/443) forwarded to your VPN server;</li>
<li>A certificate from a CA that both your clients and your server trust. It&#8217;s worth noting that most people wont be able to use self-signed certificates for SSTP as the client needs to perform a CRL check before connecting;</li>
<li>A windows 2008 or later VPN server</li>
</ul>
<p>Once you&#8217;ve decided on a hostname for your VPN server, which should take a minute or two on a good <a href="http://www.o2.co.uk/">o2</a> line as it&#8217;s just a straightforward purchase, register it in DNS and head off to GoDaddy or somewhere and get yourself an SSL certificate. The CSR should be generated using the &#8220;Certificates&#8221; MMC Snap-In. The CN of the certificate should be the hostname you chose earlier, such as vpn.nwtraders.com</p>
<p>We now need to see what certificates are currently in use for SSTP, on the RRAS server run &#8220;netsh http show ssl&#8221; to see the bindings.</p>
<pre>
C:\Windows\system32>netsh http show ssl

SSL Certificate bindings:
-------------------------

    IP:port                 : <span style="color:red">0.0.0.0:443</span>
    Certificate Hash        : efbaa640423127109869034676552a30fb8ca329
    Application ID          : <span style="color:red">{ba195980-cd49-458b-9e23-c84ee0adcd75}</span>
    Certificate Store Name  : MY
    Verify Client Certificate Revocation    : Enabled
    Verify Revocation Using Cached Client Certificate Only    : Disabled
    Usage Check    : Enabled
    Revocation Freshness Time : 0
    URL Retrieval Timeout   : 0
    Ctl Identifier          :
    Ctl Store Name          :
    DS Mapper Usage    : Disabled
    Negotiate Client Certificate    : Disabled

    IP:port                 : <span style="color:red">[::]:443</span>
    Certificate Hash        : efbaa640423127109869034676552a30fb8ca329
    Application ID          : <span style="color:red">{ba195980-cd49-458b-9e23-c84ee0adcd75}</span>
    Certificate Store Name  : MY
    Verify Client Certificate Revocation    : Enabled
    Verify Revocation Using Cached Client Certificate Only    : Disabled
    Usage Check    : Enabled
    Revocation Freshness Time : 0
    URL Retrieval Timeout   : 0
    Ctl Identifier          :
    Ctl Store Name          :
    DS Mapper Usage    : Disabled
    Negotiate Client Certificate    : Disabled
</pre>
<p>The important thing to note here is the &#8220;IP:port&#8221; and the &#8220;Application ID&#8221;.</p>
<p>We now need to delete the current SSL certificate bindings for both IPv4 and IPv6. To do this, use the IP:Port information from the last command output.</p>
<pre>
C:\Windows\system32>netsh http delete ssl <span style="color:red">0.0.0.0:443</span>

SSL Certificate successfully deleted

C:\Windows\system32>netsh http delete ssl <span style="color:red">[::]:443</span>

SSL Certificate successfully deleted</pre>
<p>Install your issued SSL certificate into the Computer certificate store and jot down the thumpbrint from the certificate details tab. Using the thumbprint, we now install the certificate using netsh and the application ID we started with. Make sure to use the same bindings used earlier.</p>
<pre>C:\>netsh http add sslcert ipport=<span style="color:red">0.0.0.0:443</span> certhash=<span style="color:red">740021b8b9a03b72e515c700ff17cb55b51cc239</span> appid=<span style="color:red">{ba195980-cd49-458b-9e23-c84ee0adcd75}</span> certstorename=MY

SSL Certificate successfully added

C:\>netsh http add sslcert ipport=<span style="color:red">[::]:443</span> certhash=<span style="color:red">740021b8b9a03b72e515c700ff17cb55b51cc239</span> appid=<span style="color:red">{ba195980-cd49-458b-9e23-c84ee0adcd75}</span> certstorename=MY

SSL Certificate successfully added</pre>
<p>Setup SSTP on the client and you should be good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/sstp-vpn-server-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A question to vendors: Why do you protect your licensing information?</title>
		<link>http://davehope.co.uk/Blog/why-do-you-protect-your-licensing-information/</link>
		<comments>http://davehope.co.uk/Blog/why-do-you-protect-your-licensing-information/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 10:13:24 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Product Key Finder]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=871</guid>
		<description><![CDATA[For the past 5 or so years I&#8217;ve been updating Product Key Finder in my free time. If you&#8217;re not already familiar with this simple utility, it&#8217;s a free application to recover license information from computers. Occasionally I come across a vendor who encrypts license information before storing it on a customers computer. If the [...]]]></description>
			<content:encoded><![CDATA[<p>For the past 5 or so years I&#8217;ve been updating <a href="http://davehope.co.uk/projects/product-key-finder/">Product Key Finder</a> in my free time. If you&#8217;re not already familiar with this simple utility, it&#8217;s a free application to recover license information from computers.</p>
<p>Occasionally I come across a vendor who encrypts license information before storing it on a customers computer. If the application allows you to display your license information that&#8217;s great. The problem is with vendors such as Adobe and Symantec who insist on  encrypting license information and provide no way for their paying customers to view it.</p>
<p>Adobe is particularly bad, they&#8217;ll show you all but the last 5 characters in their about dialog and encrypt the license key so it can&#8217;t be easily recovered. In some environments such as schools and corporates that makes sense, but for retail customers it just frustrates them.</p>
<p><img class="aligncenter size-full wp-image-883" title="Photoshop CS2 About Screen" src="http://davehope.co.uk/wp-content/uploads/2011/02/PhotoshopCS2.png" alt="Photoshop CS2 About Screen" width="666" height="415" /></p>
<p>I don&#8217;t mean to pick on just Adobe however, others are doing it too. Microsoft have got it almost right. For retail and OEM channel license keys they&#8217;re easily recoverable using known methods. In Windows Vista, license information for enterprises (MAK keys) is removed after activation.  They could have triggered &#8220;slmgr -cpky&#8221; to remove this information for retail customers too, but they elected not to. Kudos, Microsoft.</p>
<p>I get e-mails on an almost daily basis from your angry customers who have worked hard to pay for your software. So please, justify to them why you are doing this so I know what to tell them.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/why-do-you-protect-your-licensing-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

