電訊茶室's Archiver

yiucsw 發表於 2020-1-14 22:24

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

[i=s] 本帖最後由 yiucsw 於 2020-2-18 18:14 編輯 [/i]

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

[size=1][code]ssh root@192.168.1.1
wget -O kuoruan-public.key http://openwrt.kuoruan.net/packages/public.key
opkg-key add kuoruan-public.key
echo "src/gz kuoruan_packages http://openwrt.kuoruan.net/packages/releases/$(. /etc/openwrt_release ; echo $DISTRIB_ARCH)" \
  >> /etc/opkg/customfeeds.conf

[/code][/size]

* install v2ray is slow, install before remove dnsmasq
[size=1][code]opkg update
opkg install v2ray-core
opkg remove dnsmasq
opkg install dnsmasq-full
[/code][/size]
Install luci-app-v2ray
[size=1][code]
wget -O kuoruan-public.key http://openwrt.kuoruan.net/packages/public.key
opkg-key add kuoruan-public.key
echo "src/gz kuoruan_universal http://openwrt.kuoruan.net/packages/releases/all" \
  >> /etc/opkg/customfeeds.conf
opkg install luci-app-v2ray[/code][/size]
add sftp server, syslog, curl, GFWlist update
[size=1][code]opkg install openssh-sftp-server
opkg install rsyslog
opkg install curl
opkg libustream-openssl
[/code][/size]

Reference:
[url]https://github.com/kuoruan/openwrt-v2ray[/url]

yiucsw 發表於 2020-1-14 22:37

[i=s] 本帖最後由 yiucsw 於 2020-1-14 23:10 編輯 [/i]

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

[size=1][quote]{
        "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"
                }
        ]
}[/quote][/size]
ssh 到 newifi3. 內網

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

yiucsw 發表於 2020-1-14 23:06

[i=s] 本帖最後由 yiucsw 於 2020-1-14 23:13 編輯 [/i]

v2ray client and server under different public IP
[attach]4512[/attach]

ssh newifi3
测试
curl -x socks5://127.0.0.1:1080 [url]www.google.com[/url]
電腦連Newifi3
Firefox add sock5.
[attach]4513[/attach]

yiucsw 發表於 2020-1-14 23:32

WS + TLS change outbound
[attach]4514[/attach]

Firefox test.ok

yiucsw 發表於 2020-1-15 02:46

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

321 發表於 2020-2-18 12:48

很不錯的教學.
但是remove dnsmasq-full 這個不會使路由器的DNS功能不工作嗎?

yiucsw 發表於 2020-2-18 18:14

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=47842&ptid=7795]6#[/url] [i]321[/i] [/b]
謝謝,弄錯。

頁: [1]

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