Skip to content

Instantly share code, notes, and snippets.

@7aman
Forked from m3y54m/terminal-proxy-settings.md
Created March 4, 2026 04:39
Show Gist options
  • Select an option

  • Save 7aman/1b7f8dc857b5ae50395f0d9b4aca1d8e to your computer and use it in GitHub Desktop.

Select an option

Save 7aman/1b7f8dc857b5ae50395f0d9b4aca1d8e to your computer and use it in GitHub Desktop.
Set Proxy in Terminal (Bash, CMD, PowerShell, etc.)

Set Proxy in Terminal (Bash, CMD, PowerShell, etc.)

Assume that you want to set 127.0.0.1:10809 as HTTP proxy and 127.0.0.1:10808 as SOCKS proxy.

CMD (Windowss Command Line)

Configure the proxy server manually using netsh command

Tunnel all your internet traffic through a HTTP proxy

netsh winhttp set proxy 127.0.0.1:10809

Tunnel all your internet traffic through a SOCKS proxy

netsh winhttp set proxy proxy-server="socks=127.0.0.1:10808" bypass-list="127.0.0.1"

View the current proxy settings:

netsh winhttp show proxy

Clear all proxy settings:

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