Slashdot Mirror


Tunneling Under the Great Firewall?

An anonymous reader writes "I am traveling to China in the near future, and needless to say as a Slashdot reader I am going to require access to the Internet. The whole, unadulterated, unfiltered Internet. Also needless to say, I am very leery of the government there (my lack of a nickname on this submission being testament to that). I will only be there for a few weeks, and will not be using the computer for much of that time, so I don't want to shell out a lot of money to a VPN service. However I also don't want to be hindered by extremely slow speeds such as those provided by the Tor network. I have experience implementing Web servers and work fairly often with Linux; however, many of my friends who also face the same dilemma don't. What would be the most cost-effective (free is best) method for me to subvert the Great Firewall during my travels while maintaining sufficient anonymity and enjoying sufficient speed?"

22 of 403 comments (clear)

  1. Good luck! by grub · · Score: 5, Interesting


    At my workplace we have people who travel to China. On occasion VPN connections from China just stop for hours or days at at time. No hits at our VPN endpoint from China at all; the traffic is stopped upstream somewhere while everything else that is unencrypted works.

    That's the only country we have people visit where the VPN can be problematic.

    --
    Trolling is a art,
    1. Re:Good luck! by Aqualung812 · · Score: 4, Insightful

      If you use a SSL proxy, make sure you note the fingerprint of the one you want to use BEFORE you go. Compare it when there to make sure you don't get a man in the middle attack.

      --
      Grammer Nazis - I mod you "troll" unless you actually add something on-topic. Yes, I know I have mispellings in my sig.
    2. Re:Good luck! by Cimexus · · Score: 5, Informative

      Yep, mod parent up.

      Even better, make one yourself. Grab an old box you have lying around, whack a copy of Ubuntu on it (or other Linux distro of your choice), enable SSH server and leave it running on your net connection at home. Then using PuTTY or whatever on your laptop you're taking to China, make SOCKS proxy/SSL tunnel to your home box and you are good to go.

      Free software and simple to do. Speeds are limited by the speed of your connection in China, and obviously the upstream speed of your net connection back home. But should be enough for basic browsing.

  2. SSH by Hatta · · Score: 5, Informative

    SSH tunneling with SSH -D is trivial to set up. Make sure you forward DNS with network.proxy.socks_remote_dns set to true if you're using Firefox.

    I think I read that SSH can even create a virtual network device that forwards all traffic over a tunnel. Haven't had time to play with that though. That would be a great solution for every app, even those that don't support SOCKS proxies.

    --
    Give me Classic Slashdot or give me death!
    1. Re:SSH by leuk_he · · Score: 4, Informative

      Yup.

      -Setup a ssh server outside of china, always on. for windows use some port like copsshd.
      -Set ip up at an alternate port (not 22, use 443), it will obfuscate it a little bit.

      In china run ssh client, putty can do this, tunnelier has some more options
      https://calomel.org/firefox_ssh_proxy.html
      Then use proxy options of firefox to send traffic over this proxy. Be careful no to leak too much dns info.

    2. Re:SSH by richardellisjr · · Score: 4, Insightful

      I'm not sure if this is what your referring to but I use a SSH socks proxy and tsocks under linux quite a bit to allow proxy unaware apps to be use it (like RDP). The only issue I have with this setup is DNS. Since it primarily uses UDP not TCP for lookups they are all performed against the locally configured name servers not the remote. I haven't found an elegant solution for this yet but your network.proxy.socks_remote_dns config may help a lot (I've never heard of that before).

      For the original submitter, I understand your reluctance to being restricted and object to the idea of the great firewall as much as the next guy, however is completely open access really worth breaking the law there and potentially being imprisoned in China. Also keep in mind that while you may object to the concept of the firewall but you are a guest in the country and breaking any countries laws while as such is really disrespectful. If you really don't like the law don't travel there, if your trying to make some sort of political statement (which I doubt) then best of luck to you... China isn't well know for being good sports about that sort of thing.

    3. Re:SSH by norminator · · Score: 4, Insightful

      While the traveler is in China it's probably not a good idea to risk legal issues with the Chinese government.

    4. Re:SSH by WNight · · Score: 4, Insightful

      respect and saving face is a huge part of the culture

      And in other places they eat live eels. There's a lot of stupid shit in the world.

      While what you say may be true, to say it like that is like saying we should give them a pass for their obnoxious behavior simply because they're used to it... Shall we give racists in our home countries a free pass on their idiocy simply because it's cultural for them to be hating?

      flip the tables and say some guy wanted to view CP in the US

      Oh please do drag that stupid CP argument out here so we can kick it to death.

      The US allows brutal degradation of actresses for porn, depictions of rape and murder, actual footage of such (usually), depictions of infants being cooked and fed to dogs, etc, etc, etc. And in the middle of that they want to draw a fence around CP.

      Many token arguments are made, such as it encouraging real abuses, but they could be made for any of the rest of that cesspool. Ultimately they all fail to the brutal reality that censorship and FUD aren't security. The blind panic around CP is growing old, we can see it's not actually doing anything to protect anyone. And the censorship not only wouldn't help, and is immoral to implement, but is impossible.

      I'd support someone looking up communism when it was the panic word. How could I draw the line at some other panic word? And even if I could, how could I know I wasn't just panicking? So no. For practical and ethical reasons we can't censor even if the content disgusts, scares us, or reveals our war-crimes.

      circumventing the laws of a nation of which you are not a citizen is not only illegal

      Tautologically, circumventing any law is legal. And just as meaninglessly, breaking a law is always illegal. But is the law right? Is the nation valid?

  3. Screenshare by bobdotorg · · Score: 4, Interesting

    Before leaving, set up a computer with decent upstream bandwidth and VNC / screen share. Pretty simple, and only shows a connection to that one IP address. If you use OSX it's a 30 second setup in sharing preferences, and I'm sure that there are windows and Linux equivalents. You may need to tweak the ports to get under the Great Firewall.

    However, one significant drawback (with the OSX solution) is that audio is not streamed. Another is lag with slow / far connections.

    But it will get you the full net.

    --
    __ Someday, but not this morning, I'll finally learn to use the preview button.
  4. Anonymous? by Hoi+Polloi · · Score: 4, Funny

    Just change your online name to "FreeTibet". They'll never notice.

    --
    It is by the juice of the coffee bean that thoughts acquire speed, the teeth acquire stains. The stains become a warning
  5. Re:Really? by flippy10 · · Score: 5, Informative

    http://en.wikipedia.org/wiki/List_of_websites_blocked_in_the_People's_Republic_of_China Those definitely all sound like sites chock full of state secrets.

  6. Ummmm... by Anonymous Coward · · Score: 5, Insightful

    I suggest that you play nice with China's laws if you are going to China. Trying to bypass their firewall as a foreigner traveling there is more likely to attract the sort of attention you don't want than anything else. As you said, you're just going to be there for a few weeks. Do you *really* need to search for the kind of stuff they filter out while you are there?

    My wife travels regularly to China for work. We are very careful about our conversations on the phone when she's there, and about the emails we send when she's there. I sure as hell would never advise her to try to bypass their firewall.

    If you are a Chinese freedom activist, by all means, you know what you're getting into, bypass away. I support the people of China in their efforts to access the whole internet, to speak their minds, to be as free as they care to be.

    If you are a Westerner visiting, I'd suggest you just hold your horses there bucko and deal with the internet you can get from your hotel room and don't make yourself look more suspicious than you actually are. You really, really don't want anybody to think you are doing anything against Chinese interests while you're there. Seriously.

  7. Re:Fear by grub · · Score: 5, Informative


    Besides, the Chinese and Asian in general are quite relaxed people.

    It isn't the general population causing the VPN problems we have with people travelling in China, it's the government.

    --
    Trolling is a art,
  8. Re:Fear by Moridineas · · Score: 4, Insightful

    Slashdot rails against DMCA, censorship, walled gardens, etc, and you expect the Chinese government to get a free pass? What a joke.

    You can raise frail strawmen all you want, but it's not about how "relaxed" Asians or anything else like "hate and fear" that you've just made up in your post. It's very specifically about the Chinese government. Exactly what part of "I am very leery of the government" have you completely failed to understand?

    Is this REALLY a conversation you want to get into?

  9. Re:Tor, maybe? by tomz16 · · Score: 4, Funny

    As long as we are going with "things the original author specifically discounted in his post", I think he should purchase VPN service...

  10. Re:Is ssh blocked? by DoctorNathaniel · · Score: 4, Informative

    I have done this from Beijing and it worked the week I was there.

    FoxyProxy is a nice add-on to use for this, since it allows you to either whitelist specific sites for use through the proxy, or to simply switch back and forth to the proxy as you need.

  11. Dear Slashdot " how do i commit a crime" by nurb432 · · Score: 4, Insightful

    What you are asking is illegal there. If you get caught bad things will happen to you. Is it really worth the risk for a couple of weeks? Are you THAT addicted?

    --
    ---- Booth was a patriot ----
  12. Re:China asks Slashdot how to catch hungry minds by Tsunayoshi · · Score: 4, Insightful

    Hey, if all information wants to be free, it will be free for everyone, including the "bad guys".

    --
    "Get a bicycle. You will not regret it, if you live." - Mark Twain, "Taming the Bicycle"
  13. Re:Really? by BobMcD · · Score: 5, Insightful

    While not necessarily the best tone in the world, I actually agree with DJ Jones here.

    Here's your decision tree:

    1) Is the website you want to see worth defying the laws of your hosting nation?

    2) Is absolutely no way you can do without it until you come home?

    3) Do you have some kind of diplomatic immunity, wealthy connections, etc that can extract you from a sticky situation?

    You get the picture.

    Imagine this post on the Arabian Slashdot:

    I am getting ready to travel to the United States and don't want it to interrupt my terrorist training. Can you guys recommend a way around the DHS's websniffing protocols, eavesdropping, cellular tracking, etc?

    And what would your advice be??

    Opportunistically, if you gave advice about methods, would you feel bad if he landed in Gitmo?

    Think about the implications. After all, it is only the internet and you don't live there. Think deeply.

  14. Re:Fear by Lumpy · · Score: 4, Insightful

    Yup. I dont understand also other parts of the question...

    "Shell out a lot of money for a VPN service..." $9.95US for 1 month is a Lot of money?

    He also claims he knows computers yet does not think of setting up his own VPN gateway at home? It's clear he is not moving there, just going there for a few weeks. Nobody I know terminates all their leases and sells all their stuff to go out of the country even for a few months....

    Pay $9.95 for VPN service each month, or set up a linux box as a VPN point. Call it done.

    --
    Do not look at laser with remaining good eye.
  15. Re:Fear by afabbro · · Score: 5, Insightful

    "Hi, I'm a college student who thinks computers are cool but I don't really get into code or anything. I run Linux because it's L33T and strikes a blow against THE MAN! BTW, I can't get the latest version of Fedora to boot, but that's another question. Anyway, when I get to China I want to connect to some site outside China that the firewall blocks. I will then come back and tell my friends how cool I am! How I am cyberpunk and stuff! Striking a blow for FREEDOM! I mean, yeah, I'd just be doing a search for Falun Gong on Google, even though I'm not really sure who they are, but still, it'd be SO L33T! I know that I'm a dangerous underground revolutionary because I'm posting anonymously on Slashdot out of FEAR OF THE CHINESE GOVERNMENT! Angela Davis ain't got nothing on me. I mean, I'm not crazy - I wouldn't invest $10 for VPN service for this, and your talk of setting up my own VPN gateway is confusing (can I just apt-get that and connect from a kiosk in the Beijing airport?). OK, actually about 95% of the time I dual boot to Windows except when progressive chicks might be walking by my dorm room, and then I switch to Linux with a big tux wallpaper..."

    --
    Advice: on VPS providers
  16. LOL by Demena · · Score: 4, Insightful

    That is exactly why I won't visit the USA.