電訊茶室's Archiver

角色 發表於 2019-4-4 15:34

PCCW + Mikrotik + NAS (V2Ray + ws + tls)

因为PCCW已经把port 80放开,那么美每个家里都可以设一个server,让port 80 (http) and 443 (https)都可以接入来。

而我现在的configur就是
ISP:PCCW 300Mbps
Router:Mikrotik
NAS:QNAP TS-453x Pro (Virtualisation Station)
V2Ray: 4.18
V2Ray settings:vmess + ws + tls
Certificate using Let's Encrypt

手机用BiFrostV连接香港的server,效果良好!

下一步可以安装Caddy,建立一个网站。

角色 發表於 2019-4-5 14:21

备用帖子2

角色 發表於 2019-4-28 01:03

[i=s] 本帖最後由 角色 於 2019-4-28 01:05 編輯 [/i]

如果你有兴趣起NAS + V2Ray + ws + tls可以跟帖讨论。

除了用Let's Encrypt起certificate外,你也可以用别的方法去create certificate,例如用openssl。

角色 發表於 2019-4-28 01:17

[i=s] 本帖最後由 角色 於 2019-4-28 01:23 編輯 [/i]

V2Ray node (client side) config.json[code]
{
  "inbounds": [
    {
      "port": 1080,  
      "protocol": "http"
    },
    {
      "port": 1081,  
      "protocol": "socks"
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "<your_domain_name_or_IP_address>",
            "port": 443,
            "users": [
              {
                "id": "<your_v2ray_server_UUID>",
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "wsSettings": {
          "path": "/2019/"
        },
        "security": "tls"
      }
    },
    {
      "protocol": "freedom",
      "tag": "direct",
      "settings": {}
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "direct"
      },
      {
       "type": "field",
        "domain": [ "geosite:cn"],
        "outboundTag": "direct"
      },
      {
        "type": "field",
        "ip": ["geoip:cn"],
        "outboundTag": "direct"
      }
    ]
  }  
}
[/code].

角色 發表於 2019-4-28 01:23

V2Ray node (server side) config.json contains[code]
{
  "inbounds":[
    {
      "protocol": "vmess",
      "port": 443,
      "settings": {
        "clients": [
          {
            "id": "<server_UUID>",
            "alterId": 64
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "wsSettings": {
          "path": "/vapth/"
        },
        "security": "tls",
        "tlsSettings": {
          "certificates": [
            {
              "certificateFile": "/etc/v2ray/cert.crt",
              "keyFile": "/etc/v2ray/cert.key"
            }
          ]
        }
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    }
  ]
}
[/code].

角色 發表於 2019-4-28 01:33

如果你用local self-signed certificate and key,你可以参考下面帖子,里面包括怎样用openssl generating certificate and key。

[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=7416&extra=page%3D1[/url]

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.