Last active
March 11, 2022 06:15
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
さすがダウバクさん!