<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.sophos.com/cfs-file/__key/system/syndication/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>Sophos Deployment Packager - stripping port numbers</title><link>https://community.sophos.com/on-premise-endpoint/f/sophos-endpoint-software/76853/sophos-deployment-packager---stripping-port-numbers</link><description>Greetings, 
 I&amp;#39;m trying to build a stand-alone installer but the Sophos Deployment Manager does not like that I want to use a non-standard port in my Primary Update Location. 
 
 Regardless of if I enter our primary update location this way: 
 http:/</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Sophos Deployment Packager - stripping port numbers</title><link>https://community.sophos.com/thread/369303?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 20:44:12 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:66b50c11-ff51-4936-a3fc-1869bd792107</guid><dc:creator>jdobiash</dc:creator><description>&lt;p&gt;I know this is an old thread but I wanted to comment that your post allowed me to found a solution as I was also having the same problem with it removing the Port Number in an HTTP URL.&amp;nbsp;&amp;nbsp;&amp;nbsp; The ConfigUpdate.exe command works properly if there&amp;nbsp;is an extra : at the beginning, so :hxxp://mywebsite:8085/RestofURL&amp;nbsp;(changed so it won&amp;#39;t convert to URL)&lt;/p&gt;
&lt;p&gt;Of course, the Deployment Packager doesn&amp;#39;t like it, so I had to package it without the : and then add it to the setup.vbs script with 7-Zip File Manager.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sophos Deployment Packager - stripping port numbers</title><link>https://community.sophos.com/thread/295384?ContentTypeID=1</link><pubDate>Tue, 03 May 2016 09:01:59 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:e84a4d21-0464-4c41-9734-9fec576e8163</guid><dc:creator>QC</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;quiiite odd, quiiite odd.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&lt;em&gt;I see the port number is dropped&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;I did &lt;strong&gt;not&lt;/strong&gt; see this at first. It looks like &lt;span style="font-family:courier new,courier;"&gt;ConfigUpdate.exe&lt;/span&gt; passes the &lt;em&gt;path&lt;/em&gt; (i.e. the first argument) either unmodified if it starts with &lt;strong&gt;&lt;span style="font-family:courier new,courier;"&gt;\\&lt;/span&gt;&lt;/strong&gt;, otherwise as &amp;quot;sanitized&amp;quot; &lt;span style="font-family:courier new,courier;"&gt;http:&lt;/span&gt; URL (scanning from the left up to the first &lt;strong&gt;&lt;span style="font-family:courier new,courier;"&gt;/&lt;/span&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;span style="font-family:courier new,courier;"&gt;\&lt;/span&gt;&lt;/strong&gt;, if the preceding character is a &lt;strong&gt;&lt;span style="font-family:courier new,courier;"&gt;:&lt;/span&gt;&lt;/strong&gt; the first token is apparently considered a scheme and replaced with &lt;span style="font-family:courier new,courier;"&gt;http:&lt;/span&gt;, and the remaining string is appended unmodified; if it&amp;#39;s not a &lt;span style="font-family:courier new,courier;"&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/span&gt; &lt;span style="font-family:courier new,courier;"&gt;http:&lt;/span&gt; is prepended to the unmodified string).&lt;br /&gt;The weird observation is that &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;sometimes&lt;/em&gt; &lt;/span&gt;(couldn&amp;#39;t detect a pattern but could reproduce it on two endpoints) &lt;span style="font-family:courier new,courier;"&gt;iconn.cfg&lt;/span&gt; contains an additional&amp;nbsp;&lt;span style="font-family:courier new,courier;"&gt;PortNumber =&lt;/span&gt;&amp;nbsp; configuration item set to the port in the &lt;em&gt;path&lt;/em&gt; argument. In this case there&amp;#39;s no port in the URL and AutoUpdate seems to ignore &lt;span style="font-family:courier new,courier;"&gt;Portnumber&lt;/span&gt; (the port can be seen neither in the local GUI nor on the console). In other cases there&amp;#39;s no &lt;span style="font-family:courier new,courier;"&gt;Portnumber =&lt;/span&gt;, the URL contains the port (visible in the GUI and SEC) and AutoUpdate indeed tries to connect to this port. &lt;/p&gt;
&lt;p&gt;It&amp;#39;s not the packager, the rest is murky [:)]&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sophos Deployment Packager - stripping port numbers</title><link>https://community.sophos.com/thread/295305?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 17:26:40 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:d647bc23-c701-4c90-9cd6-da9bfa72b14c</guid><dc:creator>jak</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve taken a quick look and the SFX that is generated as this can be unpacked (WinRar will do) to review the script, setup.vbs. &amp;nbsp;You can see that this calls an application called ConfigureUpdate.exe, for example:&lt;br /&gt;&lt;br /&gt;ConfigUpdate.exe &amp;quot;&lt;a href="http://1.com:8080/sophosupdate/"&gt;1.com:8080/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you run this, then check the configuration of AutoUpdate, I see the port number is dropped so I would think the issues likes with ConfigureUpdate not supporting custom ports.&lt;/p&gt;
&lt;p&gt;TBH, I would consider not using the Deployment Packager. &amp;nbsp;Instead, take a copy of your CID and create a SFX with something like WinRAR. &amp;nbsp;You can pass any switches you need to setup.exe in the root of the CID as per:&amp;nbsp;&lt;a href="https://www.sophos.com/en-us/support/knowledgebase/12570.aspx"&gt;https://www.sophos.com/en-us/support/knowledgebase/12570.aspx&lt;/a&gt;. &amp;nbsp;You can use the command line tools to obfuscate the password.&lt;/p&gt;
&lt;p&gt;That said, the easiest route I find to getting an install command is to protect a computer from SEC which is configured as you would want, i.e. update locations, usernames, passwords, etc.. Then watch the scheduled tasks on the remote computer, you can then copy the details of the scheduled task to form the basis of the command and then add the additional switches, e.g. -mng no.&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jak&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>