> ## Content Index
> Fetch the complete content index at: https://blog.alphavps.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Running Shadowsocks Proxy on a Linux VPS for Private Browsing
- URL: https://blog.alphavps.com/running-shadowsocks-proxy-on-a-linux-vps-for-private-browsing/
- Published: 2026-02-10T08:38:30.000Z
- Updated: 2026-09-08T15:18:08.000Z
- Author: Karim Buzdar
- Tags: Tutorials, VPN & Remote Access

Shadowsocks, a lightweight, fast, and secure encrypted proxy, is designed to protect your online privacy and bypass censorship. Shadowsocks is a SOCKS5 proxy optimized for performance, which avoids network filtering and bypasses censorship. Setting up Shadowsocks on a Linux VPS is a straightforward process. This guide will walk you through the installation, configuration, and security of your proxy server. Each step is explained clearly.

## How to Install and Configure Shadowsocks Proxy on a Linux VPS for Private Browsing

Install the Shadowsocks package on your Linux VPS to enable private browsing. Next, create the /etc/shadowsocks-libev/config.json file with your preferred port, password, and encryption method, then enable and start the Shadowsocks service so it runs automatically. Install the simple-obfs plug-in to help disguise traffic and bypass censorship. Connect using any Shadowsocks Client by entering your server's IP, port number, password, and encryption details. Then, confirm that everything works by checking your IP address.

### Step 1: Update Your Linux VPS

This ensures that you are using the most recent package lists and security updates. This prevents installation errors due to outdated repositories and broken dependencies.

```bash
sudo apt update
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-6fb0ddcb-bda4-42f9-888f-38ebfe700f27.png)

### Step 2: Install Shadowsocks-libev

Shadowsocks is recommended as a lightweight implementation. This package will give you a resource-efficient and fast proxy server that is suitable for VPS systems with low power.

```bash
sudo apt install shadowsocks-libev -y
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-6f0430f2-1429-408c-b16e-cd6282b3273a.png)

### Step 3: Create the Shadowsocks Configuration File

The configuration file specifies how Shadowsocks behaves, including its port, encryption method, and password. It also defines connection settings. By editing this file, you can ensure that your server runs on a port of your choice and uses modern encryption.

```bash
sudo nano /etc/shadowsocks-libev/config.json
```

Paste:

```json
{
    "server":"address",
    "mode":"tcp_and_udp",
    "server_port":8388,
    "local_port":8388,
    "password":"StrongPasswordHere",
    "timeout":300
    "method":"encryption_method",

}
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-8ed894d3-6ddf-40bc-9e70-0566e7ba1467.png)

### Step 4: Enable and Start Shadowsocks Service

By enabling the service, Shadowsocks will automatically start after a restart. This reduces downtime. The proxy is activated immediately after starting the service, so that clients can start connecting.

```bash
sudo systemctl enable shadowsocks-libev
sudo systemctl start shadowsocks-libev
sudo systemctl status shadowsocks-libev
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-c7b36d73-02fb-4beb-9c97-a2dee2f9f196.png)

### Step 5: Open Firewall Ports for Shadowsocks

External devices will not be able to connect to the proxy if the firewall blocks that port. Shadowsocks will work without interruptions if you allow TCP and UDP traffic.

```bash
sudo ufw allow 8388/tcp
sudo ufw allow 8388/udp
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-95603309-d039-4040-a29b-e610687ca7f1.png)

### Step 6: Add Obfuscation Plugin (Optional but Recommended)

Simple-obfs disguises Shadowsocks to appear as normal HTTPS traffic. This helps to protect against restrictive networks' deep packet inspections (DPI) and also avoids speed throttling or connection blocking.

Install Plugin:

```bash
sudo apt install simple-obfs -y
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-ab52291c-a301-4f23-b32f-3e4e95230c15.png)

Update config:

```bash
"plugin":"obfs-server",
"plugin_opts":"obfs=tls"
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-e59068eb-5e37-45d6-8384-d539f566978b.png)

Restart:

```bash
sudo systemctl restart shadowsocks-libev
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-f8d09b0c-1e35-49ab-bdf7-904c574ad433.png)

### Step 7: Connect to Shadowsocks from Your Device

To use the proxy, configure a Shadowsocks-compatible client on your phone or PC. Enter your server's IP, port, encryption, and password. This information creates a secure tunnel between your VPS and your device.

You’ll need:

- Server IP
- Port (8388)
- Password
- Encryption (aes-256-gcm)
- Plugin settings (if enabled)

Popular clients:

- Windows/macOS: Shadowsocks-NG
- Android: Shadowsocks app
- iOS: Shadowrocket

### Step 8: Test Your Shadowsocks Proxy

The test ensures that your connection is routed through the VPS and confirms that the proxy and encryption work correctly. If you see a different public IP, your traffic has been successfully tunneled by Shadowsocks.

Visit:

```text
https://whatismyipaddress.com
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-a9e1f6e0-f002-44f7-86cb-22317b23e56a.png)

## How to Completely Uninstall Shadowsocks from Linux VPS

Deleting configuration directories ensures no residual settings remain on your VPS.

### Step 1: Stop the Shadowsocks Service

Shadowsocks will no longer be running if the service is stopped. This prevents errors.

```bash
sudo systemctl stop shadowsocks-libev
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-7dbe9dd7-3580-4899-9c7f-87e616d5fa20.png)

### Step 2: Disable the Service

Shadowsocks will not start again when you boot up if the feature is disabled.

```bash
sudo systemctl disable shadowsocks-libev
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-f43ce942-0ef0-442e-a33e-dfe6f756b65d.png)

### Step 3: Remove the Shadowsocks Package

The Shadowsocks executable and all its binaries are removed from the system.

```bash
sudo apt remove --purge shadowsocks-libev -y
```

### Step 4: Remove Configuration Files

Deleting configuration directories ensures no residual settings remain on your VPS.

```bash
sudo rm -rf /etc/shadowsocks-libev
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-8fd1b6ae-2d97-49f2-b211-16926d4d3798.png)

If you installed obfuscation:

```bash
sudo apt remove --purge simple-obfs -y
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-b5cfccc0-6f99-43e9-abf0-6dd9b38430c7.png)

### Step 5: Clean Unused Dependencies

This will remove any leftover libraries from your computer and release disk space.

```bash
sudo apt autoremove -y
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-fbb1b23b-31df-43db-8f9f-6c01f634b035.png)

### Step 6: Remove Any Firewall Rules Added Earlier

Cleaning up the ports that were added during installation.

```bash
sudo ufw delete allow 8388/tcp
sudo ufw delete allow 8388/udp
```

![](https://blog.alphavps.com/content/images/2025/12/data-src-image-637cc81e-6043-4278-b746-519e850674e6.png)

Shadowsocks packages and firewall rules have been removed from your system.

## Conclusion

Installing Shadowsocks onto a Linux Virtual Private Server (VPS) provides an internet experience that is fast, private, and free of censorship. It's the perfect solution to bypass restrictions and browse securely. With its strong encryption and optional obfuscation, and minimal resource usage. Following the above steps, including configuration, firewall setup, and testing, you can deploy a Shadowsocks Proxy in a matter of minutes.

Whether you’re launching a new idea or scaling an existing project, our [**Cheap VPS**](https://alphavps.com/cheap-vps.html?ref=blog.alphavps.com) gives you the perfect balance of **quality and affordability**.