ssh连接 os
先ping你代理所在主机确保同一个网络
export http_proxy=http://192.168.2.54:10809
尝试curlgoogle,不要用ping,ping我这边不行。
curl -lv google.com
* Uses proxy env variable http_proxy == 'http://192.168.2.54:10809'
* Trying 192.168.2.54:10809...
* Connected to 192.168.2.54 (192.168.2.54) port 10809
> GET http://google.com/ HTTP/1.1
> Host: google.com
> User-Agent: curl/8.5.0
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 301 Moved Permanently
< Content-Length: 219
< Cache-Control: public, max-age=2592000
< Connection: keep-alive
< Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-IyqdkyTNVKL4ok97aiHF8Q' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
< Content-Type: text/html; charset=UTF-8
< Date: Thu, 14 Dec 2023 12:41:29 GMT
< Expires: Sat, 13 Jan 2024 12:41:29 GMT
< Keep-Alive: timeout=4
< Location: http://www.google.com/
< Proxy-Connection: keep-alive
< Server: gws
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 0
<
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
* Connection #0 to host 192.168.2.54 left intact
拉取
wget -O - https://get.hacs.xyz | bash -
这个代理不管是你手机弄得还是电脑,或者软路由,盘路由,都不影响,只要网络通了就行,
我这边走的电脑的代理。
如果不生效,重启多试几次,但是这个os有点奇怪,设置后ping google不行, |