Board logo

標題: ubnutu下使用v2ray客户端,求助! [打印本頁]

作者: phava    時間: 2019-11-21 16:52     標題: ubnutu下使用v2ray客户端,求助!

本帖最後由 phava 於 2019-11-21 16:56 編輯

ubnutu环境下使用v2ray客户端
1.已使用官方脚本安装好。
2.配置好/etc/v2ray/config.json
3.已设好浏览器代理设置;
以上我都做好了,config文件修改过几个版本。可是就是上不了外网。在此求助大家,谢谢。
以下是截图:
1.service v2ray status查看到的v2ray运行状态。
[attach]4462[/attach]
2.浏览器的配置
[attach]4463[/attach]
3.config文件代码
  1. {
  2.     "log": {
  3.         "loglevel": "warning"
  4.     },
  5.     "inbound": {
  6.         "listen": "127.0.0.1",
  7.         "port": 1080,
  8.         "protocol": "socks",
  9.         "settings": {
  10.             "auth": "noauth",
  11.             "udp": true,
  12.             "ip": "127.0.0.1"
  13.         }
  14.     },
  15.     "outbound": {
  16.         "protocol": "vmess",
  17.         "settings": {
  18.             "vnext": [
  19.                 {
  20.                     "address": "00.00.00.00",//v2ray服务器的ip
  21.                     "port": 0000,                 //v2ray服务器的端口
  22.                     "users": [
  23.                         {
  24.                             "id": "0000-0000-000-00000-0000-000",// 用户id
  25.                             "level": 1,
  26.                             "alterId": 000   //
  27.                         }
  28.                     ]
  29.                 }
  30.             ]
  31.         },
  32.         "streamSettings": {
  33.             "network": "kcp"
  34.         }
  35.     },
  36.     "outboundDetour": [
  37.         {
  38.             "protocol": "freedom",
  39.             "settings": {},
  40.             "tag": "direct"
  41.         }
  42.     ],
  43.     "routing": {
  44.         "strategy": "rules",
  45.         "settings": {
  46.             "rules": [
  47.                 {
  48.                     "type": "field",
  49.                     "port": "54-79",
  50.                     "outboundTag": "direct"
  51.                 },
  52.                 {
  53.                     "type": "field",
  54.                     "port": "81-442",
  55.                     "outboundTag": "direct"
  56.                 },
  57.                 {
  58.                     "type": "field",
  59.                     "port": "444-65535",
  60.                     "outboundTag": "direct"
  61.                 },
  62.                 {
  63.                     "type": "field",
  64.                     "domain": [
  65.                         "gc.kis.scr.kaspersky-labs.com"
  66.                     ],
  67.                     "outboundTag": "direct"
  68.                 },
  69.                 {
  70.                     "type": "chinasites",
  71.                     "outboundTag": "direct"
  72.                 },
  73.                 {
  74.                     "type": "field",
  75.                     "ip": [
  76.                         "0.0.0.0/8",
  77.                         "10.0.0.0/8",
  78.                         "100.64.0.0/10",
  79.                         "127.0.0.0/8",
  80.                         "169.254.0.0/16",
  81.                         "172.16.0.0/12",
  82.                         "192.0.0.0/24",
  83.                         "192.0.2.0/24",
  84.                         "192.168.0.0/16",
  85.                         "198.18.0.0/15",
  86.                         "198.51.100.0/24",
  87.                         "203.0.113.0/24",
  88.                         "::1/128",
  89.                         "fc00::/7",
  90.                         "fe80::/10"
  91.                     ],
  92.                     "outboundTag": "direct"
  93.                 },
  94.                 {
  95.                     "type": "chinaip",
  96.                     "outboundTag": "direct"
  97.                 }
  98.             ]
  99.         }
  100.     }
  101. }
複製代碼

作者: kingwilliam    時間: 2019-11-21 17:18

本帖最後由 kingwilliam 於 2019-11-21 17:20 編輯

回復 1# phava

你的v2ray是socks, 但你的browser选了http,
不用选 “为所有协议.......”
http
ssl
ftp全都不要

***   只应选socks 如下图   ***

    [attach]4464[/attach]
作者: phava    時間: 2019-11-21 20:42

回復 2# kingwilliam


    朋友,我按照你的方法试验,还是不行。
作者: kingwilliam    時間: 2019-11-21 22:26

本帖最後由 kingwilliam 於 2019-11-21 22:28 編輯

回復 3# phava

可否再post debug log 和 浏览器的配置




歡迎光臨 電訊茶室 (http://www.telecom-cafe.com/forum/) Powered by Discuz! 7.2