about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-06-05 20:24:24 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-06-05 20:24:24 +0700
commit8cce6a2c29e76f95e114721f6584df4bcf953880 (patch)
tree38668ba69a5e33cdc46557ab4cc4a5d13a3293f0
parent3c7457a964ace6bd6cd396e5076aeca6ab7651f6 (diff)
downloadblog-8cce6a2c29e76f95e114721f6584df4bcf953880.tar.gz
Add post on SOCKS proxy
-rw-r--r--content/posts/2023-06-05-socks-proxy.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/content/posts/2023-06-05-socks-proxy.md b/content/posts/2023-06-05-socks-proxy.md
new file mode 100644
index 0000000..3cde202
--- /dev/null
+++ b/content/posts/2023-06-05-socks-proxy.md
@@ -0,0 +1,35 @@
+---
+title: "SOCKS Proxy via SSH"
+date: 2023-06-05
+draft: true
+lang: en
+categories: [ blog ]
+tags: [tips, guide, "SOCKS proxy"]
+translationKey: "2023-06-05-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 <abbr>SSH</abbr> to, setting up a
+SOCKS connection is dead simple:
+
+```sh
+ssh -D [port] [host]
+```
+
+where `[host]` is the host name you specified in the <abbr>SSH</abbr> 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/