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
-
A KVM VPS.
-
Linux Distribution: Recommended are Ubuntu 20.04 or Debian 11.
-
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
-
Download and run the official V2Ray installation script:
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
-
Enable and start V2Ray:
sudo systemctl start v2ray
sudo systemctl enable v2ray
-
Confirm the installation:
sudo systemctl status v2ray
Step 3: Configuring V2Ray
-
Edit the configuration file:
sudo nano /usr/local/etc/v2ray/config.json
-
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
-
Save and restart V2Ray:
sudo systemctl restart v2ray
Step 4: Installing ShadowsocksR (SSR)
For those preferring SSR:
-
Clone the repository:
git clone https://github.com/shadowsocksrr/shadowsocksr.git
-
Navigate to the folder:
cd shadowsocksr
-
Run the installation script:
bash setup_cymysql.sh
-
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
}
-
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
-
Install a V2Ray or SSR client on your device.
-
Configure it with your server’s IP, port, and UUID/password.
-
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.