Introduction
In this article, we will guide you through the process of setting up a VPN server in Sweden using the X-UI interface and X-Ray VLESS Reality traffic masking. This method is an effective way to bypass VPN blocks and ensure your online privacy without breaking the bank.
Prerequisites
Before we begin, make sure you have the following:
- A cheap VPS server in Sweden
- X-UI installed on the server
- Familiarity with the Linux command line
Step 1: Set Up Your Swedish Server
Once you have your Swedish server, follow these steps to install X-UI:
- Connect to your server using SSH.
- Update your package index:
- Install X-UI:
sudo apt update
sudo apt install xui
Step 2: Install X-Ray VLESS Reality
Now that you have X-UI installed, you can set up X-Ray VLESS Reality:
- Create a new configuration file:
- Add the following configuration:
- Save and exit the file.
- Restart X-Ray:
sudo nano /etc/xray/config.json
{
"web": {
"listen": "0.0.0.0:8080",
"external-interface": "eth0",
"origin": "0.0.0.0 127.0.0.1"
},
"inbound": [
{
"port": 1080,
"protocol": "vmess",
"tag": "vless",
"users": [
{
"id": "1",
"name": "vless",
"level": 1
}
]
}
],
"outbound": [
{
"protocol": "freedom",
"tag": "direct"
}
],
"log": {
"loglevel": "info"
}
}
sudo systemctl restart xray-core
Step 3: Mask Your Traffic with VLESS Reality
To mask your traffic using VLESS Reality, you will need to use the Reality Scanner program:
- Install the Reality Scanner:
- Run the Reality Scanner:
- Find a suitable server:
- Copy the server information:
- Add the server information to your X-UI configuration:
- Save and exit the file.
- Restart X-Ray:
sudo apt install git
git clone https://github.com/XTLS/Reality-Scan.git
cd Reality-Scan
make
./Reality-Scan.sh
grep "vless" output.txt
cat output.txt | gre "vless" | grep -v "already added" | awk '{print $3}'
sudo nano /etc/xray/config.json
{
"web": {
...
},
"inbound": [
{
...
},
{
"port": 1081,
"protocol": "vmess",
"tag": "masked",
"users": [
{
"id": "2",
"name": "masked",
"level": 1,
"server": "your_server_address_here",
"port": "your_server_port_here",
"users": [
{
"id": "me",
"name": "me",
"level": 1
}
]
}
]
}
],
"outbound": [
{
"protocol": "freedom",
"tag": "direct"
}
],
"log": {
"loglevel": "info"
}
}
sudo systemctl restart xray-core
Congratulations! You have successfully set up a VPN server in Sweden using X-UI and X-Ray VLESS Reality traffic masking. This method is an effective way to bypass VPN blocks and ensure your online privacy without breaking the bank. For more information on X-UI and X-Ray, check out the following resources: