返回列表 發帖
看起来,透明代理複雜多。Performance 如何?

TOP

本帖最後由 yiucsw 於 2020-1-15 08:48 編輯

昨天重装Newif3 v2ray client. 看到Luci-app-v2ray 有更新,試了一下,只要加你的vmess outbound parameter. V2ray 便能用。再跟你的TPROXY v2ray.config,click troxy tab。好像便 不用set sock5, whatismyipaddress 顯示Server IP 地址。不知道是不是TRPROXY。
感謝你的幫忙。


*luci-app-v2ray 是在中國Client用的。不用set iptables, 不用set startup script.

TOP

本帖最後由 yiucsw 於 2020-1-15 09:04 編輯

luci-app-v2ray generated script.
  1. {
  2.         "log": {
  3.                 "access": "\/var\/log\/v2ray-access.log",
  4.                 "loglevel": "warning",
  5.                 "error": "\/var\/log\/v2ray-error.log"
  6.         },
  7.         "routing": {
  8.                 "domainStrategy": "IPOnDemand",
  9.                 "rules": [
  10.                         {
  11.                                 "type": "field",
  12.                                 "ip": [
  13.                                         "geoip:private",
  14.                                         "geoip:cn"
  15.                                 ],
  16.                                 "outboundTag": "direct"
  17.                         },
  18.                         {
  19.                                 "type": "field",
  20.                                 "domain": [
  21.                                         "geosite:cn"
  22.                                 ],
  23.                                 "outboundTag": "direct"
  24.                         },
  25.                         {
  26.                                 "type": "field",
  27.                                 "protocol": [
  28.                                         "bittorrent"
  29.                                 ],
  30.                                 "outboundTag": "direct"
  31.                         },
  32.                         {
  33.                                 "type": "field",
  34.                                 "port": "53",
  35.                                 "network": "udp",
  36.                                 "inboundTag": [
  37.                                         "transparent"
  38.                                 ],
  39.                                 "outboundTag": "dns_out"
  40.                         },
  41.                         {
  42.                                 "type": "field",
  43.                                 "ip": [
  44.                                         "1.1.1.1",
  45.                                         "8.8.8.8",
  46.                                         "208.67.222.222"
  47.                                 ],
  48.                                 "outboundTag": "proxy"
  49.                         }
  50.                 ]
  51.         },
  52.         "inbounds": [
  53.                 {
  54.                         "listen": "0.0.0.0",
  55.                         "port": 1080,
  56.                         "protocol": "socks",
  57.                         "settings": {
  58.                                 "auth": "noauth",
  59.                                 "udp": false
  60.                         },
  61.                         "streamSettings": {
  62.                                 "sockopt": {
  63.                                        
  64.                                 }
  65.                         },
  66.                         "sniffing": {
  67.                                 "enabled": true,
  68.                                 "destOverride": [
  69.                                         "http",
  70.                                         "tls"
  71.                                 ]
  72.                         }
  73.                 },
  74.                 {
  75.                         "port": 1081,
  76.                         "protocol": "dokodemo-door",
  77.                         "settings": {
  78.                                 "followRedirect": true,
  79.                                 "network": "tcp"
  80.                         },
  81.                         "streamSettings": {
  82.                                 "sockopt": {
  83.                                         "tproxy": "redirect"
  84.                                 }
  85.                         },
  86.                         "tag": "transparent",
  87.                         "sniffing": {
  88.                                 "enabled": true,
  89.                                 "destOverride": [
  90.                                         "http",
  91.                                         "tls"
  92.                                 ]
  93.                         }
  94.                 }
  95.         ],
  96.         "outbounds": [
  97.                 {
  98.                         "sendThrough": "0.0.0.0",
  99.                         "protocol": "vmess",
  100.                         "settings": {
  101.                                 "vnext": [
  102.                                         {
  103.                                                 "address": "yourservr.dynu.net",
  104.                                                 "port": 443,
  105.                                                 "users": [
  106.                                                         {
  107.                                                                 "id": "8b737d60-a000-4a0f-8de3-218fa0c0a3d8",
  108.                                                                 "alterId": 64,
  109.                                                                 "security": "chacha20-poly1305"
  110.                                                         }
  111.                                                 ]
  112.                                         }
  113.                                 ]
  114.                         },
  115.                         "streamSettings": {
  116.                                 "network": "ws",
  117.                                 "security": "tls",
  118.                                 "tlsSettings": {
  119.                                         "serverName": "yourserver.dynu.net",
  120.                                         "allowInsecure": true,
  121.                                         "allowInsecureCiphers": false,
  122.                                         "disableSystemRoot": false,
  123.                                         "certificates": [
  124.                                                
  125.                                         ]
  126.                                 },
  127.                                 "wsSettings": {
  128.                                         "path": "\/vpath"
  129.                                 },
  130.                                 "sockopt": {
  131.                                         "mark": 255
  132.                                 }
  133.                         },
  134.                         "tag": "proxy",
  135.                         "mux": {
  136.                                 "enabled": true,
  137.                                 "concurrency": 8
  138.                         }
  139.                 },
  140.                 {
  141.                         "protocol": "freedom",
  142.                         "settings": {
  143.                                
  144.                         },
  145.                         "streamSettings": {
  146.                                 "sockopt": {
  147.                                         "mark": 255
  148.                                 }
  149.                         },
  150.                         "tag": "direct"
  151.                 },
  152.                 {
  153.                         "protocol": "dns",
  154.                         "settings": {
  155.                                
  156.                         },
  157.                         "streamSettings": {
  158.                                 "sockopt": {
  159.                                         "mark": 255
  160.                                 }
  161.                         },
  162.                         "tag": "dns_out"
  163.                 }
  164.         ]
  165. }
複製代碼


Hope it works。

TOP

返回列表