Skip to content

Instantly share code, notes, and snippets.

@JilinXie
Last active June 26, 2018 09:47
Show Gist options
  • Save JilinXie/f5c826f2ae6af3d32f354d5eb0fd28f2 to your computer and use it in GitHub Desktop.
Save JilinXie/f5c826f2ae6af3d32f354d5eb0fd28f2 to your computer and use it in GitHub Desktop.
port forwarding can be less-priced than vpn yet with better formance.
  1. Buy the right vm. aliyun vm configuration and price

  2. from mac's terminal or windows' powershell, set up the tunnel: ssh -C -N -D 9003 root@yourserver

  3. Configure a global proxy (only know how to do it on mac): mac configure proxy apply, and mac will be able to go through the overseas port-forwarding server.

  4. Arm your browser with the right plugin. For chrome, tunnelswitch is great. TunnelSwitch and add a proxy configuration.

tunnel switch configuration

Enable it, now chrome itself is able to use proxy-tunnel. You can close mac/others global proxy-configuration, so that other local apps won't be affected by the proxy.

@JilinXie
Copy link
Author

alivm

@JilinXie
Copy link
Author

macproxy

@JilinXie
Copy link
Author

tswitch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment