tag:help.appveyor.com,2012-11-13:/discussions/questions/730-deploying-to-agents-on-machines-behind-a-vpnAppVeyor: Discussion 2018-10-19T08:16:52Ztag:help.appveyor.com,2012-11-13:Comment/353899582014-11-26T08:12:12Z2014-11-26T08:12:12ZDeploying to Agents on machines behind a VPN?<div><p>Hi Sebastian,</p>
<p>Absolutely, AppVeyor Agent works in "listening" mode and require
only outbound internet connection to <a href=
"https://ci.appveyor.com">https://ci.appveyor.com</a>. You don't
have to configure any inbound ports on your firewall or setup VPN
in order to use AppVeyor Deployment Agent.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/353899582014-11-26T17:07:31Z2015-03-31T05:39:34ZDeploying to Agents on machines behind a VPN?<div><p>So do I understand correctly that the Agent polls
ci.appveyor.com? Out of curiosity, how often does the agent poll
the server? Is there anywhere I can go to get more technical
details on how the Agent works?</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582014-11-26T18:27:08Z2014-11-26T18:27:08ZDeploying to Agents on machines behind a VPN?<div><p>Well, it's not polling, but Web Sockets, SignalR more
specifically. It's constantly connected to the cloud.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/353899582014-11-26T19:44:57Z2015-03-31T05:39:35ZDeploying to Agents on machines behind a VPN?<div><p>Oh wow, fancy. Okay, cool - thanks :)</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582014-12-11T20:09:30Z2015-03-31T05:39:35ZDeploying to Agents on machines behind a VPN?<div><p>Hi Feodor,</p>
<p>Sorry to open a closed topic again, but I just thought of a
different scenario that normally requires a VPN connection for
deployment. In the case that a project isn't publicly exposed over
the internet, i.e. an intranet only available through a VPN, the
HTTP port is closed to web... is there any solution for this
scenario?</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582014-12-11T20:24:09Z2014-12-11T20:24:09ZDeploying to Agents on machines behind a VPN?<div><p>Does that intranet environment have outbound connection to the
internet?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/353899582014-12-11T21:16:30Z2015-03-31T05:39:35ZDeploying to Agents on machines behind a VPN?<div><p>No its completely internal I'm afraid. It's actually fairly
common for us<br>
in some corporate projects.</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582014-12-11T21:39:47Z2014-12-11T21:40:26ZDeploying to Agents on machines behind a VPN?<div><p>Then I guess you should run VPN client on build worker to access
your network and this VPN client must be scriptable.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/353899582014-12-12T02:20:33Z2015-03-31T05:39:35ZDeploying to Agents on machines behind a VPN?<div><p>Is this something I'd have to script an install for in every
build then,<br>
since build workers are transient?<br>
Or is these are any way I can save a build worker image with the
clients<br>
pre-installed?</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582014-12-12T02:24:28Z2015-03-31T05:39:35ZDeploying to Agents on machines behind a VPN?<div><p>Hi, would you be able to remove my signature from my previous
comment?</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582014-12-12T02:32:37Z2014-12-12T02:32:37ZDeploying to Agents on machines behind a VPN?<div><p>It depends on few factors:</p>
<ol>
<li>
<p>If it's easier to script and adds few minutes overhead to the
build then I think it's OK to be part of every build.</p>
</li>
<li>
<p>If it's hard to script or takes long to install, <em>but</em>
the software is pretty standard we could install it to build worker
image.</p>
</li>
</ol></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/353899582015-05-13T20:30:44Z2015-05-13T20:30:44ZDeploying to Agents on machines behind a VPN?<div><p>Hi Feodor,</p>
<p>Jumping back onto this issue, I've been playing with getting
Cisco VPN Client working on these workers. So far, I've developed a
chocolatey package that installs the client from MSI, which seems
to work ok - but it takes a while to install.</p>
<p>In the interest of keeping builds speedy, what are the odds that
the 64-bit Cisco VPN Client v5.0.07.0440 (which is the only version
I know of that works with Server 2012) could be installed on the
build images?</p>
<p>I believe there are some licensing arrangements around this VPN
client. Not sure how AppVeyor handles that? Could it be an 'if you
use it, you declare to have licensed it' kind of arrangement?</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582015-05-14T01:13:06Z2015-05-14T01:13:06ZDeploying to Agents on machines behind a VPN?<div><p>Well, if you are installing with Agent it's actually executed
from AppVeyor Azure workers (not build workers) which you don't
have access to.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/353899582015-05-17T14:57:39Z2015-05-17T14:57:39ZDeploying to Agents on machines behind a VPN?<div><p>Hi, actually I'm talking about installing the Cisco VPN client
on the build worker itself, so that it can deploy to a host behind
VPN... It's IIS6 so the Appveyor agent isn't compatible and we have
to use msdeploy etc..</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582015-05-18T17:11:42Z2015-05-18T17:11:42ZDeploying to Agents on machines behind a VPN?<div><p>Seems like these clients are really specific for your own
application. Check if they can be deployed with XCOPY - that could
be much faster.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/353899582015-05-30T12:40:04Z2015-05-30T12:40:04ZDeploying to Agents on machines behind a VPN?<div><p>Hi Feodor,</p>
<p>Sorry for the late reply with this, am back on the case
again.</p>
<p>If your brain's still in the headspace, can you elaborate on
what you had in mind using XCOPY? I don't quite follow you...</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582015-05-31T21:40:16Z2015-05-31T21:40:16ZDeploying to Agents on machines behind a VPN?<div><p>Yeah, I mean if the client could be deployed by simply unzipping
its files during the build, without running MSI or EXE.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/353899582015-06-01T05:55:52Z2015-06-01T05:55:52ZDeploying to Agents on machines behind a VPN?<div><p>Ah, yeah I don't think that's possible because the installer has
to set up<br>
a new network adapter etc.</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/353899582015-06-01T05:57:56Z2015-06-01T05:57:56ZDeploying to Agents on machines behind a VPN?<div><p>Time heals all wounds, apparently... The server's being upgraded
so this<br>
won't be a requirement in a few weeks time! Thanks for your
attention on<br>
this matter :) It was a good exercise in playing with chocolatey
packages<br>
at least!</p></div>sebastian