<?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 &#187; Routing</title>
	<atom:link href="http://davehope.co.uk/Blog/tag/routing/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>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>Juniper SSG140 PPTP Routing</title>
		<link>http://davehope.co.uk/Blog/juniper-ssg140-pptp-routing/</link>
		<comments>http://davehope.co.uk/Blog/juniper-ssg140-pptp-routing/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 07:05:00 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Netscreen]]></category>
		<category><![CDATA[PPTP]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[SSG140]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=77</guid>
		<description><![CDATA[At work I&#8217;ve just replaced a custom Linux box I&#8217;ve been running as our firewall and proxy with a Juniper Netscreen SSG140. I had a few problems forwarding PPTP traffic so thought I&#8217;d document the problems I came across and the solutions. PPTP Forwarding Firstly, I was having problems even forwarding the PPTP traffic. I&#8217;d [...]]]></description>
			<content:encoded><![CDATA[<p>At work I&#8217;ve just replaced a custom Linux box I&#8217;ve been running as our firewall and proxy with a Juniper Netscreen SSG140. I had a few problems forwarding PPTP traffic so thought I&#8217;d document the problems I came across and the solutions.</p>
<h3>PPTP Forwarding</h3>
<p>Firstly, I was having problems even forwarding the PPTP traffic. I&#8217;d initially setup a VIP on the external interface forwarding a custom PPTP service :</p>
<pre>IP (47) src port: 2048-2048, dst port: 2048-2048
TCP src port: 0-65535, dst port: 1723-1723</pre>
<p>I&#8217;d then setup a Policy to allow the relevant traffic through. Alas, no such luck. Ditching the VIP and having a fixed IP for VPN traffic seemed to work. To put it simply, use MIP rather than VIP.</p>
<h3>Routing PPTP traffic for site to site links</h3>
<p>The second problem was a little weird. At the moment we use MS-RAS for site to site links, I&#8217;d created a route on the Netscreen which was working, but connections would drop after a very short period of time (say 20 seconds). The routing was as follows (outbound shown in green, reutn shown in red).</p>
<p><img class="size-full wp-image-79" title="PPTP routing on SSG140" src="http://davehope.co.uk/wp-content/uploads/2008/07/pptp1.png" alt="Routing problem on SSG140" width="489" height="290" /></p>
<p>Thankfully the solution wasn&#8217;t too messy. Since the Netscreen was missing the return traffic it was dropping the connections. The solution is to log into the Netscreen via telnet and issue the following command:</p>
<pre>unset flow tcp-syn-check</pre>
<p>As if by magic, everything now works.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/juniper-ssg140-pptp-routing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

