Spring til hovedindholdet

Shadowsocks with the Mullvad CLI

Bridges Windows Linux macOS Desktop Shadowsocks Feature Multihop Censorship circumvention 

Sidst opdateret:

Unable to surf the entire web because you're stuck behind a restrictive firewall? Then Shadowsocks might be your answer. In this guide, we'll walk you through the steps to use this proxy to connect to our servers using the Mullvad command line interface (CLI) in your operating system's terminal.

What is Shadowsocks?

Please see our Intro to Shadowsocks guide

Installation requirements

To use this guide, you need

  • Windows, macOS, or Linux
  • The Mullvad VPN app – download it here
  • To use the terminal/command prompt

Set-up instructions

1. Open the terminal

 

Linux and macOS

Open the terminal

Windows

Open the command prompt and navigate to C:\Program Files\Mullvad VPN\resources\

2. Set up Shadowsocks

This command will configure Mullvad to use Shadowsocks.

mullvad bridge set location any

You can specify the location of the Shadowsocks bridge server by replacing any with a specific country or city. For example, mullvad bridge set location nl ams will connect you to Amsterdam in the Netherlands.

To get a list of all location options and their abbreviations, run the following command.

mullvad bridge list

To specify a specific bridge server, run mullvad bridge set location nl ams nl-ams-br-001, in which you specify country, city, and that location's server name which you can find in our list of bridge servers.

3. Enable bridge mode

Run the following command to connect to our VPN servers using Shadowsocks.

mullvad bridge set state on

4. Disable bridge mode

mullvad bridge set state off

5. Is Shadowsocks on or off?

Run the following command and you will either see "on" or "off".

mullvad bridge get

If you check your status with our Connection check while connected, nothing about Shadowsocks or a bridge connection will be mentioned. Only your exit location/server will display.

Advanced configurations

You can also configure a variety of advanced options, including proxy, IP, and cipher. Run the following command but replace xxx.xxx.xxx.xxx with the IP address of the Mullvad bridge server you want to use as your entry location.

mullvad bridge set custom shadowsocks xxx.xxx.xxx.xxx