<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PPTP &amp; Routing Interesting Traffic</title>
	<atom:link href="http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/</link>
	<description></description>
	<lastBuildDate>Sat, 06 Mar 2010 09:46:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mark</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-93</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 14 May 2009 18:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-93</guid>
		<description>@echo off
cls

;	REM vpn.bat
;	REM Mark Hudy
;	REM 5/14/2009
;	REM
;	REM This batch file connects a VPN by it&#039;s &quot;exact name&quot;, username and password
;	REM Queries the routing table for a network value (192.168.1) and writes the results to %temp%\routes.txt
;	REM Parses %temp%\routes.txt grabbing the value from the 3rd column in the top row only (pptp gateway)
;	REM and adds a route for the foreign network (1.2.3.4/24) using the pptp gateway.
;	REM The &#039;pause&#039; at the end allows the user/customer to view the results before the window closes
;	REM and assumes you have created a shortcut pointing to the batch file.

echo.
echo -------------------------------
echo VPN Status:
rasdial
echo -------------------------------

:start
echo.
echo [1] Sample VPN Connect
echo [2] Sample VPN Disconnect
echo [3] Do Neither and Cancel
echo.
set /p userinp=choose a number(1-3):
set userinp=%userinp:~0,1%
if &quot;%userinp%&quot;==&quot;1&quot; goto 1
if &quot;%userinp%&quot;==&quot;2&quot; goto 2
if &quot;%userinp%&quot;==&quot;3&quot; goto close
echo invalid choice
goto start

:1
rasdial &quot;Sample VPN Connection&quot; SomeUsername SomePassword &gt;NUL
route print &#124;find &quot;192.168.1&quot; &gt;%temp%\routes.txt
@for /f &quot;tokens=3&quot; %%i in (&#039;type %temp%\routes.txt&#039;) do @set pptpGateway=%%i &amp; goto :StopParsing

:StopParsing
route add 1.2.3.4 mask 255.255.255.0 %pptpGateway% &gt;NUL
echo Sample VPN Connection is now connected.
goto :end

:2
rasdial &quot;Sample VPN Connection&quot; /disconnect &gt;NUL
echo Sample VPN Connection is now disconnected.

:end
echo.
pause

:close</description>
		<content:encoded><![CDATA[<p>@echo off<br />
cls</p>
<p>;	REM vpn.bat<br />
;	REM Mark Hudy<br />
;	REM 5/14/2009<br />
;	REM<br />
;	REM This batch file connects a VPN by it&#8217;s &#8220;exact name&#8221;, username and password<br />
;	REM Queries the routing table for a network value (192.168.1) and writes the results to %temp%\routes.txt<br />
;	REM Parses %temp%\routes.txt grabbing the value from the 3rd column in the top row only (pptp gateway)<br />
;	REM and adds a route for the foreign network (1.2.3.4/24) using the pptp gateway.<br />
;	REM The &#8216;pause&#8217; at the end allows the user/customer to view the results before the window closes<br />
;	REM and assumes you have created a shortcut pointing to the batch file.</p>
<p>echo.<br />
echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
echo VPN Status:<br />
rasdial<br />
echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>:start<br />
echo.<br />
echo [1] Sample VPN Connect<br />
echo [2] Sample VPN Disconnect<br />
echo [3] Do Neither and Cancel<br />
echo.<br />
set /p userinp=choose a number(1-3):<br />
set userinp=%userinp:~0,1%<br />
if &#8220;%userinp%&#8221;==&#8221;1&#8243; goto 1<br />
if &#8220;%userinp%&#8221;==&#8221;2&#8243; goto 2<br />
if &#8220;%userinp%&#8221;==&#8221;3&#8243; goto close<br />
echo invalid choice<br />
goto start</p>
<p>:1<br />
rasdial &#8220;Sample VPN Connection&#8221; SomeUsername SomePassword &gt;NUL<br />
route print |find &#8220;192.168.1&#8243; &gt;%temp%\routes.txt<br />
@for /f &#8220;tokens=3&#8243; %%i in (&#8216;type %temp%\routes.txt&#8217;) do @set pptpGateway=%%i &amp; goto :StopParsing</p>
<p>:StopParsing<br />
route add 1.2.3.4 mask 255.255.255.0 %pptpGateway% &gt;NUL<br />
echo Sample VPN Connection is now connected.<br />
goto :end</p>
<p>:2<br />
rasdial &#8220;Sample VPN Connection&#8221; /disconnect &gt;NUL<br />
echo Sample VPN Connection is now disconnected.</p>
<p>:end<br />
echo.<br />
pause</p>
<p>:close</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-82</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sun, 29 Mar 2009 21:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-82</guid>
		<description>JJ: The funny part is that PIX version 7.0 doesn&#039;t support PPTP.  So there&#039;s really no point discussing this, correct? :)</description>
		<content:encoded><![CDATA[<p>JJ: The funny part is that PIX version 7.0 doesn&#8217;t support PPTP.  So there&#8217;s really no point discussing this, correct? <img src='http://www.joshcook.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ID</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-66</link>
		<dc:creator>ID</dc:creator>
		<pubDate>Thu, 19 Feb 2009 03:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-66</guid>
		<description>We were using a similar script a while back, but IPsec really is a better protocol. I can see your point though, IPsec on windows is a can of worms, unlike on *nix where it takes 5 mins to setup.</description>
		<content:encoded><![CDATA[<p>We were using a similar script a while back, but IPsec really is a better protocol. I can see your point though, IPsec on windows is a can of worms, unlike on *nix where it takes 5 mins to setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernie</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-39</link>
		<dc:creator>Bernie</dc:creator>
		<pubDate>Mon, 05 Jan 2009 20:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-39</guid>
		<description>Thanks for the script. I was experiencing the same problem with a PPTP connection and the script just helped me to avoid adding a route every time I connect to the VPN so I don&#039;t loose my Internet connection.</description>
		<content:encoded><![CDATA[<p>Thanks for the script. I was experiencing the same problem with a PPTP connection and the script just helped me to avoid adding a route every time I connect to the VPN so I don&#8217;t loose my Internet connection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JJ</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-38</link>
		<dc:creator>JJ</dc:creator>
		<pubDate>Sat, 03 Jan 2009 20:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-38</guid>
		<description>See: 
http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00804675ac.shtml#intro


PIX version 7.0 improves support for spoke-to-spoke VPN communications as it provides the ability for encrypted traffic to enter and leave the same interface.

The same-security-traffic command permits traffic to enter and exit the same interface...</description>
		<content:encoded><![CDATA[<p>See:<br />
<a href="http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00804675ac.shtml#intro" rel="nofollow">http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00804675ac.shtml#intro</a></p>
<p>PIX version 7.0 improves support for spoke-to-spoke VPN communications as it provides the ability for encrypted traffic to enter and leave the same interface.</p>
<p>The same-security-traffic command permits traffic to enter and exit the same interface&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-37</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sat, 03 Jan 2009 19:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-37</guid>
		<description>JJ: I was referring to the fact the PIX won&#039;t route.  As far as entering and leaving the same interface, isn&#039;t this exactly how VPN works???</description>
		<content:encoded><![CDATA[<p>JJ: I was referring to the fact the PIX won&#8217;t route.  As far as entering and leaving the same interface, isn&#8217;t this exactly how VPN works???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JJ</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-34</link>
		<dc:creator>JJ</dc:creator>
		<pubDate>Mon, 22 Dec 2008 17:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-34</guid>
		<description>&quot;internet access failed because the PIX won’t/can’t redirect traffic that isn’t on it’s local network&quot;

Not true.  The PIX will not allow traffic to enter and leave the same interface regardless of network location (security &quot;feature&quot;).  Hence why it won&#039;t route packets on its inside interface (Router on a stick kind of implementation).  

The ASA will in fact do this though.</description>
		<content:encoded><![CDATA[<p>&#8220;internet access failed because the PIX won’t/can’t redirect traffic that isn’t on it’s local network&#8221;</p>
<p>Not true.  The PIX will not allow traffic to enter and leave the same interface regardless of network location (security &#8220;feature&#8221;).  Hence why it won&#8217;t route packets on its inside interface (Router on a stick kind of implementation).  </p>
<p>The ASA will in fact do this though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-32</link>
		<dc:creator>Walter</dc:creator>
		<pubDate>Thu, 06 Nov 2008 05:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-32</guid>
		<description>Actually, quite frankly, the commentary is more interesting messages themselves. (Not to insult the author, of course:))</description>
		<content:encoded><![CDATA[<p>Actually, quite frankly, the commentary is more interesting messages themselves. (Not to insult the author, of course:))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://www.joshcook.net/2008/07/pptp-routing-interesting-traffic/comment-page-1/#comment-26</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Wed, 03 Sep 2008 20:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshcook.net/?p=34#comment-26</guid>
		<description>I was experiencing this problem as well.

Would be wonderful if we could pass information like this to the client as part of establishing the VPN connect, you know, configure it server side.

Thanks for the script!</description>
		<content:encoded><![CDATA[<p>I was experiencing this problem as well.</p>
<p>Would be wonderful if we could pass information like this to the client as part of establishing the VPN connect, you know, configure it server side.</p>
<p>Thanks for the script!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
