Install gfw.press on Ubuntu 16.xsteemCreated with Sketch.

in utopian-io •  7 years ago  (edited)

What Will I Learn?

GFW.press is an open source vpn written in Java. It helps many users to access the censored websites from China.

The official document on gfw.press only supports centos 6 x64 or Ubuntu 14.04 with jdk-8.x and is in Chinese. This tutorial will show how to install gfw.press on Ubuntu 16.4 with any JDK version > 7. Hopefully, this can inspire others to install gfw.press on different OS, as it's a good proxy to conquer GFW, sometimes maybe the only option people can choose.

  • You will learn How To Setup Environment for gfw.press on Ubuntu 16.04
  • You will learn How to Install gfw.press
  • You will learn How to Setup gfw.press in a very simple way
  • You will learn How to Connect gfw.press Server with Windows Client

Requirements

  • Ubuntu 16.04
  • jdk
  • gfw.press

Difficulty

  • Intermediate

Tutorial Contents

  1. ssh login to your Ubuntu server.

  2. Update system:

    sudo apt-get update

    sudo apt-get upgrade

    sudo apt-get -f install

  3. Install any jdk. (The official document asks to add ppa:openjdk-r/ppa, but it does not work on Ubuntu 16.04, so we will use what we have in default.)

    sudo apt-get install software-properties-common -y 
    sudo apt-get install default-jre -y
    
  4. Install proxy server spuid and pwgen.

    sudo apt-get install squid -y

    sudo squid3 start

    sudo apt-get install pwgen -y

  5. Clone gfw.press

    git clone https://github.com/chinashiyu/gfw.press

    cd gfw.press

  6. Set port/password pairs in a file named user.txt according to gfw.press rule.

    for ((i=10001; i<10101; ++i)); do pwgen -n -s -B -c 10 | sed "s/^/$i /"; done > user.tx_ ; /bin/cp -f user.tx_ user.txt ;

    gfw.press supports listening multiple ports, so you can add multiple lines of different port/password into user.txt.

  7. Run gfw.press server.

    chmod +x server.sh

    ./server.sh

  8. Test windows client.

    download windows client from https://gfw.press/GFW.Press.msi, install it and run.

    gfw.press.png

    Set server IP, port and password (note, in user.txt, there are 100 port/pwd pairs, choose any of them will work.). Click the middle button (OK) to run the client and listen to local port 3128.

    Go to Windows 10 Settings menu: The Network & Internet tab, turn on "use a proxy server", put "127.0.0.1" as address and "3128" as port number. Then click "save".
    gfw.press-client.png

    If everthing is fine, we can access censored website through gfw.press proxy now.

Curriculum

encrypted proxy project against GFW.



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Your contribution cannot be approved because it does not follow the Utopian Rules.

  • Tutorials on Utopian are expected to teach technical aspects of an open source project. Installation or setup processes are not considered as technical aspects, therefore they cannot be approved.

You can contact us on Discord.
[utopian-moderator]