返回列表 發帖

newifi3 官方openwrt luci-app-v2ray client TLS + WS

本帖最後由 yiucsw 於 2020-2-18 18:14 編輯

Already install openwrt 18
openwrt v2ray client,Direct Download file, openwrt need internet access.

  1. ssh root@192.168.1.1
  2. wget -O kuoruan-public.key http://openwrt.kuoruan.net/packages/public.key
  3. opkg-key add kuoruan-public.key
  4. echo "src/gz kuoruan_packages http://openwrt.kuoruan.net/packages/releases/$(. /etc/openwrt_release ; echo $DISTRIB_ARCH)" \
  5.   >> /etc/opkg/customfeeds.conf
複製代碼


* install v2ray is slow, install before remove dnsmasq
  1. opkg update
  2. opkg install v2ray-core
  3. opkg remove dnsmasq
  4. opkg install dnsmasq-full
複製代碼

Install luci-app-v2ray
  1. wget -O kuoruan-public.key http://openwrt.kuoruan.net/packages/public.key
  2. opkg-key add kuoruan-public.key
  3. echo "src/gz kuoruan_universal http://openwrt.kuoruan.net/packages/releases/all" \
  4.   >> /etc/opkg/customfeeds.conf
  5. opkg install luci-app-v2ray
複製代碼

add sftp server, syslog, curl, GFWlist update
  1. opkg install openssh-sftp-server
  2. opkg install rsyslog
  3. opkg install curl
  4. opkg libustream-openssl
複製代碼


Reference:
https://github.com/kuoruan/openwrt-v2ray

本帖最後由 yiucsw 於 2020-1-14 23:10 編輯

内网测试, 在inbound, outbound, edit, 選要的,Result 在About tag 看到。

{
        "log": {
                "access": "\/var\/log\/v2ray-access.log",
                "loglevel": "warning",
                "error": "\/var\/log\/v2ray-error.log"
        },
        "inbounds": [
                {
                        "listen": "0.0.0.0",
                        "port": 1080,
                        "protocol": "socks",
                        "settings": {
                                "auth": "noauth",
                                "udp": false
                        },
                        "streamSettings": {
                                "sockopt": {
                                       
                                }
                        },
                        "sniffing": {
                                "enabled": true,
                                "destOverride": [
                                        "http",
                                        "tls"
                                ]
                        }
                }
        ],
        "outbounds": [
                {
                        "sendThrough": "192.168.3.99",
                        "protocol": "vmess",
                        "settings": {
                                "vnext": [
                                        {
                                                "address": "192.168.3.10",
                                                "port": 8443,
                                                "users": [
                                                        {
                                                                "id": "8b737d60-a000-4a0f-8de3-218fa0c0a3d8",
                                                                "alterId": 64
                                                        }
                                                ]
                                        }
                                ]
                        },
                        "streamSettings": {
                                "network": "ws",
                                "security": "none",
                                "wsSettings": {
                                        "path": "\/vpath"
                                },
                                "sockopt": {
                                       
                                }
                        },
                        "tag": "proxy"
                }
        ]
}

ssh 到 newifi3. 內網

curl -x socks5://127.0.0.1:1080 www.google.com
access log 在/tmp/log/v2ray-access.log

TOP

本帖最後由 yiucsw 於 2020-1-14 23:13 編輯

v2ray client and server under different public IP


ssh newifi3
测试
curl -x socks5://127.0.0.1:1080 www.google.com
電腦連Newifi3
Firefox add sock5.
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

WS + TLS change outbound


Firefox test.ok
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

透明代理:
https://github.com/kuoruan/luci-app-v2ray/issues/92
在luci界面配置好以后我还需要手动配置iptables的转发规则么?
ANS: 会自动配置好
Global Settings: Enable inbound/outbound Rule

Dokodemo enable sockopt-Tproxy=Tproxy...
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

回復 6# 321
謝謝,弄錯。

TOP

返回列表