VPN TUN support coming soon to Linux on Chromebooks with Crostini

One of the benefits to running Linux desktop apps on a Chromebook via Project Crostini is having access to more apps that work in a business environment. But one of the fairly standard requirements in many businesses is using a VPN, or Virtual Private Network, for security reasons. Chrome OS network traffic can be securely routed through an Android VPN client but that security doesn’t extend to Linux apps in a Crostini container.

That’s about to change due to a code commit made today to address this feature request that’s been in the Chrome OS bug repository since November, although the issue was first reported last April.

The code is fairly simple, adding these few lines to Tremplin, which according to its readme file is “the “springboard” daemon that runs in the Termina VM and exposes a gRPC interface for managing LXD containers.”

Essentially, this code change natively implements what has been a workaround to get VPN functionality within Crostini as noted here, which has been to run these commands in crosh (ctrl + alt + t):

  • vmc start termina
  • lxc config device add penguin tun unix-char path=/dev/net/tun

Tun, by the way, is a virtual network layer device on Level 3 of the OSI model for networking, although you may not care about that. What you might care about is that after the code change was made, OpenVPN was successfully run by the Chromium developer, suggesting that this should bring VPN access to the Linux container.

Given the small scope of this change and the positive test results, I’d expect this function to appear in the Canary channel within the next few days; I’m running the Dev Channel, so I won’t be able to test it until it arrives there, however. Just to be clear: This code change enables VPN support but doesn’t actually add a VPN. For that, you’ll need to find a VPN provider such as OpenVPN, NordVPN, TorGuard VPN or one of several other options available on the market.

2 thoughts on “VPN TUN support coming soon to Linux on Chromebooks with Crostini

  • February 6, 2019 at 6:59 am
    Permalink

    There’s a native NordVPN app for Linux. Why not just use that?

    Reply
    • February 6, 2019 at 7:01 am
      Permalink

      Without a TUN interface properly installed and configured it won’t work in Crostini. This resolves that issue so you can use NordVPN or another VPN service.

      Reply

Leave a Reply to Smitty Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: