Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

11,329

Downloads of v 1.41.0:

11,329

Last Update:

12 Jul 2022

Package Maintainer(s):

Software Author(s):

  • Twingate Inc.

Tags:

twingate zerotrust security vpn remoteaccess

Twingate (Connector)

  • 1
  • 2
  • 3

1.41.0 | Updated: 12 Jul 2022

Downloads:

11,329

Downloads of v 1.41.0:

11,329

Maintainer(s):

Software Author(s):

  • Twingate Inc.

Twingate (Connector) 1.41.0

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Twingate Inc. The inclusion of Twingate Inc. trademark(s), if any, upon this webpage is solely to identify Twingate Inc. goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Requires Windows 10 or newer

Details

Scan Testing Successful:

No detections found in any package files

Details
Package Approved

This package was approved by moderator TheCakeIsNaOH on 12 Jul 2022.

WARNING

This package is unlisted and hidden from package listings.

Description

Delivered as a cloud-based service, Twingate empowers IT teams to easily configure a software defined perimeter without changing infrastructure, and centrally manage user access to internal apps, whether they are on-prem or in the cloud.


tools\chocolateyinstall.ps1

$ErrorActionPreference = 'Stop';

if ((Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V).State -eq "Disabled") {
   Write-Output "Installing Hyper-V"
   Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
}

function Test-PendingReboot
{
  if (Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" -EA Ignore) { return $true }
  if (Get-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" -EA Ignore) { return $true }
  try { 
    $util = [wmiclass]"\\.\root\ccm\clientsdk:CCM_ClientUtilities"
    $status = $util.DetermineIfRebootPending()
    if(($status -ne $null) -and $status.RebootPending){
      return $true
    }
  }catch{}
 return $false
}


if ( Test-PendingReboot -eq $true ) {
  throw "System is pending reboot, please reboot and try install again."
}

$pp = Get-PackageParameters

if (!$pp['CONNECTOR_NAME']) { $pp['CONNECTOR_NAME'] = (Read-Host 'Connector name:').Trim() }
if (!$pp['CONNECTOR_NAME']) { $pp['CONNECTOR_NAME'] = 'twingate-connector' }

if (!$pp['TWINGATE_ACCESS_TOKEN']) { $pp['TWINGATE_ACCESS_TOKEN']   = [chocolatey.StringExtensions]::from_secure_string( (Read-Host 'Twingate Access Token:' -AsSecureString) ).Trim() }
if (!$pp['TWINGATE_REFRESH_TOKEN']) { $pp['TWINGATE_REFRESH_TOKEN'] = [chocolatey.StringExtensions]::from_secure_string( (Read-Host 'Twingate Refresh Token:' -AsSecureString) ).Trim() }
if (!$pp['TWINGATE_LOG_ANALYTICS']) { $pp['TWINGATE_LOG_ANALYTICS'] = 'v1' }
if (!$pp['TWINGATE_LABEL_HOSTNAME']) { $pp['TWINGATE_LABEL_HOSTNAME'] = $env:COMPUTERNAME }
if (!$pp['TWINGATE_URL']) { $pp['TWINGATE_URL'] = (Read-Host 'Twingate Account URL:').Trim() }
if ($pp['TWINGATE_URL'] -Match "\.") {
  if ( !($pp['TWINGATE_URL'] -Match "^((?!-))(xn--)?[a-z0-9][a-z0-9-_]{0,61}[a-z0-9]{0,1}\.(xn--)?([a-z0-9\-]{1,61}|[a-z0-9-]{1,30}\.[a-z]{2,})$") ) {
    throw "Twingate URL not valid"
  } 
}
else {
  $pp['TWINGATE_URL'] = "$($pp['TWINGATE_URL']).twingate.com"
}
@"
apt:
  sources:
    twingate:
      source: "deb [trusted=true] https://packages.twingate.com/apt/ /"
package_update: true
package_upgrade: true
packages:
 - twingate-connector
 - chrony
write_files:
 - content: |
     TWINGATE_URL=https://$($pp['TWINGATE_URL'])
     TWINGATE_ACCESS_TOKEN=$($pp['TWINGATE_ACCESS_TOKEN'])
     TWINGATE_REFRESH_TOKEN=$($pp['TWINGATE_REFRESH_TOKEN'])
     TWINGATE_LOG_ANALYTICS=$($pp['TWINGATE_LOG_ANALYTICS'])
     TWINGATE_LABEL_HOSTNAME=$($pp['TWINGATE_LABEL_HOSTNAME'])
     TWINGATE_LABEL_DEPLOYEDBY=Chocolatey
   path: /etc/twingate/connector.conf
runcmd:
  - [ systemctl, daemon-reload ]
  - [ systemctl, enable, twingate-connector.service ]
  - [ systemctl, start, --no-block, twingate-connector.service ]
"@ | Out-File "$($env:TEMP)\cloudinit.yaml" -Encoding UTF8 -Force


multipass launch -n "$($pp['CONNECTOR_NAME'])" --cloud-init "$($env:TEMP)\cloudinit.yaml" 22.04

$connectorRegKey = 'HKLM:\Software\Twingate\Connector'
if (!(Test-Path $connectorRegKey)) {
  New-Item -Path $connectorRegKey -Force | Out-Null
}
New-ItemProperty $connectorRegKey -Name 'CONNECTOR_NAME' -Value $pp['CONNECTOR_NAME'] -Force | Out-Null
New-ItemProperty $connectorRegKey -Name 'TWINGATE_URL' -Value $pp['TWINGATE_URL'] -Force | Out-Null

Remove-Item "$($env:TEMP)\cloudinit.yaml"

$old_path = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).path
$new_path = "$old_path;$($env:LOCALAPPDATA)\Multipass\bin"
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $new_path
tools\chocolateyUninstall.ps1
$connectorName = Get-ItemPropertyValue -Path 'HKLM:\Software\Twingate\Connector' -Name CONNECTOR_NAME

if ( ![string]::IsNullOrEmpty($connectorName)) {
  multipass delete --purge $connectorName
}

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status

Bug fixes - 1.41.0 - 2022-06-06

  • Resolved an issue where sessions would not be revoked immediately under certain circumstances.

  • Resolved an issue involving certain types of DNS responses.

  • Resolved an issue with analytics data reporting impacting relay metadata.

  • Resolved an issue with analytics data reporting impacting clients running in headless mode.

  • Resolved various minor bugs.

Discussion for the Twingate (Connector) Package

Ground Rules:

  • This discussion is only about Twingate (Connector) and the Twingate (Connector) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Twingate (Connector), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus