Setting Up V2Ray and ShadowsocksR (SSR) on Your Hosteons VPS Print

  • v2ray, v2rayssr, ssr, proxy, linux, shadowsocks, shadow socks
  • 0

V2Ray and ShadowsocksR (SSR) are excellent tools for creating secure, private proxy servers. Whether you're bypassing internet restrictions or enhancing your online privacy, these tools offer robust solutions. With a Hosteons VPS, you can set up V2Ray or SSR quickly and efficiently. Here’s how to get started.


What You Need

  1. A KVM VPS.

  2. Linux Distribution: Recommended are Ubuntu 20.04 or Debian 11.

  3. Basic Command-Line Knowledge: Familiarity with terminal operations is helpful.


Step 1: System Update

Start by updating your VPS to ensure all system packages are current:

sudo apt update && sudo apt upgrade -y

Step 2: Installing V2Ray

  1. Download and run the official V2Ray installation script:

bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
  1. Enable and start V2Ray:

sudo systemctl start v2ray
sudo systemctl enable v2ray
  1. Confirm the installation:

sudo systemctl status v2ray

Step 3: Configuring V2Ray

  1. Edit the configuration file:

sudo nano /usr/local/etc/v2ray/config.json
  1. Use this basic configuration:

{
  "inbounds": [
    {
      "port": 1080,
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "YOUR_UUID",
            "alterId": 64
          }
        ]
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    }
  ]
}

Replace YOUR_UUID with a unique ID. Generate one with:

uuidgen
  1. Save and restart V2Ray:

sudo systemctl restart v2ray

Step 4: Installing ShadowsocksR (SSR)

For those preferring SSR:

  1. Clone the repository:

git clone https://github.com/shadowsocksrr/shadowsocksr.git
  1. Navigate to the folder:

cd shadowsocksr
  1. Run the installation script:

bash setup_cymysql.sh
  1. Configure the server settings by editing:

nano user-config.json

Add this configuration:

{
  "server": "0.0.0.0",
  "server_port": 8388,
  "password": "YOUR_PASSWORD",
  "method": "aes-256-cfb",
  "protocol": "auth_sha1_v4",
  "obfs": "tls1.2_ticket_auth",
  "timeout": 300
}
  1. Start the SSR server:

bash run.sh

Step 5: Allowing Ports Through Firewall

To ensure your proxy server is accessible:

sudo ufw allow 1080/tcp
sudo ufw allow 8388/tcp
sudo ufw enable

Step 6: Connecting a Client

  1. Install a V2Ray or SSR client on your device.

  2. Configure it with your server’s IP, port, and UUID/password.

  3. Test the connection to verify everything works.


Wrapping Up

With your Hosteons VPS, you now have a powerful and private proxy server using V2Ray or SSR. This setup ensures secure connections and unrestricted internet access. For any issues or questions, Hosteons’ support team is always ready to assist.


Was this answer helpful?

« Back