VPN access
Setup instructions

Windows

  1. On your Windows laptop, open PowerShell as administrator: press Start, type PowerShell, right-click Windows PowerShell, choose Run as administrator, and accept the prompt.
  2. Paste this line and press Enter. It downloads the enrolment script from the HS VPN page and runs it:
    irm https://home.hsinc.ai/client/Enroll-HsVpn.ps1 -OutFile $env:TEMP\Enroll-HsVpn.ps1; powershell -ExecutionPolicy Bypass -File $env:TEMP\Enroll-HsVpn.ps1 -Device laptop -Store Machine -ConfigureVpn

    Use another short name instead of laptop for a second device, e.g. desktop.

  3. A browser opens https://home.hsinc.ai. Choose Sign in with hsinc.ai and sign in with your hsinc.ai account.
  4. The page shows Your enrolment code. Choose Copy code, go back to PowerShell, paste it and press Enter. The code works once, for 10 minutes; reload the page for a new one.
  5. The script says Installed <you>-laptop for computer <your PC name> and that HS VPN now logs in with it. If Windows asks whether to trust HS VPN Client CA, choose Yes.
  6. Connect from Settings > Network & internet > VPN > HS VPN > Connect. It does not ask for a password.

If the script says your PC's name can't be used (an underscore or a space, e.g. Abri_Lenovo), rename the PC with letters, digits and hyphens only, restart, and run the command again.

Mac with the script

  1. Open Terminal (press Command and Space, type Terminal, press Return).
  2. Paste this line and press Return:
    curl -fsSL https://home.hsinc.ai/client/enroll-hsvpn-mac.sh -o /tmp/enroll-hsvpn-mac.sh && bash /tmp/enroll-hsvpn-mac.sh

    The certificate is named <you>-mac; add --device <name> (lowercase letters and digits) for another name.

  3. A browser opens https://home.hsinc.ai. Sign in with your hsinc.ai account, choose Copy code, paste it into Terminal and press Return.
  4. macOS says Profile downloaded. Open System Settings > Privacy & Security > Profiles (macOS 15 and later: System Settings > General > Device Management), choose HS VPN, then Install, and enter your Mac password. macOS calls it unverified because the profile isn't signed; that is expected. Approve it within 8 minutes, then press Return in Terminal. The script then deletes its copy of the profile.
  5. Connect from System Settings > VPN > HS VPN. It does not ask for a password.

If the script says your Mac's name can't be used, it prints the fix, e.g. sudo scutil --set LocalHostName Istvans-MacBook-Pro (or System Settings > General > Sharing > Local hostname > Edit). Then run the command again.

What it does. The script makes an RSA key on your Mac that never leaves it, and sends only a certificate request with your Mac's local hostname. It packs the certificate and key into a profile, locked with a random passphrase that is written into the profile so macOS installs it without asking, and deletes that file once you have approved it.

Renewing. The certificate lasts 30 days: run the same command again before then. The new profile replaces the old.

Removing. bash /tmp/enroll-hsvpn-mac.sh --uninstall (download it again first if it's gone), or System Settings > Privacy & Security > Profiles > HS VPN > the minus button. Either removes the certificate and the VPN together.

Mac without the install step

Your key has to be made on your Mac, so the enrolment page can't hand you a finished profile. The script can make the profile and stop, so you install it yourself:

  1. In Terminal, run:
    curl -fsSL https://home.hsinc.ai/client/enroll-hsvpn-mac.sh -o /tmp/enroll-hsvpn-mac.sh && bash /tmp/enroll-hsvpn-mac.sh --dry-run --out ~/HS-VPN.mobileconfig
  2. Sign in at https://home.hsinc.ai when it asks, and paste the code. It writes HS-VPN.mobileconfig in your home folder and installs nothing.
  3. Double-click that file. macOS says Profile downloaded.
  4. Open System Settings > Privacy & Security > Profiles (macOS 15 and later: General > Device Management), choose HS VPN, then Install, and enter your Mac password.
  5. Delete HS-VPN.mobileconfig and empty the Bin: it holds your key and the passphrase that opens it.
  6. Check System Settings > VPN shows HS VPN, and switch it on to connect.

Mac settings for a hand-made IKEv2 connection

If you import your certificate some other way, these are the values the profile uses.

SettingValue
TypeIKEv2
Serverhome.hsinc.ai (always the name, never an IP address)
Remote IDhome.hsinc.ai
Local IDyour Mac's local hostname, which is the name in your certificate (scutil --get LocalHostName)
AuthenticationCertificate: your <you>-<device> identity from HS VPN Client CA; no username or password
IKE proposalAES-256, SHA2-256, Diffie-Hellman group 14, lifetime 480 minutes (the server also accepts AES-256/SHA2-384, AES-128/SHA2-256 and groups 19 and 20)
Child SAAES-256, SHA2-256, lifetime 480 minutes, no PFS
Dead peer detectionon (medium)
DNS192.168.170.2, 192.168.171.2; search and match domain hls.local
Routesonly the estate, 192.168.0.0/16; your internet traffic stays on your own connection

iPhone and iPad can use the same kind of profile later; there is no script for them yet.

Checking it works

  • Mac: scutil --nc list shows HS VPN as Connected; Windows: Settings > VPN shows Connected. You get an address 172.16.129.x.
  • dscacheutil -q host -a name couchdb.hls.local (Mac) or Resolve-DnsName couchdb.hls.local (Windows) returns an estate address.
  • curl -k https://console.hls.local answers, and normal websites still work from your own connection.

If something goes wrong, send Zane the time and the exact message; the enrolment service records every attempt.