Skip to content

Uncensored Internet Access for the People of Iran

License

Notifications You must be signed in to change notification settings

saeedfweb/liberty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Create Your Own VPN Server

Prerequisites

  • Basic to intermediate knowledge of Linux.
  • Basic to intermediate knowledge of networking.
  • A Virtual Private Server (VPS) running preferably Ubuntu with Docker pre-installed.
  • If Docker is not already installed on your VPS, you must do it yourself.
  • Access to credit card or PayPal account or Bitcoin payment

Get a VPS

You need to get yourself a VPS as the first step. I can recommend the following providers:

  • OVHcloud
    • 💵 Starting at €3.5/month
    • 📤 100 Mbps unlimited outbound
  • PulseHeberg
    • 💵 Starting at €4/month
    • 💳 Accepts Bitcoin payments!
    • 📤 250 Mbps unlimited outbound
    • ✅ If you're a student, you can get a huge discount!
  • DigitalOcean
    • 💵 Starting at $4/month
    • 📤 Starting at 512 GB of free outbound transfer
    • ✅ If you're s student, you can get a $200 coupon via GitHub Student Developer Pack program valid for 1 year!
  • Vultr
    • 💵 Starting at $6/month
    • 📤 2 TB of free outbound transfer.

Then, access your cloud server using a terminal. It is expected that you already know the how-to. So, I'm not going to go into details.

Method 1: ShadowsocksR

Server

  • Pull the ShadowsocksR's Docker image using the following command:
docker pull alibo/shadowrocket-docker
  • Run the following command to create and run a container:
docker run -d --restart=always -e "SSR_PORT=1443" -e "SSR_PASSWORD=12345678" -e "SSR_METHOD=chacha20-ietf" -e "SSR_OBFS=http_post_compatible" -p 80:1443 -p 80:1443/udp alibo/shadowrocket-docker

NOTE: Make sure to change the value of the field SSR_PASSWORD!

Client

Android

  • Download the APK file from here.
  • Install the app on your phone and open it.
  • Touch the "ShadowsocksR" at the top left. Then, touch the "+" sign at the bottom right corner and choose Manual Settings.
  • Now you need to manually enter the details. Here's a quick guide:
    • Group Name: Optional
    • Profile Name: Whatever you like
    • Server: The external IP address of your VPS
    • Remote Port: 80 (By default it is set to 8388. When you click on this number, the keyboard will pop up and you can enter 80 more easily.)
    • Local Port: 1080
    • Password: Your chosen password (same as SSR_PASSWORD)
    • Encrypt Method: chacha20-ietf
    • Protocol: auth_aes128_md5
    • Protocol Param: Leave empty
    • Obfs: http_post
    • Obfs Param: Leave empty
    • Route: All
    • UDP Forwarding: ON
    • Leave the remaining options in their default states.
  • All set! Now connect to the server using the paper rocket icon at the top right and check whether you can browse the internet.
  • Inside the app, touch the "ShadowsocksR" at the top left again. You must be able to see a "Share" icon in front of your profile name. Touch it and choose Copy URL.
  • This is the URL (starting with ssr:https://) that you should give out to your friends and family.
  • Now, you should try to prepare easy-to-follow instructions for the others to install the app and import the configuration. What they'll need to do is to copy the URL you got from the previous step, and import it into the app using the "+" sign. They'll have to choose Import from Clipboard.

iOS

  • Download the application from here. It's called Potatso Lite.
  • Open the app and click on Add a Proxy.
  • From the Manual Input section, click on Add.
  • Now you need to manually enter the details. Here's a quick guide:
    • Type: ShadowsocksR
    • Host: The external IP address of your VPS
    • Port: 80
    • Encryption: chacha20-ietf
    • Password: Your chosen password (same as SSR_PASSWORD)
    • Remark: Whatever name you like
    • Protocol: auth_aes128_md5
    • Protocol Param: Leave empty
    • Obfs: http_post
    • Obfs Param: Leave empty
  • All set! Click on Done. Now connect to the server using the "Play" icon at the bottom right and check whether you can browse the internet.
  • Inside the app, select Manage. Drag the profile from right to left and choose Share. Now select Copy URI to Clipboard.
  • This is the URI (starting with ssr:https://) that you should give out to your friends and family.
  • Now, you should try to prepare easy-to-follow instructions for the others to install the app and import the configuration. What they'll need to do is to copy the URI you got from the previous step, open the app, click on Add a Proxy, from the Auto Import section choose Proxy URI and paste the URI there.

Credits

About

Uncensored Internet Access for the People of Iran

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published