如果让v2rayn中开放多个socks5端口
有时候 我们为了测试的时候,需要开放多个不同的socks5端口,
用于在不同的浏览器实现不同的访问效果
如浏览器1 用s5代理 打开A网站, 浏览器2用s5代理打了B网站。
实现方法如下:
- 下载subconverter,然后双击运行
https://github.com/tindy2013/subconverter/releases/download/v0.9.0/subconverter_win64.7z
- 把vmss地址转化为urlencode编码后替换vmessurlcode,也有网址提供转化
http://localhost:25500/sub?target=clash&url=vmessurlcode&insert=false
页面js转化的函数如下:
http://localhost:25500/sub?target=${subtype}&url=${encodeURIComponent(filepath.replace(/n/g, "|"))}&insert=false
会看到生成的yxml中,有一个proxies节点,节点中有name,server,port,type,uuid,alterid,cipher,tls等字段的值
然后替换以下的文件,把proxies中的节点信息换成上面的信息就可以了,只需要更换ip和端口号就行,如果有多个再继续往后面加, 同时,listeners节点也要相应的追加。
allow-lan: true dns: enable: true enhanced-mode: fake-ip fake-ip-range: 198.18.0.1/16 default-nameserver: - 114.114.114.114 nameserver: - https://doh.pub/dns-query listeners: - name: mixed0 type: mixed port: 42000 proxy: p1 - name: mixed1 type: mixed port: 42001 proxy: p2 proxies: - name: p1 server: p1_ip port: 32852 type: vmess uuid: 358f991d-12f6-4666-effb-843b98b0d4ee alterId: 0 cipher: auto tls: false - name: p2 server: p2_ip port: 26172 type: vmess uuid: e23a21f4-90b2-4b07-9fe3-3c356e60765e alterId: 0 cipher: auto tls: true
- 打开v2rayn然后添加自定义服务器,把上面的文件保存为config.yml,然后添加服务器的时候选中这个文件 ,同时core类型选择mihome(新版),或者clash_meta(旧版)
- 然后chrome中的SwitchyOmega,输入127.0.0.1 :42000就可以实现不同的ip访问特定的网站了。
若能对分论点进一步细分,结构会更立体。
立意高远,以小见大,引发读者对社会/人性的深层共鸣。
每一个段落都紧密相连,逻辑清晰,展现了作者高超的写作技巧。