SpaceCore WIKI
English
English
  • Personal Account and Registration
    • Account registration
    • «Customer» section
    • «Finance» section
    • Account Verification (KYC)
  • Customer service
    • How do I place an order?
    • How to contact support?
    • The Game Hosting panel
    • Setting Up BILLmanager 6 for Reselling
  • Communications
    • Notifications in Telegram
    • Web Hosting Notifications
    • Using a ping bot in Telegram
  • Information board
    • Blocked ports (VPS/VDS)
    • What is IOPS?
    • VAT for the EU and UK
  • VPS and Dedicated Servers
    • How to use VPS/VDS?
    • Changing the Password for VDS
  • OS and software configuration
    • Java [Linux]
    • Screen
    • Linux Password Recovery
    • Connecting via SSH keys
    • Disabling access to Linux using a password
    • Deploying MikroTik RouterOS on VDS
  • AI
    • Deploying DeepSeek on your server in just a few clicks
  • Windows
    • RDP connection
    • Configuring the RDP connection
    • Changing the password
    • Installation via QEMU
    • How to add an IPv4
    • Download files
    • Bruteforce Windows
  • Network Setup and Security
    • No interaction with private networks
    • Working with TCPDump
    • Change MTU Value
    • Configure IPTables
    • [DNS] Temporary failure resolving...
    • Network Speed Measurement [SpeedTest]
    • How do I buy a domain name?
    • How do I direct my domain to an IP address?
    • How to Protect Your Server? Basics of Cybersecurity
  • VPN and Privacy
    • WireGuard VPN [Easy]
    • OpenVPN [Easy]
    • Outline VPN Installation
    • Installing TorrServer
    • Installing 3X UI
    • Installing Marzban
    • Proxy for Specific Websites (V2RayN)
    • Use Nekoray
  • System monitoring
    • Traffic monitoring via VnStat
    • How to use the MTR tool
    • Getting Serial Numbers of Drives
  • Administration and Backups
    • Working with FTP Repository
    • Auto-shipment of backups
    • Installing an FTP Server
    • Mounting Linux Drives
  • Web development
    • Installing Apache2
    • Installing Nginx
    • Installing PHP
    • Installing MySQL
    • Installing PhpMyAdmin
    • Let's Encrypt SSL Generation
  • Minecraft
    • Installing Minecraft Java Server
    • Installing the Minecraft Bedrock/PE server
    • Installing the BungeeCord server
    • Installing Sponge Forge 1.12.2 Kernel
    • Configuring server.properties
    • Installing the icon on the server
    • Launch Options
    • Installing a resource pack on the server
  • Hetzner Servers
    • Control Panel
    • Password change via Rescue
    • Installing the operating system
  • 🇩🇪Contabo
    • The Control Panel
    • Disk space expansion
Powered by GitBook
On this page
  1. VPN and Privacy

Proxy for Specific Websites (V2RayN)

PreviousInstalling MarzbanNextUse Nekoray

Last updated 7 months ago

In this article, we will discuss how to set up a VPN connection so that it is used only for specific services. In other words, how to ensure that most websites and apps use a direct connection, while only designated resources route data through the VPN?

We’ll demonstrate this using the 3X-UI VPN panel. First of all, you need to install and configure it on a VDS server using . However, don’t rush to install the program on your computer or smartphone yet; simply copy the configuration for connection. It looks like a string starting with “vless://”.

For Windows, install the V2RayN program. You can download it from . Choose the “With-Core” version.

Download and unpack the archive on your desktop. You will see the following files. Run v2rayN.exe

In the program window that opens, click the Servers button. Then click “Importing Share Links…”. The config address, starting with “vless://”, should be copied to the clipboard.

The server is now added. Click Settings -> Routing Setting.

Select Advanced Function -> Add.

Enter any name in the “Remarks” field.

Right-click in the black square area. A menu will appear, select “Add Rule”.

In the window for creating a new rule, choose the “Proxy” type. In the “Domain” field, enter all the domains you want to route through the VPN.

Next, create another rule in the same way. This time, select the proxy type “Direct”. In the domain block, enter the following expression regexp:\.*$.

Save.

The first rule we created will send protected VPN traffic only to the specified domains. In our case, to whatismyip.com. Thanks to the second rule, all other websites will receive our “clean” traffic without using the VPN. Save everything.

For the “Routing” parameter, select the one you created following the above instructions. Set the “System proxy” parameter to “Set system proxy,” then click “Enable Tun” to start the tunnel.

Check the result. On one site, our original address is displayed.

Meanwhile, on whatismyip.com, which we added to the proxy list, the VPN address is displayed.

This way, you can proxy only the necessary services, while using the rest of the internet without network restrictions.

For example, to have Discord use the VPN, you need to list . For YouTube, use . As an example, we will use the service whatismyip.com to check that our IP address indeed changes. Click Confirm to save.

the following domains
this link
the following guide
the official repository