返回列表 發帖
买了Newif3. Config 一天後才知道樓主為什麼直接用openwrt. 而不用Pandrabox,LEAN....
enable V2ray :
echo 0xDEADBEEF > /etc/config/google_fu_mode
Memory full,write error!!! 又要重裝。

TOP

本帖最後由 yiucsw 於 2019-12-13 17:15 編輯

剛安裝完openwrt, V2ray 在 newwifi3. 在那個看到 UUID? Ubuntu 好像是直接顯示。
openwrt 是自己Generate?

TOP

本帖最後由 yiucsw 於 2019-12-13 19:26 編輯

同 gameplayer 遇到的問題是一樣:
root@OpenWrt:/etc/init.d# v2ray enable
V2Ray 4.21.3 (V2Fly, a community-driven edition of V2Ray.) OpenWrt - Release 1
A unified platform for anti-censorship.
main: failed to load config:  > v2ray.com/core/main/confloader/external: config file not readable > open : no such file or directory
-------------------------------------------
加上-config parameter, 能運行,Default config file location 已經改變,不知道新位置在哪裡,是vpath?

root@OpenWrt:/# v2ray -config /etc/config/v2ray.json enable
V2Ray 4.21.3 (V2Fly, a community-driven edition of V2Ray.) OpenWrt - Release 1
A unified platform for anti-censorship.

是不是加 &
v2ray -config /etc/config/v2ray.json start &

TOP

本帖最後由 yiucsw 於 2019-12-14 09:09 編輯

謝謝,你的sample Start file 是正確的,不知道昨天為什麼不能用
/etc/init.d/v2ray enable

昨天是比較懶,加了link, default 在 /usr/bin/config.json
/etc/config# ln v2ray.json /usr/bin/config.json
# v2ray enable
V2Ray 4.21.3 (V2Fly, a community-driven edition of V2Ray.) OpenWrt - Release 1
A unified platform for anti-censorship.

問問到了這步能直接測試V2ray,還是要加Webserver。debug will be easier.

TOP

本帖最後由 yiucsw 於 2019-12-14 20:58 編輯

try V2ray, cannot start by init.d, but can started by vray &
do not know where to find the v2ray log. add echo test to v2ray and no echo inside start_service.
as test, v2ray and v2ray.config use the sample you provided and modified accordingly.
Reset the openwrt few times and just add the v2ray and v2ray.conf is still not working.
-test -config do not product any error.
v2ray -config can run and grep can find the pid.
v2ray client cannot access thru 8443 port.
在luci startup - 按restart : "/etc/init.d/v2ray start" action: Command failed

TOP

both chmod +x ; chmod 755, 都沒有效果。

TOP

本帖最後由 yiucsw 於 2019-12-15 05:05 編輯

用比較笨的方法, install luci-app-v2ray
1) before install luci-app-v2ray, rm dnsmasq, install dnsmasq-full
/etc/init.d/dnsmasq stop
opkg remove dnsmasq
opkg instlal dnsmasq-full

2) 安装rsyslog. 在system log 看的v2ray message
opkg install rsyslog
/etc/init.d/rsyslog enable
/etc/init.d/rsyslog start
安装后,所有的运行日志都可以直接在/var/log/messages中查看了

3) Install Luci-app-v2ray
opkg install luci-app-v2ray

4) 配置V2ray

Verify custom config 是否成功


5)firewall setting: Network - Firewall - Traffic rules - down to "Open ports on router"

reboot.

6) kitsunebi client
只能訪問192.168.1.1
下一步 如何Config 。。。
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

本帖最後由 yiucsw 於 2019-12-18 00:16 編輯

謝謝,這兩天嘗試 Routeros + 軟路由(NUC) 官方openwrt + V2ray... 還是用你的Sample config. (testing environment)(主要是 2nd Newifi 沒到)

Routeros enable port forward
firewall filter

firewall NAT rule


ESXI 加 V2ray VM. Delete harddisk, add 官方openwrt VMDK, add network adapter.

找不到對應的ethx 最簡單是 兩張都是 internal network, 到LUCI 192.168.1.1 再改。

建議ESXI 加Windows VM. disable internal network adapter 再enable, openwrt 便能DHCP新IP。
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

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

V2ray x86 side
V2ray ipk 下載:
https://github.com/kuoruan/openwrt-v2ray/releases
選 v2ray-core_4.21.3-1_x86_64.ipk
upload to openwrt and install

安裝 luci for V2ray
https://github.com/kuoruan/luci-app-v2ray
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 update
在 LUCI software 安裝 luci-app-V2ray
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

本帖最後由 yiucsw 於 2019-12-20 13:05 編輯

Config V2ray sample
inbound - add


inbound detail, copy sample to different area

outbount - add


outbound detail, select options


select the inbound and outbound sample
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

本帖最後由 yiucsw 於 2019-12-20 13:06 編輯

結果:
Android 上Run Kitsunebi (v2ray client)

能access 1st Mikrotik Router.


WhatismyIP 能找到 routeros 的 public IP。
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

本帖最後由 yiucsw 於 2019-12-18 10:49 編輯

不想在手機,電腦上安裝V2ray,是否 能在中國的Newifi 3 做透明代理。有沒有sample config?
現在研究websocket proxy,是支持 protocol ws? tls?
在Godaddy ip 更新,還是找其他domain park 還是用openwrt 的Godaddy script?
已有Let's encrypt certification.

TOP

error log from httpd:
2019-12-18 08:14:00: (server.c.1441) WARNING: unknown config-key: url.redirect (ignored) .
openwrt system.log 沒有什麼信息。
如何 debug?

TOP

本帖最後由 yiucsw 於 2019-12-19 01:14 編輯

其實想用Candy,但要軟路由才有力去推。
install lighttpd from luci-system-software. select three module.

luci-system-startup 按 enable 按 start lighttpd。按 restart, 當改完 config file.


SSLforfree 下載 ca_bundle.crt, certificate.crt, private.key.
lighttpd.pem file 是 cat private.key certificate.crt.crt  > lighttpd.pem
vi lighttpd.pem 加一個return 分開 key 同 crt。
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

openwrt Firewall, 開 8080 (website), 開443(v2ray).


到網站。Fake 的信息


p.s.
在ROS 上 port forward 到 openwrt VM. port 8080 到 80,port 443 到 443.

網上的 其他 lighttpd Redirect, Fake youku 請求。
https://th0masxu.gq/index.php/archives/300
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

返回列表