Recommended by:

Download a VPN for Linux

  • Beautiful graphical user interface for Ubuntu
  • Blazing fast speeds (up to 10Gbit servers)
  • Unlimited bandwidth and devices
  • 30-day money-back guarantee
linux vpn
How to install a VPN on Linux

How to install a VPN on Linux

  • Open the terminal (CTRL+ALT+T in Ubuntu).

  • Type in the following command:

    curl -f --output #gets the installation script
    cat #shows script's content
    sh #installs surfshark
  • You are now ready to use your Linux VPN!

After installing Surfshark, you can control it via the shiny new GUI. Still have questions? Check out a more extensive guide on how to set up Surfshark VPN on Linux.

For users of the legacy app, we have an entire support guide dedicated to enabling a VPN on your Linux machine.

Powerful Antivirus
that works backstage
Enjoy peace of mind with 24/7 protection. Secure your device, files, & webcam in real-time
Get Surfshark One
Guard all your devices with a 30-day money-back guarantee

Feel free with the 30-day money-back guarantee

A VPN is an investment, but it’s a risk-free investment thanks to our generous money-back policy. Just subscribe to whichever plan you want. If your first month doesn’t convince you that Surfshark VPN is the best VPN for Linux, you can request a refund within those 30 days.

Try Surfshark

Benefits of a VPN on Linux

Give terminal some rest with a GUI

The new Surfshark Linux app comes with a genuine graphical user interface. Connect to the fastest or nearest server, browse the server list, mark favorite servers and more without entering a single line into the terminal. 

What’s more, you can seamlessly switch between OpenVPN (TCP or UDP) and WireGuard without the need to fiddle with any settings.

Give terminal some rest with a GUI
Stay in charge of your traffic

Stay in charge of your traffic

Linux keeps you in control of the processes on your device. This control ends where online begins. 

To achieve internet privacy and security, you need to encrypt your traffic and route it via a trustworthy VPN server to obfuscate your IP address. With Surfshark as your VPN service, Linux becomes secure where you usually can’t control it.

Stay private when streaming your favorite shows

Do cyberthreats concern you at all times? Using Surfshark, you’ll remain protected even when watching your favorite shows and movies.

Keep your VPN connection on to hide your traffic from the prying eyes of your internet service provider and ad brokers when streaming. Our 10Gbit servers around the world will ensure a throttle- and buffer-free experience.

Get Surfshark

Other things to love about Surfshark VPN’s Linux Client

No-activity-logs policy

No-activity-logs policy

It doesn't make sense to get a VPN for privacy just to be tracked by the provider. That's why Surfshark is dedicated to keeping no activity logs. Even better, our 100% RAM servers provide an additional security layer if someone tries to seize them.

Serious encryption

Serious encryption

VPN encryption is key to making your internet traffic unreadable to spies. On that note, Surfshark is one of a handful of VPN providers that use the AES-256-GCM protocol. It’s not only practically unbreakable but also really fast in execution.

Kill Switch for Linux

Kill Switch for Linux

No more unexpected info leaks. Our Kill Switch for Linux ensures that no info leaves your computer if you accidentally disconnect from the app. By turning off the internet connection until you reconnect to a VPN server, Kill Switch will protect your data.

Multiple devices

Unlimited devices

How many devices do you want to protect with a VPN? With Surfshark, that question is moot as one account is enough to run the app simultaneously on multiple devices. Protect everything you can reach!

10 Gbit VPN servers worldwide

10Gbit VPN servers worldwide

Our servers are not only secure but also fast. To keep up with the growing bandwidth requirements and 5G, we’re upgrading all of our servers to 10 Gbps worldwide and enhancing their performance with our private DNS servers.

Support for Debian-based distros

Supporting WireGuard on Linux

The Surfshark app on Linux not only brings the convenience of a GUI, but also the speed and security of WireGuard protocol.

Surfshark VPN vs. free VPNs

There is no such thing as a free VPN. Any VPN is a service that needs money to operate. Free VPNs just get it through other means, like annoying ads or selling your data. Here’s why you should choose a paid VPN over a free one:

No activity logs

No activity logs

Many free VPNs rely on selling your data to keep their service running. A secure VPN service will never do that.

Modern protocols

Modern protocols

Modern protocols are optimized to deal with the newest threats and work with the latest systems. Free VPNs don’t offer them.

Unlimited data

Unlimited data

Free VPNs will limit how long you’ve been connected or how much data you’ve downloaded. Premium VPNs won’t.

Prioritizing security

Prioritizing security

A paid VPN app has the resources to put your security first. Free VPNs simply do not.

Thousands of servers

Thousands of servers

More servers means they’ll be less crowded, resulting in a faster connection. Paid VPNs have significantly more servers than free ones.

Good speeds

Good speeds

Maintaining fast servers and minimizing speed drops takes a lot of resources. Resources, which free VPNs don’t have.


Do I need a VPN with Linux?

Yes, a Virtual Private Network is an online security staple for all devices and operating systems, Linux included. Sure, the danger of being hacked may be a bit lower than for your average Windows user. But areas where a Linux VPN can help you are still massive:

  • A VPN obscures your traffic from your ISP or anyone else who’d like to spy on it. Instead of knowing what websites you’re visiting or that you’re streaming/gaming/sharing files, they’ll only see VPN traffic. 
  • Censorship and firewalls don’t care about your operating system and can affect even something as simple as your access to news or social media sites.

In fact, most of the points outlined here apply to Linux users as well.

Does Surfshark VPN on Linux support WireGuard?

Surfshark app for Ubuntu supports both WireGuard and OpenVPN (TCP and UDP).

Does Linux have a built-in VPN?

Many Linux distros have a built-in VPN capability via the Network Manager, but it’s not the same as having a VPN. It just means that you can potentially set up a VPN without a specific application.

However, you’ll:

  1. Still have to do it yourself.
  2. Still need to find a VPN server provider. 
  3. Not have the easy-of-life and usability features of a commercial VPN. 

Most users don’t have a spare VPN server laying around, especially one that would allow them to router their traffic via a different country. So the potential capability exists, but it’s not nearly a full Linux VPN client package.

Does Ubuntu have a VPN?

Just like every operating system under the sun, Ubuntu has a built-in VPN capability. However, you still need to have access to a VPN server to make it work.  

How do I enable a VPN on Linux?

For Surfshark VPN users on Ubuntu who would like to use the GUI app, you can follow the short guides outlined in the article above.

For users of the legacy app, we have an entire support guide dedicated to enabling a VPN on your Linux machine. However, the legacy app is now purely in maintenance mode, and any new features will be coming to the GUI app.

Which free VPN is best for Linux?

Good free VPNs don’t exist for Linux – or any other platform. Here’s why:

  • Free VPNs have way fewer servers and countries they operate in.
  • Free VPNs are slower than paid VPNs – usually as a way to make you buy the paid version. 
  • Free VPNs will bombard you with ads or sell your data for profit.
  • Free VPNs don’t have the money or resources to keep their platforms up to security standards.
  • Free VPNs usually leak data, don’t provide encryption, and often contain malware

So you see, you’ll likely be paying for a free VPN one way or another, including handing over your data.

Is VPN use legal?

VPN use is legal in nearly every country in the world. Only a few oppressive regimes limit its use.

However, if you use a VPN to partake in illegal activities – like pirating copyrighted material – the law may still come after you.

Surfshark does not encourage using a VPN in any way that would potentially violate the law or Terms of Service of other service providers.

Does Surfshark support Raspberry Pi?

Surfshark VPN can be setup on Raspberry Pi by carrying out a manual OpenVPN setup. You can find the guide for it here.

Get Linux-level privacy online

and a 30-day money-back guarantee

VPN deal that Rocks

Get % off + mo. FREE
Get VPN Deal

This website uses cookies. To learn more, visit our Privacy Policy.