首页 > 其他分享 >mac os socks5转http proxy

mac os socks5转http proxy

时间:2023-07-24 17:23:27浏览次数:42  
标签:core http local brew mac usr privoxy homebrew os

1.使用homebrew安装privoxy,但安装时报错:

https://juejin.cn/post/6961616069941264415

homebrew 执行 brew update 报错

Error: homebrew-core is a shallow clone. To `brew update`, first run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow This command may take a few minutes to run due to the large size of the repository. This restriction has been made on GitHub's request because updating shallow clones is an extremely expensive operation due to the tree layout and traffic of Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you automatically to avoid repeatedly performing an expensive unshallow operation in CI systems (which should instead be fixed to not use shallow clones). Sorry for the inconvenience!
  • 解决方法:直接干掉原homebrew-core文件,重新brew update
  • rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
  • brew update
  2.安装privoxy

安装配置

brew install privoxy

vim /usr/local/etc/privoxy/config

listen-address 0.0.0.0:8118
forward-socks5 / 127.0.0.1:18888 .

注意:18888为本地的socks5的代理端口(有大用,可以使用ssh隧道开启)

启动 privoxy

sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config

 

手机上设置代理端口为 ip:8118,即可使用。



标签:core,http,local,brew,mac,usr,privoxy,homebrew,os
From: https://www.cnblogs.com/hanxianlong/p/17577787.html

相关文章

  • 解决非同源跨域不带cookie问题(原生、axios、fetch写法)
    原生js写法varxhr=newXMLHttpRequest();xhr.open('GET','http://localhost:7001/api/userinfo',true);xhr.withCredentials=true;//开启withCredentialsxhr.onreadystatechange=function(){if(xhr.readyState==4&&xhr.stat......
  • PostgreSQL 相关
    pgsql下载地址.net库nugetnpgsql4.1.12查询时表名要加"",否则会报关系"xx"不存在。heidisql列举数据库有错误,public并不是数据库名称。列举数据库sql:SELECTdatnameFROMpg_database;......
  • HttpClient-请求参数
    demo:packagetest;importorg.apache.http.client.methods.CloseableHttpResponse;importorg.apache.http.client.methods.HttpGet;importorg.apache.http.impl.client.CloseableHttpClient;importorg.apache.http.impl.client.HttpClients;importorg.apache.htt......
  • 快速检测HTTP代理IP是否有效的方法及python代码示例
     1.使用在线代理检测工具:有许多免费的在线代理检测工具可用,如ProxyChecker、ProxyScrape等。只需将待检测的代理IP和端口输入工具中,点击开始检测,即可迅速获得代理的可用性和匿名性等信息。 2.使用命令行工具进行检测:在命令行中使用curl命令来测试代理的可用性。例如,输入命令"......
  • iOS8开发-Swift编程
    课时列表章节1:第一个Swift应用课时1:编程初体验章节2:第二个Swift应用课时2:加法计算器章节3:第三个Swift应用课时3:四则运算计算器章节4:第四个Swift应用课时4:......
  • SpringBoot基于Spring Security的HTTP跳转HTTPS
    简单说说之所以采用SpringSecurity来做这件事,一是SpringSecurity可以根据不同的URL来进行判断是否需要跳转(不推荐),二是不需要新建一个TomcatServletWebServerFactoryBean,新建这个Bean可能会导致SpringBoot关于Server的配置失效。三是网上大部分流传的通过实现WebServerFactor......
  • vmware安装minimal centos报错/etc/rc5.d/s99local : line:25 : eject : command not
    1.vmware安装minimalcentos报错/etc/rc5.d/s99local:line:25:eject:commandnotfoundhttp://www.centoscn.com/image-text/install/2015/1130/6459.html 2.vmwareworkstation上安装centoshttp://www.linuxidc.com/Linux/2016-05/131701.htm 3.虚拟机可以ping通主机和8.8......
  • rdma-core--cmatose.c
    分析:头部信息#include<stdlib.h>#include<string.h>#include<stdio.h>#include<errno.h>#include<sys/types.h>#include<sys/socket.h>#include<netdb.h>#include<getopt.h>#include<rdma/rdma_cma.h>#i......
  • mac安装brew
    mac安装brew1. /bin/bash-c"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"2.  (echo;echo'eval"$(/opt/homebrew/bin/brewshellenv)"')>>/Users/amy.zhang/.zprofile3. eval"$......
  • photoshop 色阶
        photoshop中的色阶,参考https://helpx.adobe.com/cn/photoshop/using/levels-adjustment.html对于色阶的解释,“外面的两个“输入色阶”滑块将黑场和白场映射到“输出”滑块的设置。默认情况下,“输出”滑块位于色阶0(像素为黑色)和色阶255(像素为白色)。“输出”滑块位于......