I’ve configuration the proxy in macOS 13.2.1 terminal(utilizing iterm proper now) like this:
➜ retire git:(grasp) env|grep 'proxy'
all_proxy=socks5://127.0.0.1:7890
then utilizing curl to entry google:
➜ retire git:(grasp) curl -L -v google.com
* Makes use of proxy env variable all_proxy == 'socks5://127.0.0.1:7890'
* Making an attempt 127.0.0.1:7890...
* SOCKS5 hook up with IPv4 142.251.42.238:80 (domestically resolved)
* SOCKS5 request granted.
* Linked to (nil) (127.0.0.1) port 7890 (#0)
> GET / HTTP/1.1
> Host: google.com
> Consumer-Agent: curl/7.86.0
> Settle for: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Completely
< Location: http://www.google.com/
< Content material-Kind: textual content/html; charset=UTF-8
< Date: Wed, 15 Mar 2023 23:22:56 GMT
< Expires: Fri, 14 Apr 2023 23:22:56 GMT
< Cache-Management: public, max-age=2592000
< Server: gws
< Content material-Size: 219
< X-XSS-Safety: 0
< X-Body-Choices: SAMEORIGIN
<
* Ignoring the response-body
* Connection #0 to host (nil) left intact
* Difficulty one other request to this URL: 'http://www.google.com/'
* Makes use of proxy env variable all_proxy == 'socks5://127.0.0.1:7890'
* Hostname 127.0.0.1 was present in DNS cache
* Making an attempt 127.0.0.1:7890...
* SOCKS5 hook up with IPv4 159.138.20.20:80 (domestically resolved)
* SOCKS5 request granted.
* Linked to (nil) (127.0.0.1) port 7890 (#1)
> GET / HTTP/1.1
> Host: www.google.com
> Consumer-Agent: curl/7.86.0
> Settle for: */*
>
^C
it couldn’t fetch the google html code. I even have tried to configure the proxy with my wifi like this:
nonetheless couldn’t work. is it doable to utilizing proxy in terminal? this configuration in google chrome works advantageous. the wifi proxy was enabled:
➜ retire git:(grasp) networksetup -getwebproxy Wi-Fi
Enabled: Sure
Server: 127.0.0.1
Port: 7890
Authenticated Proxy Enabled: 0