<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.dirteam.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The way I did it : Threat Management Gateway, Windows, Port</title><link>http://blogs.dirteam.com/blogs/chrispetit/archive/tags/Threat+Management+Gateway/Windows/Port/default.aspx</link><description>Tags: Threat Management Gateway, Windows, Port</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Backing up a Threat Management Gateway using Backup Exec</title><link>http://blogs.dirteam.com/blogs/chrispetit/archive/2012/07/26/backing-up-a-threat-management-gateway-using-backup-exec.aspx</link><pubDate>Thu, 26 Jul 2012 10:31:04 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:6156</guid><dc:creator>ChrisPetit</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/chrispetit/comments/6156.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/chrispetit/commentrss.aspx?PostID=6156</wfw:commentRss><description>&lt;p&gt;Everyone can have some trouble using &lt;strong&gt;Backup Exec&lt;/strong&gt; to backup their &lt;strong&gt;Threat Management Gateway 2010&lt;/strong&gt;. TMG uses a different range of dynamic ports from the standard Windows Server installations. &lt;/p&gt;  &lt;p&gt;Since Windows Vista the new default start port is 49152. The default end port is 65535. Earlier versions of Windows used 1025 through 5000. The new range gives you 16384 ports. You can Check this with the &lt;strong&gt;netsh&lt;/strong&gt; command.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font face="Courier New"&gt;netsh int ipv4 show dynamicport tcp &lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font face="Courier New"&gt;netsh int ipv4 show dynamicport udp &lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font face="Courier New"&gt;netsh int ipv6 show dynamicport tcp &lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font face="Courier New"&gt;netsh int ipv6 show dynamicport udp&lt;/font&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/chrispetit/image_62B9B0B7.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://blogs.dirteam.com/blogs/chrispetit/image_thumb_213EFE5E.png" width="503" height="255" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now when you execute the command on a machine running &lt;strong&gt;TMG 2010&lt;/strong&gt; you’ll probably find that the start port is 10000. This can cause problems with Backup Exec.&lt;/p&gt;  &lt;p&gt;Backup Exec’s remote Agent uses the &lt;a href="http://en.wikipedia.org/wiki/NDMP" target="_blank"&gt;Network Data Management Protocol&lt;/a&gt;. This necessary to create the backup data stream. The NDMP utilizes port 10000 . Normally this is not an issue. On a TMG however the dynamic range is changed and wininit.exe will seize the first of the Dynamic ports. There are two solutions to this problem. &lt;/p&gt;  &lt;h3&gt;you can change the port the backup agent uses&lt;/h3&gt;  &lt;p&gt;Open Notepad in administrator mode and open c:\windows\system32\drivers\etc\services&lt;/p&gt;  &lt;p&gt;add the following line to services&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;ndmp 9000/tcp #Network Data Management Protocol&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;font face="Arial"&gt;This will change the port to 9000. Don’t forget that you’ll have to do this on the media server as well, and thus on every server you want to back up. Sounds like fun when you have +100 server.&lt;/font&gt;&lt;/p&gt;  &lt;h3&gt;You can change the Dynamic Port Range on your Threat Management Gateway&lt;/h3&gt;  &lt;p&gt;On your TMG open an elevated command prompt and run the following command:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font face="Courier New"&gt;netsh int ipv4 set dynamicportrange tcp startport=10010 numberofports=30000&lt;/font&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Now reboot the &lt;strong&gt;TMG&lt;/strong&gt; server&lt;/p&gt;  &lt;p&gt;this will free up the first 10 ports of the dynamic range so that NDMP can make use of it. Reboot and make a test run. Beats reconfiguring +100 servers.&lt;/p&gt;  &lt;p&gt;You can verify after the reboot if everything went well. If you execute the following command&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;font face="Courier New"&gt;netstat -ao |find /i &amp;quot;listening&amp;quot;&lt;/font&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;This will give you a listing of the listening ports and the corresponding Process ID. You'll should find 0.0.0.0:10000 listened to by a process ID that should be the same ID as the Beremote.exe process as obtainable through the Windows Task Manager&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/chrispetit/image_3EA437E0.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://blogs.dirteam.com/blogs/chrispetit/image_thumb_45574163.png" width="529" height="56" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/chrispetit/image_76E2AEF8.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://blogs.dirteam.com/blogs/chrispetit/image_thumb_7D95B87B.png" width="395" height="142" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=6156" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/R2/default.aspx">R2</category><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/Server/default.aspx">Server</category><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/2008/default.aspx">2008</category><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/Windows/default.aspx">Windows</category><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/TMG/default.aspx">TMG</category><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/Dynamic/default.aspx">Dynamic</category><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/Port/default.aspx">Port</category><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/Backup+Exec/default.aspx">Backup Exec</category><category domain="http://blogs.dirteam.com/blogs/chrispetit/archive/tags/Threat+Management+Gateway/default.aspx">Threat Management Gateway</category></item></channel></rss>