Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created September 29, 2025 10:46
Show Gist options
  • Save Integralist/4c22a8e430f817df0e37decc0143723a to your computer and use it in GitHub Desktop.
Save Integralist/4c22a8e430f817df0e37decc0143723a to your computer and use it in GitHub Desktop.
SOCK5 Proxy

Some people run a SOCKS5 proxy locally that proxies their internet traffic through a different location.

To access the proxy via your web browser you can either modify your system-wide proxy settings or use a Google Chrome browser extension, or in the case of Firefox manually configure the proxy settings.

Modify System-Wide Settings

  • Open System Preferences > Network.
  • Select the active network interface (e.g., Wi-Fi or Ethernet) and click Advanced.
  • Go to the Proxies tab.
  • Check SOCKS Proxy and enter localhost as the SOCKS Proxy Server and 1080 as the port (or whatever the port number is).
  • Click OK and then Apply.

Alternatively, use the terminal:

sudo networksetup -setsocksfirewallproxy "Wi-Fi" 127.0.0.1 1080
sudo networksetup -setsocksfirewallproxystate "Wi-Fi" off

Use Browser Extension (Google Chrome)

  • Install the extension [Proxy SwitchyOmega][13] from the Chrome Web Store.
  • After installation, click on the extension icon and choose New Profile.
  • Set the proxy Protocol to SOCKS5.
  • Enter localhost as the Server and 1080 as the Port.
  • Click on Apply changes in the side bar.
  • Visit [ipinfo.io][14] and check your normal IP is showing.
  • Activate the new proxy profile via the Chrome extension.
  • Refresh the web page and check your IP is now changed.

Firefox Proxy Settings

  • Open Settings.
  • Search for proxy.
  • Select Manual proxy configuration.
  • In SOCKS Host type localhost and 1080 for the Port.
  • Finally, select SOCKS v5 and click OK.

Providing Certificates

In order to access some systems you might find the web browser prompts you to provide a certificate. You'll need to import the certificate into your web browser.

Tip

The recommendation is to use Firefox rather than Chrome (even if the latter is your default browser). The reason is that Chrome uses the OS's certificate store and so you'd need to modify that vs Firefox allowing you to import your own certificates directly into the browser.

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