Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daubac402/94da0f07c683f81b5f71da3535dacdf6 to your computer and use it in GitHub Desktop.
Save daubac402/94da0f07c683f81b5f71da3535dacdf6 to your computer and use it in GitHub Desktop.
Bypass outbound port firewall USING SSH Tunneling + tsocks (Tested on Windows 10 + WSL)
# You will connect to the internet through a 3rd server (using SSH Tunneling)
# And of course, this 3rd server needs to connect to the Internet freedomly!
sudo apt-get install tsocks
sudo vim /etc/tsocks.conf
Change near the end of file to:
server = 127.0.0.1
server_port = 1080
ssh -D 1080 your_username_in_3rd_server@your_3rd_server
DONE!
------ Usage ------
Setting your proxy to Using SOCKS by Internet Options (Web only)
Internet Options > Connections > LAN Settings > (check) Use a proxy ... > (then) Advanced
Input only 127.0.0.1:1080 to Socks, others: blank
OR -----
Using Firefox Proxy (for use in Firefox only - Web only)
OR -----
Using tsocks CLI (inside tsocks proccess only)
tsocks your_command
your_command will be execute using SSH Tunnel
OR -----
Using Proxifier (All traffic through SSH Tunnel)
@thanhn1012
Copy link

thanhn1012 commented Mar 11, 2022

さすがダウバクさん!

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