this post was submitted on 21 Apr 2025
73 points (100.0% liked)

Selfhosted

46443 readers
512 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Like, from inside China to the outside, but a bilateral solution would be fine with me, too.

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 54 points 1 week ago (1 children)

They are prepared for such ideas, and you should assume that they are better than you.

[–] [email protected] 21 points 1 week ago (1 children)

And there are hundreds if not thousands of them, plus a lot of automated tooling.

[–] [email protected] 6 points 1 week ago* (last edited 1 week ago)

And of course, they control the hardware and software. I wouldnt risk it as a foreign national who has occasionally done work in the defense industry, but everyone has a different risk tolerance.

[–] [email protected] 43 points 1 week ago* (last edited 1 week ago)

It's better to pay for a VPN provider that is verified to work in China. And no, they won't kidnap you for using a VPN as some people write here. It's a non-issue just to bypass the GFW. The issue is when you write to a Chinese audience things that the CCP do not like.

[–] [email protected] 22 points 1 week ago

It's possible for a while but there is a whack-a-mole game if you're doing anything they would care about. So you will have to keep moving it around. VPS forums will have some info.

[–] [email protected] 21 points 1 week ago (6 children)

It will work for a bit, then they will detect VPN traffic and just block the destination ip for good. Any ip you will use will be shortly unreachable for you, so be prepared to that.

load more comments (6 replies)
[–] [email protected] 17 points 1 week ago

ITT: lots of generic VPN advice by people who have no experience with the specific problem.

[–] [email protected] 14 points 1 week ago* (last edited 1 week ago) (2 children)

Yes. China's great firewall mostly handles content filtering and deals with low hanging fruit. Getting around it is fairly simple, and the censorship is mostly focused on stuff that would otherwise be easily accessible by the broader population.

VPN is your obvious choice here. CCP blocks most public VPN providers, so you'd have to roll your own.

You can set up a VPN concentrator somewhere in the world, and you would be able to reach it. As far as I've noticed, they don't block VPN as a whole, and default port should work fine - the reason for this is probably that VPN has many commercial uses that they don't want to harm.

Source: I run a (work-related) VPN accessible from inside china.

[–] [email protected] 13 points 1 week ago

You don't have to set up your own VPN. Many public providers work.

[–] [email protected] 8 points 1 week ago (1 children)

I have a private vpn in korea, i could connect to that vpn even through china's hotel wifi

Could browse as per normal with abysmal internet speed

[–] [email protected] 17 points 1 week ago (1 children)

Could browse as per normal with abysmal internet speed

Of course. It's because they had to catch and write down every single byte with a pencil on paper, then decrypt it, understand it, report the funny ones to a boss, who nodded slowly and silently and then they typed it in again on the other side.

/s

load more comments (1 replies)
[–] [email protected] 7 points 1 week ago* (last edited 1 week ago)

I would avoid China if you can

If you need to go to China make sure to use Tor with snowflake proxies enabled. Tor is the only real answer here since this is what it was designed for.

[–] [email protected] 7 points 1 week ago (1 children)

I don't know if it will work, but it's possible to tunnel all your traffic through a VPS using SSH and a piece of software called sshuttle.

[–] [email protected] 2 points 1 week ago

You can tunnel over SSL with stunnel. TCP latency can be brutal though.

[–] [email protected] 7 points 1 week ago* (last edited 1 week ago) (2 children)

Depends - how many family members do you have that the PRC might use against you? or who would miss you if the PRC black bagged you?

[–] [email protected] 10 points 1 week ago (1 children)

VPN's aren't illegal in china, and they don't go about random people who use them. Unless you are very vocal and high profile person no one will black bag you in a country of billion people, lol.

[–] [email protected] 8 points 1 week ago (2 children)

VPNs as a technology might not be illegal but circumventing the firewall certainly is.

Unless you are very vocal and high profile person no one will black bag you in a country of billion people, lol.

This is a bit of a misunderstanding about how things work in an authoritarian system. Sure, you might fly under the radar for awhile, but if you call attention to yourself (say, by getting caught trying to bypass the government firewall) and you are not high-profile, then it is very low-effort to make you disappear. Few will notice, and those that do will stay silent out of fear.

If you are more high-profile you still get black-bagged, you just get released after, with your behavior suitably modified.

Naomi Wu no longer uploads to YouTube.

[–] [email protected] 5 points 1 week ago

Ffs you do not get disappeared for using vpns especially personal ones. You can install vpns that circumvent firewalls as long as they are blessed by ccp and they are sold using wechat. For non compliant ones it's the same. It's you who misunderstands how authoritarian systems work, noone tries to nail you for doing something semi-illegal, you will be dissapeared for non-conforming not for exploiting system.

Tap for spoilerI work in the vpn industry and we had multiple consultations and tests done in china.

[–] [email protected] 1 points 1 week ago

The keyboard apps are backdoored.

[–] [email protected] 4 points 1 week ago

It's crazy that this is an opinion that people really have. I don't like authoritarian states and I have a lot of issues with the CCP, but this isn't true at all. Loads of native Chinese living in China uses a VPN. They don't care about it.

[–] [email protected] 7 points 1 week ago

You want to look into v2ray for self hosting. For example with https://github.com/hiddify/Hiddify-Manager

[–] [email protected] 6 points 1 week ago* (last edited 1 week ago) (1 children)

China blocks most IPs from foreign cloud providers like AWS or Digital Ocean. And if I am not mistaken, they can also block some VPN protocols (tor is not a VPN protocol, but it is very blocked, I don't know if tor bridge works), but I am not sure which exactly.

[–] [email protected] 2 points 1 week ago (2 children)

Do mainstream VPN providers not have a Chinese solution?

[–] [email protected] 6 points 1 week ago (1 children)

They have. I don't know what people are talking about in this post. It's bypassable easily, and the CCP won't kill you for it. There are so many Chinese using aVPN themselves to bypass GFW

[–] [email protected] 1 points 1 week ago (1 children)

What brand of VPN do you use to bypass it, many of my friends are there quite frequently, none of them have a mainstream solution for it.

[–] [email protected] 2 points 1 week ago* (last edited 1 week ago)

Unfortunately it's still trial and error. Check out e.g Ovpn, Astrill, Mullvad though. You can always email and ask different providers as well. Though it's best it you set it up before visiting China. A HK sim through Airalo or similar also works.

[–] [email protected] 2 points 1 week ago* (last edited 1 week ago)

Last time I was there, express does not work, and I heard proton also does not work. However, my mobile carrier by default routes all roaming traffic through UK, so that did work.

[–] [email protected] 6 points 1 week ago (1 children)

I travelled to China in October 2023. I have a Wireshark VPN running at home with my internet provider (dinamic IP), and it worked for few hours (about 6) and they ban the IP. Resetting the router and getting a new made it work for another few hours.

As others suggested the vpn traffic is encrypted but very easy to detect. I read about some protocols that can bypass it like shadow shocks but I didn't have time to tinkering (it was my first time in China).

I ended by using the service provided by 12vpx and it worked flawlessly. Someone recommended it and it is specialized in provided access in china with lots of gateways. I never had problems with this provider.

Probably there are others that also work but that is my experience.

[–] [email protected] 3 points 1 week ago

Be careful of some of those services as they may be using botnets.

Tor snowflakes allow for volunteers to proxy traffic to Tor. They are hard to block since there is effectively unlimited IPs.

[–] [email protected] 5 points 1 week ago (1 children)

Yeah, you can look up how to setup hysteria2 and xray. Additionally you need to understand that firewall is different in different places, in some places like big cities you can even use plain openvpn (during daytime), in other more rural places almost everything is blocked.

[–] [email protected] 3 points 1 week ago

Yeah, I've heard Shanghai for example has zones where the GFW is much more lax?

[–] [email protected] 5 points 1 week ago (1 children)

I wonder why nobody has mentioned using tor

[–] [email protected] 1 points 1 week ago (1 children)

I couldn't use Tor inside China, I tried but did not establish a connection. Didn't dig into it also.

[–] [email protected] 3 points 1 week ago

Look into Snowflakes. The snowflake proxies are hosted by people in low censorship countries with the browser extension installed. The IP addresses are all over the place so they are hard to block.

[–] [email protected] 4 points 1 week ago (1 children)

Only if you want a visit from the thought police.

[–] [email protected] 5 points 1 week ago (1 children)

They do not visit you. You do not visit them. You visit bad places.

load more comments (1 replies)
[–] [email protected] 4 points 1 week ago

Not really, you need a license and you can host openvpn at tcp 443, but chances are they'll try to track you down and make your life unpleasant.

When I was there I vps bumped through Hk, that's probably harder now.

[–] [email protected] 4 points 1 week ago

Social Credit --;

[–] [email protected] 1 points 1 week ago
[–] [email protected] 1 points 1 week ago (1 children)

Yeah. But it kinda defeats the purpose.

The whole point of a VPN is to mix your traffic with tons of other people's traffic

[–] [email protected] 8 points 1 week ago (2 children)

Where in the world did you get that idea?

VPNs serve three functions:

  • add a layer of encryption so your local network operator and ISP can't inspect your traffic, its contents and its true destination. (this is what OP is looking for)

  • make it appear to the service you are connecting to, that you are connecting from a different location than where you actually are. (for example make Netflix think you're in a different region to show you different content)

  • provide secure access to private services that are not exposed directly to the Internet. IE securely connecting devices on seprate LAN networks together over the Internet via an encrypted tunnel. This is a VPNs true purpose and how they are primarily used in Professional/Comercial settings. (pretty much every corporation you've ever interacted with runs a VPN that connects its stores/warehouses/offices together)

[–] [email protected] 1 points 1 week ago

These are the true points, however the 4th reason to use a VPN is if you are using a fingerprint-resistant browser and lots of other people are too, it's harder to track who is going where, since the exit IP is shared.

If tor isn't working for whatever reason

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

If all your connections come from the same IP, and you're the only one using that IP, then everyone knows all of your traffic is associated with you.

If the advisory is the State, then the ISP will still he able to see all your traffic.

load more comments
view more: next ›