News for hackers. Stuff that matters.
Re:Do you need a VPN? by terrywang on Monday October 30, 2017 @07:42PM (#15590007)
Grew up in China (moved to Australia since early 2008) where GFW is in place and getting overwhelmingly powerful, I've been through multiple stages to cross the `great wall`, SSH Dynamic Forwarding, PPTP, OpenVPN and now IPsec (strongSwan). The GFW has evolved so much (capable of massive scale MITM attack, DNS spoofing, traffic sniffing etc. you'll be amazed how capable the GFW is - of course courtesy of the team behind it) that it makes increasingly more difficult for people to access the real Internet.

I've ditched PPTP (not safe any more) and shifted to IPsec (IKEv2 + RSA with X509, IKEv1 + PSK + XAUTH) as it is being used by a lot of MNCs - can't killall. The GFW has developed technique to detect OpenVPN well and it is easily blocked so I don't use it at all. Over the past few years many home brewed protocols emerge - e.g. shadowsocks and variants and many others (I've never used any of them).

The best thing to do with VPN is that to understand the basics of the VPN solution of choice, try to install and configure from scratch on VPS and use that as your main protection (encapsulation) while using public Wi-Fi or untrusted network. There's been many good discussions on how to do this on HN.

NOTE: I am maintaining around 10 strongSwan powered IPsec VPN and 2 OpenVPN to help family members and close friends to access the real Internet (have to keep a low-profile though). Funny though, my networking skills evolved with GFW.

Re:Do you need a VPN? by rqs on Monday October 30, 2017 @11:27PM (#15590912)
VPN and SSH or other public (detectable) protocols are goner for very long time now. I don't understand why you guys still trying to use it.

In China, you may need to use one (Or multiple) of following:

https://github.com/shadowsocks https://github.com/v2ray https://github.com/XX-net https://github.com/ginuerzh/gost

And +https://github.com/gfwlist/gfwlist for automatic proxy switch.

Those applications may require a dedicated server or VPS to run. Once you set it up, it will act like a relay between you and the host you want to access (So that server or VPS must located outside GFW's shadow. And you better set it up and get it well tested before you move to China).

If you don't want to setup a server all by yourself, you can use Lantern or Psiphon, but they are considered not safe as you don't have any control once data leaves your machine.

I personally use Shadowsocks + my own one made with Golang. Both of them works very good for me. Some people may had problem with Shadowsocks but cause of those problems remain a myth.

Re:Do you need a VPN? by rtpg on Tuesday October 31, 2017 @01:01AM (#15591174)
I was in China a couple months ago and ExpressVPN worked fine for me, are they actually using their own custom protocol?
Re:Do you need a VPN? by bonzini on Tuesday October 31, 2017 @04:26AM (#15591723)
ExpressVPN is the only one afaik that is allowed by the Chinese government. You can assume that it is actually not "private".

When I was in China last April, SSTP worked fine (though long-lived connections tend to become slower over time, and then need a few minutes of cool down before being usable again). Most Chinese people I met were using shadowsocks.

Re:Do you need a VPN? by vfulco on Wednesday November 01, 2017 @03:04AM (#15599309)
Many friends indicated Express was down almost an entire week surrounding the big meetings. Not as reliable as it once was. Or so they say
Re:Do you need a VPN? by hnarn on Tuesday October 31, 2017 @04:38AM (#15591757)
Doesn't matter if it's not "private" if you have certified encryption though, right?
Re:Do you need a VPN? by dspillett on Tuesday October 31, 2017 @05:05AM (#15591830)
I think his assertion is that as it is "allowed" by China's government that they somehow have access to the keys (or the VPN provider is keeping a buffer of the traffic and has an arrangement to provide it to relevant government agencies upon request).
Re:Do you need a VPN? by rqs on Tuesday October 31, 2017 @01:31AM (#15591279)
I have no experience with ExpressVPN, so I can't help you with that.

But in a vlog I've watched on Youtube, the host of that vlog said "Over the last coupe of days, ALL the VPN is been very difficult to use". So, I guess that includes ExpressVPN.

Here is the video if you interested: https://www.youtube.com/watch?v=EuEdYvQmVFg (5:20)

Re:Do you need a VPN? by akaa on Tuesday October 31, 2017 @06:55AM (#15592235)
Im in china at the moment using expressvpn (been using it for a year by now) and since about two weeks only three server locations work well (Hong Kong, Tokyo, Los Angeles). Some others work off an on. Before that most locations worked and some of them, Taiwan for example, used to be very fast. Its still usable for streaming and surfing but I'm afraid the end is near. I think sometime in the future one will have to go with shadow socks and or similar protocols/solutions but until then expressvpn is quite convenient (mobile client, router with expressvpn client).
Re:Do you need a VPN? by baki on Tuesday October 31, 2017 @12:42PM (#15594569)
Maybe. Vypr VPN has an own "Chameleon" protocol. Maybe Express has it's own
Re:Do you need a VPN? by ineedtosleep on Monday October 30, 2017 @08:31PM (#15590233)
I was in China this year and found it surprising that it's as powerful as it is. Consequently, I also found out how powerful not having the entire internet is. The amount of information/sites I wasn't able to access due to it not being accessible at all; or "accessible" but never fully downloadable (i.e. javascript not able to download fully, other assets blocking actual content from being loaded) was staggering.

Coupled with the official cable TV service, which is amusingly abbreviated CCTV[1], and other state-controlled media, it's an eye-opening thing to see (more blatant) information control in action.

[1] https://en.wikipedia.org/wiki/China_Central_Television

Re:Do you need a VPN? by forapurpose on Tuesday October 31, 2017 @01:12AM (#15591221)
> The amount of information/sites I wasn't able to access due to it not being accessible at all; or "accessible" but never fully downloadable (i.e. javascript not able to download fully, other assets blocking actual content from being loaded) was staggering.

Can you read Chinese? I ask because if not, the experience of people who can might be very different.

I'm completely against the censorship; I just wonder how effectively they implement it.

Re:Do you need a VPN? by danmaz74 on Tuesday October 31, 2017 @06:20AM (#15592092)
Not OP, but I suppose that people only reading Chinese in China won't notice this much, because most (all?) of what they find is inside the Great Firewall and thus under control (direct or indirect) of the Chinese government. But that's exactly as intended.
Re:Do you need a VPN? by whooshee on Monday October 30, 2017 @10:00PM (#15590615)
Because GFW (maybe accidentally) blocked quite a few CDNs, that influenced many other 'not-on-list' sites overseas to download their assets properly.
Re:Do you need a VPN? by pavs on Tuesday October 31, 2017 @09:44AM (#15593147)
Hijacking the top comment to link to something I wrote recently.

As someone who owns and works and knows the ins and outs of an ISP and had the 'pleasure' to deal with many 3-word government organization, I can't help but feel that many people think privacy exist in some form and using VPN somehow makes you immune.

Please learn to understand double-speak. If the FBI says they are having a hard time cracking smart-phones or some kind of encryption, understand that they actually want you to use that security because they have figured out how to get around it.

I may sound like an alarmist, but it isn't intentional - because the government is much much more powerful in terms of resources they can throw at a problem - if they can't crack something they will find a way to intimidate someone to install a backdoor for them while completely denying it in public. This happens ALL the time. Most of us just don't know about it.

http://www.slashgeek.net/2017/10/23/online-privacy-doesnt-ex...

Re:Do you need a VPN? by weavejester on Wednesday November 01, 2017 @10:15AM (#15601284)
"Please learn to understand double-speak. If the FBI says they are having a hard time cracking smart-phones or some kind of encryption, understand that they actually want you to use that security because they have figured out how to get around it."

Do you have any evidence, or is this just speculation? I can buy that governments have access to zero-day exploits; I don't buy that every form of encryption they complain about has been secretly been broken.

Re:Do you need a VPN? by uoaei on Monday November 13, 2017 @06:46AM (#15685790)
Infosec 101: if it truly is a problem for you, you don't tell anyone.
Re:Do you need a VPN? by dvcrn on Monday October 30, 2017 @10:02PM (#15590626)
I just went to Shanghai, bought a local SIM card and installed any VPN app from the App Store on my phone (I used "HexaTech"). Had no problems at all with it, even with the free tier. I was kind of surprised how easy it was to get through the GFW
Re:Do you need a VPN? by PakG1 on Monday October 30, 2017 @10:34PM (#15590736)
Being in China now, I can say that just because it works doesn't mean that it's great. I think the government has demonstrated multiple times that they can block and throttle VPN connections at the flick of a switch. If one works, it's because of the government's mercy, not because of some circumvention team's ingenuity. That's my final conclusion. Yes, new methods might break through those times the switch gets turned on to block, but those new methods get blocked eventually too. It's an arms race where one side has near unlimited funding.
Re:Do you need a VPN? by halfelf on Monday October 30, 2017 @10:59PM (#15590815)
The most terrible fact about GFW is that it makes people forget they have a chance to access the other part of internet. Most netizens here don't even have a idea to cross it.
Re:Do you need a VPN? by forapurpose on Tuesday October 31, 2017 @01:14AM (#15591229)
Remember that Chinese people who do it are subject to attracting negative government attention; they face much more risk, even it works.
Re:Do you need a VPN? by fantispug on Monday October 30, 2017 @11:25PM (#15590904)
The amount of censorship varies by province; I wouldn't be surprised if it is easier in Shanghai than in other parts of China.
Re:Do you need a VPN? by BlackPlot on Tuesday October 31, 2017 @04:39AM (#15591759)
I'm in Beijing. After ExpressVPN was down a friend of mine recommended to give a try for NordVPN as Astrill looks like China's government VPN which logs everything. And I was surprised - Nord works significantly and costs just over 3 bucks.
Re:Do you need a VPN? by apexalpha on Tuesday October 31, 2017 @10:10AM (#15593327)
When I was in China for 6 months I just wrapped my OpenVPN in a regular TCP tunnel with stunnel https://www.stunnel.org/index.html

Was slow, but it worked.

Re:Do you need a VPN? by stevenjohns on Monday October 30, 2017 @08:22PM (#15590196)
I will be traveling to China in a couple of days and was ignorantly hoping my OpenVPN-based VPN would work.

Do you recommend that I set up strongSwan?

Re:Do you need a VPN? by jbg_ on Tuesday October 31, 2017 @03:46AM (#15591625)
Another option is roaming on a foreign SIM card - this usually bypasses the GFW quite effectively; roaming is effectively a VPN back to the home provider, and there seems to be some whitelist for these roaming tunnels. The providers probably provide surveillance access to the Chinese govt, but you will not have trouble accessing Google and other blocked sites, and any VPN you like should work fine through a roaming SIM.

Whether you can find one with reasonable data rates in China is probably the main question.

Two that I have used with great success are Kyivstar from Ukraine and China Unicom HK (note it must be HK, not mainland China). Others may be listed at [0].

[0] http://prepaid-data-sim-card.wikia.com/

Re:Do you need a VPN? by L_Rahman on Tuesday October 31, 2017 @10:26AM (#15593451)
I can confirm that the foreign SIM card override works from my experience a couple of years ago.

My T-Mobile had free international roaming baked in at 2G speeds. Unlike the US however, most foreign carriers in developed Asian nations (China/Korea) don't support 2G fallback, so I had free 3G everywhere.

It was pretty much like using the American internet.

Re:Do you need a VPN? by terrywang on Monday October 30, 2017 @08:33PM (#15590251)
Try to change the default port 1194 to something else (e.g. 443) - this may not help as the GFW has the ability to detect OpenVPN specific traffic.

If it is only for yourself and traffic is very little, it may survive the period of your stay in China. Nobody I know in mainland runs OpenVPN any more so I cannot really prove that, sigh...

Re:Do you need a VPN? by scott_karana on Tuesday October 31, 2017 @10:39PM (#15598480)
That trick no longer works at all, to my knowledge. The GFW is wise to it.

That's why Tor had to implement HTTPS-like fake traffic padding in its obfsproxy modules, which also need to keep evolving...

Re:Do you need a VPN? by ineedtosleep on Monday October 30, 2017 @08:33PM (#15590252)
I used PIA with relative success. The caveats being:

1. DNS resolution may not work, so you'll need to find a way to resolve the domain name (i.e. hk.privateinternetaccess.com) to IPs for your config.

2. Even if you get an IP it may not work all the time. You will have to keep resolving the domain name for another IP (or maybe just look at all the DNS records?).

EDIT: I should mention I used PIA's PPTP (yes, it's discouraged but it worked for my purposes) and L2TP configurations just fine.

Re:Do you need a VPN? by rahimnathwani on Monday October 30, 2017 @08:48PM (#15590317)
Set up Shadowsocks. (OpenVPN won't work regardless of port and choice of udp/tcp, unless you tunnel it through obfsproxy or similar.)
Re:Do you need a VPN? by ymhuang0808 on Monday October 30, 2017 @11:48PM (#15590975)
A few months ago, I went to Shanghai. Before going to China, I setup the Shadownsock on my server. My 4G network is roaming SIM card. I can surf on Google Map over my SIM card without any proxy or VPN. To prevent from sniffing, I always connect to the network via OpenVPN with non default port.

In hotel, the Wi-Fi network cannot connect to many sites. Sometimes, I can connect the Internet via OpenVPN, but, Shadowsocks is more stable.

Re:Do you need a VPN? by whooshee on Monday October 30, 2017 @10:01PM (#15590621)
Just use Psiphon or ShadowsocksR, you will be fine, don't use a cliche old VPN.
Re:Do you need a VPN? by foxthrowaway on Tuesday October 31, 2017 @11:59PM (#15598715)
If your VPN server is used by many users it tends to be detected and blocked by GFW. In case you found managing shadowsocks servers cumbersome, you may want to check out https://foxshadowsocks.com They manage shadowsocks servers for you and allow you to move servers across regions (to get a new IP).
Re:Do you need a VPN? by yeukhon on Monday October 30, 2017 @10:37PM (#15590751)
I still believe some of the loopholes are intentional left alone by the government.
Re:Do you need a VPN? by darkmighty on Monday October 30, 2017 @10:50PM (#15590791)
With China being such a manufacturing powerhouse, I can imagine loopholes are essential to keep international business and trade in order.
Re:Do you need a VPN? by zhte415 on Tuesday October 31, 2017 @01:10AM (#15591215)
International companies can apply for VPN which allows them to legally use one. They need to attest that it will be used for business purposes; this should sensibly part of the negotiation process when investing and establishing a presence.
Re:Do you need a VPN? by PakG1 on Tuesday October 31, 2017 @05:00AM (#15591817)
I'm not sure about VPNs? As I understand, it's corporate lines to overseas that's allowed. That's what we use, we lease bandwidth on a major submarine cable that goes to California and sign a contract that says we won't be using it to break laws, and Vvv we tell our employees to only use it for work.
Re:Do you need a VPN? by zhte415 on Wednesday November 01, 2017 @08:13AM (#15600441)
The data has to get from office to submarine cable, VPN is needed. When logging in from home, I need to select the end-point of the VPN, so I'm pretty sure it is a VPN. This is common with any country - connecting to the corporate network must be via VPN (unless the corporate is crazy and in violation of many laws disclosing customer data).
Re:Do you need a VPN? by PakG1 on Friday November 03, 2017 @05:12AM (#15617714)
Nope, ISP gives us fiber that goes from our PoP in Shenzhen to Guangzhou to Hong Kong (roundabout way because they have no fiber direct from Shenzhen to Hong Kong), and somewhere down the line, it hooks up with the submarine cable. No VPN at all.
Re:Do you need a VPN? by zhte415 on Saturday November 11, 2017 @03:42AM (#15675534)
It is not encrypted?
Re:Do you need a VPN? by yeukhon on Monday October 30, 2017 @11:57PM (#15591002)
If it is a loophole it is not legitimate. To keep business and trade IN ORDER it would be legal. I think some of the loopholes are “honeypot” just to capture potential intelligence.
Re:Do you need a VPN? by antihero on Tuesday October 31, 2017 @10:25AM (#15593447)
Can you use SSH? If so, can you SSH tunnel?

Furthermore, if ExpressVPN is allowed, could you connect to that and inner-tunnel to your own VPN?

Re:Do you need a VPN? by terrywang on Tuesday October 31, 2017 @08:28PM (#15597969)
SSH Dynamic forwarding (ssh -D) to do application-level port forwarding and configure browser to use remote host to do DNS lookup was 1 of the earliest techniques to bypass the GFW and was countered by the GFW long time ago. The wall can easily detect non-administrative SSH traffic and block it. So I won't recommend using it, it is not reliable.