From 11a7b9b66ce34258a895d2d875fe1e7c0a278b9c Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Wed, 24 Apr 2024 22:47:39 +0700 Subject: Rename TIL to software notes --- content/sw-notes/socks-proxy.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 content/sw-notes/socks-proxy.md (limited to 'content/sw-notes/socks-proxy.md') diff --git a/content/sw-notes/socks-proxy.md b/content/sw-notes/socks-proxy.md new file mode 100644 index 0000000..c1accf0 --- /dev/null +++ b/content/sw-notes/socks-proxy.md @@ -0,0 +1,34 @@ +--- +title: "SOCKS Proxy via SSH" +date: 2023-06-05 +lang: en +categories: [software, guide] +tags: [tips, guide, "SOCKS proxy"] +translationKey: "socks-proxy" +--- + +[SOCKS (RFC 1928)][socks] is a protocol that can be, as said in the +RFC itself, used for firewall traversal, or some other types of network +blocking. + +If you have a remote server that you can SSH to, setting up a +SOCKS connection is dead simple: + +```sh +ssh -D [port] [host] +``` + +where `[host]` is the host name you specified in the SSH config +file. + +How to get your software to direct its connection through this proxy depends on +the program. For example, in Firefox, you have to go to the setting and set it +in the network settings---use your server's address and the port you used +earlier. In Chromium and similar forks, add +`--proxy-server="socks5://host:port"` to the parameter in the command line. +Read more on the instruction for [Firefox][guide-fox] and +[Chromium][guide-chrom] on their respective websites. + +[socks]: https://www.rfc-editor.org/rfc/rfc1928 +[guide-fox]: https://support.mozilla.org/en-US/kb/connection-settings-firefox +[guide-chrom]: https://www.chromium.org/developers/design-documents/network-stack/socks-proxy/ -- cgit 1.4.1