Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I live in Iran and due to its restrict censorship, We all have extreme difficulties accessing normal sites and services. So I thought this would be a great idea to setup a proxy server on my VPS, so that I myself could find a way around this censorship. Can anyone show me a step by step working tutorial on this matter? Or guide me in the right direction? I will be grateful.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Do you know flossmanuals.net? They've got a great manual on How to Bypass Internet Censorship (also as epub and pdf for offline use -- and note the translations, among others in Farsi).

Among many tools and methods, they cover SOCKS proxies. But given a VPS somewhere, the other ways they mention should be considered, too. (For example how to use ssh to act as a SOCKS server, or use OpenVPN).

Beside guiding you through configuring Firefox to use SOCKS for everything (i.e. not forget DNS), they also mention tools to socksify any application (we recently had this issue coming up here).

Do not skip the chapter on Circumvention and Safety.


In particular, using a machine myvps that you can ssh into; setting up a local (say, on laptop) SOCKS5 Proxy (laptop --> myvps --> internet) can be done via running

ssh -D 1080 accountname@myvps

on the laptop. After the connection is established, you can use 127.0.0.1:1080 on laptop as a SOCKS5 server. (I'm referring to OpenSSH here, but PuTTY can do this, via Connection, SSH, Tunnels in the configuration.)

In Firefox you can tunnel all traffic through the SOCKS server via

  • Preferences - Advanced - Network - Settings...: set this to manual, SOCKS host 127.0.0.1, port 1080; and
  • the network.proxy.socks_remote_dns setting in about:config (just enter this as the URL), set this to true.
share|improve this answer
    
:Thank you verymuch. the site you introduced is censored here! but i will find a way to open it ;) Thank you again –  Hossein Aug 13 '12 at 10:14
    
can you please explain more on the ssh -D part? where you said i can easily use that to bypass proxy? i'm clueless –  Hossein Aug 14 '12 at 7:04
    
I hope I clarified the section, did I? (Btw, does this and this (use the "Premium" link) work for you?) –  sr_ Aug 14 '12 at 7:30
    
Thank you very much ;) those are great articles ;) thanks a billion again :) –  Hossein Aug 14 '12 at 14:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.