Recommended by:

Download a VPN for Linux

  • Beautiful graphical user interface for Ubuntu
  • Blazing fast speeds with 10Gbit ports
  • Unlimited bandwidth and devices
  • 30-day money-back guarantee
A man surrounded by an empty browser window, a shield with a checkmark on it, and a Surfshark logo.

How to install a VPN on Linux

  1. Subscribe to Surfshark. Linux is free, but good VPNs aren’t.

  2. Open the terminal (CTRL+ALT+T in Ubuntu). As a Linux user, you already know more about this step than I ever will.
  3. Type in the following command:

    curl -f https://downloads.surfshark.com/linux/debian-install.sh --output surfshark-install.sh #gets the installation script
    cat surfshark-install.sh #shows script's content
    sh surfshark-install.sh #installs surfshark
  4. Log in to the Surfshark app. Finally, all that effort in subscribing will pay off!

  5. Connect to a VPN server. Quick-connect will choose the fastest server, though you can manually choose to connect to any server you want.

  6. That’s it!

Using a commercial VPN isn’t exactly “hacking the Gibson” in terms of complexity.

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.

Give your Linux distro some VPN love
With a GUI for everyone
Surfshark

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 nearly as secure online as it is offline.

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

Protect yourself online with Surfshark VPN for Linux

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 VPN 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.

Unlimited 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!

10Gbit 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, all of our 3200+ servers have 10Gbit ports and their own DNS.

Supporting WireGuard on Linux

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.

Protect unlimited devices with Surfshark

Protect unlimited devices with Surfshark

When you subscribe to Surfshark VPN, you’re not getting a VPN for your single Linux computer. No, you’re getting a license allowing unlimited simultaneous connections — definitely enough to cover every device you own. 

So, starting with your Linux machine, you can install a VPN app on your Android phone (after purging all the Google telemetry, naturally), your router, and your other Linux computers — the works.

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.

FAQ

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 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:

  • Still have to do it yourself;
  • Still need to find a VPN server provider; 
  • 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, here’s a short guide:

  1. Open the terminal (CTRL+ALT+T in Ubuntu).
  2. Type in the following command:

    curl -f https://downloads.surfshark.com/linux/debian-install.sh --output surfshark-install.sh #gets the installation script
    cat surfshark-install.sh #shows script's content
    sh surfshark-install.sh #installs surfshark
  3. You are now ready to use your Linux VPN!

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.

VPN deal that Rocks

Get % off + mo. FREE
Get VPN Deal