Set Up a VPN on elementary OS for Secure Browsing
A VPN creates an encrypted tunnel between your computer and a server operated by a VPN provider. When that tunnel is active, internet traffic travels inside the protected connection, which is useful on home broadband, university Wi-Fi, café hotspots and mobile data. Setting up a VPN connection on elementary OS for secure browsing becomes straightforward once you have a suitable service and the configuration details it provides.
For Australians, a VPN is particularly handy when connecting away from a trusted home network in Sydney, Melbourne, Brisbane or another capital city. It can reduce exposure on shared Wi-Fi, although it does not make an untrusted hotspot safe by itself and does not replace HTTPS. Local server locations, connection speed and the provider’s data practices matter as much as the protocol used.
This guide uses elementary OS’s NetworkManager integration to cover OpenVPN and WireGuard, the two common choices offered by consumer VPN providers. It also explains how to verify the tunnel, avoid DNS leaks, and handle common connection failures. The aim is a working, system-wide setup with a clear understanding of what the service protects.
Choose a VPN service that fits your needs
Choose the service before touching system settings. Look for clear information about traffic logs, DNS handling, session logs, simultaneous connections, available protocols and independent security audits. A useful account dashboard, responsive support and servers near Australia are more valuable than an enormous server list. Free services carry an obvious risk: if the service is free, the provider may derive revenue from advertising, data collection or software distribution. The service should also state which platforms it supports, whether it provides manual configurations and what its refund policy is. Avoid providers that use vague terms or make guarantees a VPN cannot credibly provide.
Australia’s consumer broadband market is strongly shaped by Telstra, Optus and Vodafone. A VPN option bundled with a domestic router may be limited, and some router interfaces expose only basic OpenVPN features that are difficult to maintain. A separate client on elementary OS usually provides better protocol choice, clearer status information and easier troubleshooting than trying to route every household device through a consumer router.
For an Australian provider, check whether the Privacy Act 1988 and Australian Privacy Principles apply to its handling of personal information. Coverage depends on the provider’s activities and location, so an overseas service may operate under a different regime. Read the privacy policy and logging description rather than relying on a marketing phrase such as “no logs.” Australian agencies also have lawful-access powers under the Telecommunications (Interception and Access) Act 1979, so a commercial VPN should never be treated as a guarantee of anonymity. Commercial VPN use is lawful in Australia, but it does not remove obligations under workplace policies or make prohibited conduct lawful.
Prepare elementary OS before connecting
Keep the operating system current before installing anything. Open Update Manager, install security updates and reboot if requested. A current system reduces the chance that certificate stores, keyring components or NetworkManager behave unexpectedly. If free space is limited, the site’s disk usage analyzer guide explains how to review storage and remove unnecessary files before changing packages. Check available space on the system partition as well, because a stalled update or package installation can leave a working VPN unable to launch after a reboot.
NetworkManager is normally present on elementary OS, but the relevant graphical plug-ins may not be enabled. Open a terminal and run:
sudo apt update
sudo apt install openvpn network-manager-openvpn-gnome network-manager-wireguard
The network-manager-openvpn-gnome package supplies the OpenVPN connection editor, while the WireGuard package integrates WireGuard profiles with NetworkManager. Package names can vary slightly between elementary OS releases, so use the package search in Synaptic if one command reports that a package cannot be found.
Before configuring the service, check the clock, create a recovery point if the system is important and keep your administrator password handy. Automatic time synchronisation matters because expired certificates and token-based credentials can be rejected even when the account details are correct. If the connection will be used for work, confirm the organisation’s policy before importing a profile or installing a third-party client.
Install and configure the VPN
Download the configuration supplied by your provider from its official site or account portal. OpenVPN providers commonly issue an .ovpn file containing references to certificates and keys; WireGuard providers issue a .conf file with interface and peer details. Do not use a profile found in a forum post, because private keys and endpoints are account-specific and sharing them may expose your connection.
For a graphical setup, open Settings and move to the Network or Connectivity panel, depending on the elementary OS release. Select Add, then choose OpenVPN or WireGuard. For OpenVPN, import the .ovpn file, review the gateway and cipher settings, and enter the account name and password only if the provider did not embed them in the profile. For WireGuard, import the .conf file or paste its fields into the editor. Keep the provider’s DNS and full-tunnel routing settings unless support specifically instructs otherwise. If IPv6 is enabled, check that it is routed through the tunnel rather than leaking outside it. Some sites must remain reachable on the local network, so ask the provider whether a split route for printers or shared folders is required.
NetworkManager can also import a profile without the desktop editor. The relevant commands take the form nmcli connection import type openvpn file ~/Downloads/provider.ovpn and nmcli connection import type wireguard file ~/Downloads/provider.conf; replace the filenames and type nmcli connection up "Provider VPN" with the imported connection’s actual name. Entering credentials through the NetworkManager editor is usually safer than placing them in a shell command, where they could remain in history.
After connecting, confirm that the VPN status is active in the system menu, then use the provider’s IP-check page to see the exit address. A browsing site that tests DNS or WebRTC leaks can reveal traffic escaping outside the tunnel. The exit location may differ from the server you selected because many providers route clients through another site. If the provider offers a kill switch, test its stated behaviour explicitly; losing the VPN icon does not prove that every application was blocked.
Compare the available connection methods
The right method depends on the provider and on whether you want every application protected. OpenVPN is mature and widely supported, while WireGuard is designed for simpler, faster handshakes. Browser extensions cover a narrower path and can be convenient for a second browser, but they leave other applications outside the protected route.
| Method | Traffic covered | Main strengths | Common limitations |
|---|---|---|---|
| OpenVPN profile | All system traffic | Broad provider support and mature configuration options | Handshakes can be slower, and older profiles may need protocol adjustments |
| WireGuard profile | All system traffic | Fast connections and a small, modern design | Fewer provider options, and missed key rotations can cause sudden failure |
| Provider app | Usually all system traffic | Simple account login and server switching | Depends on the vendor’s software quality and release support |
| Browser extension | Browser traffic only | Quick to enable and useful for travel with one browser | Email, package updates and other applications remain exposed |
A system-wide profile is the sensible default for a computer used at home, in a café or on public transport. It protects more than a single browser, but route and DNS settings still need checking. If a provider’s proprietary application is poorly maintained or unavailable for your elementary OS release, use the OpenVPN or WireGuard profile that the same provider supplies.
Use the VPN for everyday Australian browsing
Public Wi-Fi in the Sydney CBD, Melbourne CBD or a university campus may be convenient but should not be treated as privately managed. Open the browser enough to pass any sign-in or terms screen, then start the VPN. Captive portals sometimes reset connections when network routes change, so reconnecting after the portal opens is more reliable than trying to launch the tunnel during the sign-in process.
For an Australian home connection, a nearby server in Sydney, Melbourne, Brisbane, Perth or Adelaide will usually offer lower latency than a distant overseas node. This is particularly noticeable on an NBN service, a university connection or 5G mobile hotspot. Local exit addresses also reduce the likelihood that banking, myGov or workplace services will question an unusual overseas login, although each service has its own risk controls.
Some Australian streaming plans and commercial services restrict access by country or detect shared VPN addresses. A local server can avoid unnecessary location changes, but using a VPN to bypass a subscription restriction may breach the provider’s terms. Keep the server stable while completing sensitive work, and pause the VPN if a legitimate service rejects the exit address rather than cycling through many locations.
Maintain security and troubleshoot problems
Start troubleshooting at the provider’s status page, then check the downloaded profile, account status and system clock. Authentication errors often mean an expired certificate, a renewed token that has not been re-downloaded or an incorrect username. A captive portal may also block the VPN protocol until authentication completes. If the connection appears active but pages stall, try another protocol or nearby server, inspect journalctl -u NetworkManager for route and DNS errors, and ask the provider whether it filters the relevant port.
Keep the profile current. Renewing a subscription may require a new certificate or key, and deleting the old profile prevents confusing conflicts. Update elementary OS and NetworkManager regularly, use a password manager for the VPN account, and protect that account with multifactor authentication. Automatic connection on “untrusted” networks can be useful, but it should not override an organisation’s security policy or create a loop with a router that is already running the same tunnel.
Remember that a correctly configured VPN adds an encrypted tunnel, but trusted endpoints, HTTPS, sound account security and sensible provider choices remain the foundation of safe browsing on elementary OS.