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

  • @[email protected]
    link
    fedilink
    English
    73 months ago

    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.

    • NaibofTabr
      link
      fedilink
      English
      223 months ago

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

      • Higgs boson
        link
        fedilink
        English
        6
        edit-2
        3 months 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]
    link
    fedilink
    English
    213 months 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]
    link
    fedilink
    English
    83 months ago

    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]
      link
      fedilink
      English
      173 months ago

      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

      • @[email protected]
        link
        fedilink
        English
        13 months ago

        It’s getting a little better now because they can just scan in what they wrote and OCR it

  • @[email protected]
    link
    fedilink
    English
    53 months ago

    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.

  • NaibofTabr
    link
    fedilink
    English
    7
    edit-2
    3 months ago

    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]
      link
      fedilink
      English
      43 months 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]
      link
      fedilink
      English
      103 months ago

      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.

      • NaibofTabr
        link
        fedilink
        English
        83 months ago

        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]
          link
          fedilink
          English
          53 months 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 spoiler

          I work in the vpn industry and we had multiple consultations and tests done in china.

  • @[email protected]
    link
    fedilink
    English
    43 months 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]
    link
    fedilink
    English
    6
    edit-2
    3 months ago

    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]
        link
        fedilink
        English
        2
        edit-2
        3 months 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]
        link
        fedilink
        English
        63 months ago

        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]
          link
          fedilink
          English
          13 months ago

          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]
            link
            fedilink
            English
            2
            edit-2
            3 months 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]
    link
    fedilink
    English
    14
    edit-2
    3 months ago

    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]
    link
    fedilink
    English
    44
    edit-2
    3 months 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.

  • Shimitar
    link
    fedilink
    English
    213 months ago

    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.

    • Ulrich
      link
      fedilink
      English
      13 months ago

      How will they detect “VPN traffic”?

      • @[email protected]
        link
        fedilink
        English
        73 months ago

        To someone watching network traffic, a VPN connection looks like two machines exchanging encrypted packets. You can’t see the actual data inside the packet, but you can see all the metadata (who it’s addressed to, how big it is, whether its TCP or UDP, when it’s sent). From the metadata, you can make guesses about the content and VPN would be pretty easy to guess.

        When sending a packet over the Internet, there’s two parts of the address: the IP address and the port. The IP address is a specific Internet location, blocks of IP addresses are owned by groups (who owns what is public info) and there are many services that do geo-ip mappings. So if you’re connecting to an IP address that belongs to a known VPN provider, that’s easy.

        The second part of the address is the port-number. Servers choose port-numbers to listen to and the common convention is to use well-known ports. So, for example, HTTPS traffic is on port 443. If you see a computer making a lot of requests to port 443, even though the traffic is encrypted we can guess that they’re browsing the web. Wikipedia has a list (which is incomplete because new software can be written at any time and make up a new port that it prefers) and you can see lots of VPN software on there. If you’re connecting to a port that’s known to be used by VPN software, we can guess that you’re using VPN software.

        Once you’re running VPN software on an unknown machine and have configured it to use a non-standard port, it’s a bit harder to tell what’s happening, but it’s still possible to make a pretty confident guess. Some VPN setups use “split-tunnel” where some traffic goes over VPN and some over the public Internet. (This is most common in corporate use where private company traffic goes in the tunnel, but browsing Lemmy would go over public.) Sometimes, DNS doesn’t go through the VPN which is a big give-away: you looked up “foo.com” and sent traffic to 172.67.137.159. Then you looked up “bar.org” and sent traffic to the same 172.67.137.159. Odds are that thing is a VPN (or other proxy).

        Finally, you can just look at more complex patterns in the traffic. If you’re interested, you could install Wireshark or just run tcpdump and watch your own network traffic. Basic web-browsing is very visible: you send a small request (“HTTP GET /index.html”) and you get a much bigger response back. Then you send a flurry of smaller requests for all the page elements and get a bunch of bigger responses. Then there’s a huuuuge pause. Different protocols will have different shapes (a MOBA game would probably show more even traffic back-and-forth).

        You wouldn’t be able to be absolutely confident with this, but over enough time and people you can get very close. Or you can just be a bit aggressive and incorrectly mark things as VPNs.

      • Shimitar
        link
        fedilink
        English
        33 months ago

        Deep level packet inspection, they detect patterns or whatever in encrypted traffic (and the lack of thereof) and ban the destination ip china-wide.

        How they do I have no idea, but they do, on my direct first hand experience. Its not based on domain names, directly straight and total ip ban. All ports, all domains on that ip get banned forever just because you started using a VPN (OpenVPN in my case, it was a few years ago).

        • @[email protected]
          link
          fedilink
          English
          13 months ago

          You need something like stunnel/OpenVPN flag which masks your traffic as HTTPS I think. Even then DPI can probably detect it

          • @[email protected]
            link
            fedilink
            English
            13 months ago

            They’re looking for traffic patterns. It doesn’t matter what encryption you’re using, If it’s point to point, they’re going to find it and disable it.