Skip to content

Case study · network infrastructure and security

Private VPN gateway for 25 devices, Valencia

2.3 terabytes through a box at home: a private VPN gateway for 25 devices in Valencia

Private VPN gateway: homepage, mobile version
Private VPN gateway: homepage, desktop version
  • XrayXray: one of the gateway's two engines, channels look like ordinary traffic.
  • sing-boxsing-box: the second independent engine, so the link never depends on one method.
  • Hysteria2Hysteria2 keeps video calls going on a poor line.
  • DebianDebian with no desktop: the bare minimum on the server, easier to secure.
Message on WhatsApp

What was the task?

We built a private VPN gateway for 25 devices in a box the size of a book, which sits at home in Valencia next to the router. Through it, people in Russia call their families, work and use the internet the way they are used to. The goal was a personal gateway that doesn't depend on a commercial subscription and keeps working when blocking methods change.

Russian speakers in Spain are buying the chance to talk to their mother, and privacy matters to them less than that. On the other side, messengers work on and off, video calls drop, and some services don't open at all. A commercial subscription doesn't fit here, because its address is shared by thousands of subscribers, banks and payment systems reject such an address, and all traffic goes through someone else's company. Setting up a VPN is easy, but the difficulty lies elsewhere: blocking methods change every few months, and what worked in spring stops working in autumn. A channel on a single protocol one day simply stops responding, and it has to be fixed exactly when the person needs to call home. The need was a gateway that survives changes in blocking methods and changes in hardware, and still asks nothing of the family on the other side beyond one switch in the app. One more condition was no subscription fee and no outside company between a person and their family, just their own box at home. Family on the other side don't know settings, so any failure has to be solved with one switch, without calling a technician.

How did we make the gateway resistant to blocking?

We built a gateway that relies on five independent channels running on two different engines, since a single masking method would be too fragile. If one method stops working, four remain, and the person on the other end only needs to switch a line in the app. Each channel looks like ordinary traffic to well-known sites.

The second goal was resilience. The first version ran on a single-board computer the size of a pack of cigarettes, with 512 megabytes of memory and a network port through an adapter that cut a home gigabit connection down to a hundred megabits. When the load grew, the gateway moved to a compact office computer with sixteen gigabytes of memory and a full gigabit port. The move happened with no interruption, and keys and settings were carried over one to one, so connected users didn't have to update anything and nobody noticed the hardware change. We left spare capacity for growth: of the sixteen gigabytes, a little over one is in use, and the processor is almost idle. Keys and settings are stored so that the machine can be replaced in an evening, and connected users won't notice. From here the gateway is maintained remotely, and new masking methods are added as one more channel without touching the ones that work. One channel looks like a visit to the NVIDIA site, another like a server contacting Debian repositories, a third like a download from python.org, so the gateway's overall traffic doesn't stand out against ordinary home internet.

  1. 1 Five channels on two engines

    One looks like a visit to the NVIDIA site, another like a request to Debian repositories, a third like a download from python.org.

  2. 2 Move to powerful hardware

    From a single-board computer to an office computer with 16 GB of memory and a gigabit port.

  3. 3 Zero days of downtime

    Keys and settings carried over one to one, nobody had to change their configuration.

  4. 4 No subscription fee

    The server sits at home, and only electricity is paid for.

What was the result?

How much load can the gateway take?

The gateway serves 25 devices and has already passed 2.3 terabytes of traffic, yet the machine is almost idle: of 16 gigabytes of memory 1.1 is used, and the average CPU load is 0.28. The gateway can handle twice as many people without replacing the hardware.

MetricValue
Devices on the gateway25
Traffic passed2.3 TB
Independent channels5 on two engines
Downtime during hardware change0 days

Why is the gateway cheaper than a subscription?

The gateway is paid for once and stays with its owner, while a commercial service charges a monthly fee for each of the 25 devices, year after year. Here the hardware at cost and the build are paid once, maintenance is monthly and only if you want it, and there is no subscription fee for the server.

Who is such a gateway for?

The gateway suits people whose relatives are in another country and whose connection with them has become unreliable. It also suits a family or group of friends who need a shared exit to the internet through a specific country, and small businesses that need a permanent address for services that tell users apart by country.

Is a personal gateway right for you?

I'll review your task for free and tell you whether a gateway fits, what equipment you need and what it costs in your case. I answer within an hour and give the estimate within 48 hours.

Message on WhatsApp

Questions and answers

How many devices and how much traffic does the private VPN gateway in Valencia handle?

The gateway, installed in a home router in Valencia, serves twenty-five phones and laptops, and 2.3 terabytes of traffic have already passed through it. People in Russia call relatives, work and use the internet the way they are used to. Meanwhile the machine is almost idle and could handle twice as many people without a hardware change.

Why is a commercial VPN subscription worse than a personal gateway for staying in touch with family in Russia?

With a commercial subscription, the address is shared by thousands of subscribers, and banks and payment systems recognize and reject such an address. All traffic also goes through someone else's company, which decides for itself what to do with it. A personal gateway sits at the homeowner's place, and they give access only to their own people.

How many channels run on the private VPN gateway, and how are they disguised?

The gateway runs five independent channels on two different engines, and each one imitates its own kind of ordinary traffic: one looks like a visit to the NVIDIA website, another like a server requesting Debian repositories, a third like a download from python.org. If one method stops working, four remain, and the user just switches a line in the app.

Why does a private VPN gateway need two engines, Xray and sing-box?

Blocking methods change every few months, and what worked in spring may fail by autumn. That is why Xray and sing-box run on the gateway in parallel and independently of each other. If filtering systems learn to detect one engine, the other keeps working and people on the other side stay connected.

How does the VLESS channel with Reality work in the private gateway?

The VLESS channel with Reality spoofs the handshake of a real site and returns its genuine certificate, so from the outside such a connection is indistinguishable from an ordinary visit to that site. In the gateway it is one of five independent channels, each imitating its own kind of ordinary traffic, so blocking one method does not cut the connection.

What are Hysteria2, ShadowTLS and AnyTLS for in the VPN gateway?

Hysteria2 provides a fast channel over UDP and holds video calls well on a poor line. ShadowTLS and AnyTLS hide the connection's fingerprint in two different ways, and AnyTLS deliberately breaks the rhythm of packet sizes, which can give a tunnel away regardless of the protocol inside. Together they widen the set of fallback routes for staying in touch with family.

What hardware did the first version of the VPN gateway run on, and why was it replaced?

The first version ran on a single-board computer the size of a pack of cigarettes with 512 megabytes of memory, and its network port worked through an adapter that cut the home gigabit down to one hundred megabits. When the load grew, the gateway moved to a compact office computer with sixteen gigabytes of memory and a full gigabit port.

How was the VPN gateway moved to a new computer with no downtime?

The gateway was moved from one machine to another with no service interruption, with 0 days of downtime. Keys and settings were transferred as they were, so nothing changed for the connected people. None of the twenty-five users had to update their configuration, and none of them noticed the hardware swap.

How does the owner of a private gateway manage users?

The owner opens the web control panel in a browser, with no command line. It lists the people, each with their own profile, their own traffic and their own subscription link. A new device is added in two clicks and access is revoked in one move, without affecting other users, and the gateway load is also visible in the panel.

What does a person in Russia need to connect to the gateway in Valencia?

All they need is a phone app and one subscription link, and the app pulls the list of channels itself and switches between them. When two new protocols were added to the gateway, nobody had to resend anything, because the subscription updated itself. If one channel stops getting through, it is enough to switch the line in the app.

How is a turnkey personal VPN gateway paid for?

The hardware is paid at cost, and turnkey assembly and setup with a one-time payment. Technical maintenance is available optionally with a monthly payment. There is no server subscription fee, so costs come down to electricity, and once the quote is agreed, the price will not go up.

How much more cost-effective is a personal gateway than a commercial VPN for 25 devices?

A commercial service charges a monthly fee for each of the twenty-five devices, year after year. A personal gateway is paid for once, and after that you only pay for electricity. The hardware also remains the owner's property and can serve twice as many people.

How does the VPN gateway cope with a changing home IP address?

Home internet almost always gives a changing address, so a background service watches for the change and rewrites the domain record in Cloudflare, which is used as DNS. People connect via a permanent name and do not know the numbers behind it change. Synchronization runs on a schedule, around the clock, with no involvement from the owner.

How is access to managing the private VPN gateway protected?

Remote management is locked down: access is by key only, on a non-standard port, and logging in as superuser is not possible. The panel is hidden behind an address that can't be guessed. The machine runs Debian with no graphical shell, so a device facing the internet has as little extra software as possible, and the settings are kept in a backup in case the storage fails.

What other projects can I look at?

01 PROGRESSYLC Case study · online learning platform and migration

921 lessons migrated in 4 days: a Valencia language school left ProgressMe for its own platform

View case study
02 SEO7.ES Case study · website and promotion in neural networks

80 queries in Google top 5 instead of 13 in three months: website of a web studio in Valencia

View case study
03 Shadow Theatre Case · Landing page with online payment, SEO and GEO

200+ participants in three months from a single page for the "Sila Soznaniya" training center

View case study

Shall we discuss your project?

Calculator request

Leave your contact


    

GeoScan ·

AI search check

Loading the page

Web studioValencia

New services

Ads in ChatGPT

Can ChatGPT see your website?

GeoScan: 172 checks in 8 groups, an answer in 10 seconds, free.

Get in touch

WhatsApp Telegram +34 624 363 806
+34 624 363 806