Mozilla VPN Connect

Interact with the Mozilla VPN from Raycast.
NW
Nate Whistler
71 Installs
Overview

Mozilla VPN Connect

Interact with the Mozilla VPN client from Raycast without even opening the Mozilla client.

What does it do?

  • It checks that the application is installed and prompts you to download and install if it is not.
  • It checks if you are logged in and opens the app if you are not logged in.
  • It connects using the Mozilla VPN client to the Mozilla VPN service.
  • It displays the current server the Mozilla VPN client is configured for.
  • It fetches the current external IP and geolocates the IP's Country and city. It then refreshes when it connects to the VPN.
  • It allows you to change the server from the UI. You select a Country and city if available and if there are multiple VPN servers, it will randomly choose one to connect to.

Requirements

  • Must have a Mozilla VPN account
  • Must have the Mozilla VPN client downloaded and configured.

CLI commands used for Mozilla Client

Client Connect /Applications/Mozilla\ VPN.app/Contents/MacOS/Mozilla\ VPN activate

Client Disconnect /Applications/Mozilla\ VPN.app/Contents/MacOS/Mozilla\ VPN deactivate

Status /Applications/Mozilla\ VPN.app/Contents/MacOS/Mozilla\ VPN status

List all the servers /Applications/Mozilla\ VPN.app/Contents/MacOS/Mozilla\ VPN servers

Select a server, must be the actual server name and not the city /Applications/Mozilla\ VPN.app/Contents/MacOS/Mozilla\ VPN select

Status shows if the client is connected or not, and the server city and country it is configured for. There are other details here like all devices configured for the service.

APIs used for gathering IP data

https://api.ipify.org For displaying the current IP address.

http://ip-api.com For displaying the geolocation of the IP address.