-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
安装后路由访问不了外网 #52
Comments
在这里 https://github.com/Loyalsoldier/v2ray-rules-dat/releases/ 下载 geoip.dat 和 geosite.dat 放到 /usr/share/xray 下面。 |
谢谢回复! Tue Jun 8 08:00:36 2021 user.info transparent-proxy-ipset[4847]: flush_ipset_rules |
你的这个 watchdog 是什么? |
1.xray_watchdog.log一直重复以下内容: Available commands:
2.外网访问不了,就是路由本身就访问不了外网。网页上就提示说“没有连网”,以下10.10.10.11是我的主路由 Downloading http://downloads.openwrt.org/releases/19.07.7/packages/x86_64/base/Packages.gz Downloading http://downloads.openwrt.org/releases/19.07.7/packages/x86_64/freifunk/Packages.gz |
dns 解析就有问题啊。。。 |
root@xray:~# ping 114.114.114.114 |
root@xray:~# dig @114.114.114.114 baidu.com ; <<>> DiG 9.16.15 <<>> @114.114.114.114 baidu.com ;; OPT PSEUDOSECTION: ;; ANSWER SECTION: ;; Query time: 20 msec |
如果说你能 ping 通 114.114.114.114 的话,不应该有什么问题。。。 你试试 以及
不是,而且这个脚本里面没这功能。即使它挂了,应该会由 procd 拉起来而不是用定时任务处理 |
root@xray:~# dig @127.0.0.1 -p 5353 baidu.com ; <<>> DiG 9.16.15 <<>> @127.0.0.1 -p 5353 baidu.com root@xray: config general config servers config servers config servers |
删了cron里watch_dog的内容后(奇怪这个是哪里来的?),transparent pxoxy rule设为cn,国内可以访问了,但外网还是访问不了,设成telegram也不行。当然,确定uuid和domain是正确的。 设成cn ; <<>> DiG 9.16.15 <<>> @127.0.0.1 -p 5353 baidu.com ;; QUESTION SECTION: ;; ANSWER SECTION: ;; Query time: 10 msec 设成telegram ; <<>> DiG 9.16.15 <<>> @127.0.0.1 -p 5353 baidu.com |
感谢! |
顺便问一下,更新geoip.dat和geosite.dat后,xray服务需要重启才生效吗? |
要的。 |
早上还正常,刚刚就不行了。没动过任何配置,域名访问也没问题(android上的v2rayng正常,没梯子情况下域名可以访问) |
看了几个类似 case,目前看通过域名连接到服务端的方式可能还是有些不稳定(解析的时候可能出现死循环)。 |
直接用IP还是上不了外网,现像跟上次一样,log里死循环倒是没了。 |
你有没有装一些其他的会改 iptables 或者 dnsmasq 的配置的东西? |
没有啊,重新做的系统,没装其它东西,除了网络,其它没改过 Chain FORWARD (policy DROP 0 packets, 0 bytes) Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) Chain forwarding_lan_rule (1 references) Chain forwarding_rule (1 references) Chain forwarding_wan_rule (1 references) Chain input_lan_rule (1 references) Chain input_rule (1 references) Chain input_wan_rule (1 references) Chain output_lan_rule (1 references) Chain output_rule (1 references) Chain output_wan_rule (1 references) Chain reject (1 references) Chain syn_flood (1 references) Chain zone_lan_dest_ACCEPT (4 references) Chain zone_lan_forward (1 references) Chain zone_lan_input (1 references) Chain zone_lan_output (1 references) Chain zone_lan_src_ACCEPT (1 references) Chain zone_wan_dest_ACCEPT (2 references) Chain zone_wan_dest_REJECT (1 references) Chain zone_wan_forward (0 references) Chain zone_wan_input (0 references) Chain zone_wan_output (0 references) Chain zone_wan_src_REJECT (1 references) |
我想看一下主要是 mangle 和 nat 两个表的配置。。。需要 |
openwrt里这个命令要怎用?要安装什么包? |
就,打进去这个命令,回车就行了,啥也不用装啊 |
root@xray: |
iptables-save |
不好意思 :P Generated by iptables-save v1.8.3 on Fri Jun 11 23:22:16 2021*nat Completed on Fri Jun 11 23:22:16 2021Generated by iptables-save v1.8.3 on Fri Jun 11 23:22:16 2021*mangle Completed on Fri Jun 11 23:22:16 2021Generated by iptables-save v1.8.3 on Fri Jun 11 23:22:16 2021*filter Completed on Fri Jun 11 23:22:16 2021root@xray:~# |
为什么你的 mangle 表完全是空的,这肯定会有问题。。。 上面这个 iptables-save 的结果是在启动了 xray 之后上不了网的情况下打出来的嘛,如果是的话麻烦贴一下 |
是这样的,xray启动后 config defaults config zone config zone config forwarding config rule config rule config rule config rule config rule config rule config rule config rule config rule config include config include 'xray' root@xray:~# |
这,include 有啊,mangle 表咋会是空的呢。。。 你试试 |
顺便打这个命令 |
root@xray:~# cat iptables.bak Generated by iptables-save v1.8.3 on Fri Jun 11 23:35:39 2021*nat Completed on Fri Jun 11 23:35:39 2021Generated by iptables-save v1.8.3 on Fri Jun 11 23:35:39 2021*mangle Completed on Fri Jun 11 23:35:39 2021Generated by iptables-save v1.8.3 on Fri Jun 11 23:35:39 2021*filter Completed on Fri Jun 11 23:35:39 2021root@xray:~# lua /usr/share/xray/firewall_include.lua enable |
emmmmmmm 为什么会没有这个文件的。。。如果你之前能用的话这个文件是被莫名其妙删掉了么 你看看 |
root@xray:~# ls /usr/share/xray/ -l |
opkg 还能把文件装丢了的么。。。。。。 |
是啊,只有opkg,没有其它动作。 |
重新 opkg install 或者缺什么就 wget 什么就好了 |
root@xray:~# opkg install luci-app-xray_1.0.9-1_x86_64.ipk
|
infinite_retry 那个应该不碍事,或者 touch 一个空的就行了。那个其实是编译的时候通过一个开关控制的 #46 (comment) |
Fri Jun 11 23:59:22 2021 daemon.info procd: - init complete - |
看起来正常了,你用 ip 连接的话需要把 tls 那个 insecure 勾上,或者也可以换回之前的域名 |
是的,用IP地址可以了,但用域名仍不行 |
域名的问题我这边之后再想想怎么处理,现在是把那几个域名写到 xray 的配置里面走直连,之后我看看能不能在 dnsmasq 里面也多写一个应该就能解决这个 infinite loop 了。 |
恢复正常了。 |
问一下大佬是安装了哪2个ipk,我完好像也没有看懂是哪个 |
替大佬回复你 :) |
我也是编译好了,但是也是你的问题链接不了外网,我的ip改成192.168.2.1 |
建议你新开一个issue,贴上相关的log,版主会帮你的 |
官方OpenWrt 19.07.7
安装的信息:
transparent-proxy-ipset[12967]: Generating Xray configuration files...
transparent-proxy-ipset[13081]: flush_ipset_rules
ip: RTNETLINK answers: No such file or directory
ip: RTNETLINK answers: No such file or directory
ip: RTNETLINK answers: No such process
ip: RTNETLINK answers: No such process
transparent-proxy-ipset[13081]: ipset_init
ip: RTNETLINK answers: File exists
transparent-proxy-ipset[13081]: gen_lan_host_ipset_entry
transparent-proxy-ipset[13081]: default gateway check 10.10.10.11
ipset v7.3: Missing second mandatory argument to command add
Try `ipset help' for more information.
log信息
Sun Jun 6 18:39:18 2021 user.info transparent-proxy-ipset[13081]: flush_ipset_rules
Sun Jun 6 18:39:18 2021 user.info transparent-proxy-ipset[13081]: ipset_init
Sun Jun 6 18:39:18 2021 user.info transparent-proxy-ipset[13081]: gen_lan_host_ipset_entry
Sun Jun 6 18:39:18 2021 user.info transparent-proxy-ipset[13081]: default gateway check 10.10.10.11
Sun Jun 6 18:39:18 2021 daemon.info xray[13146]: Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16 linux/amd64)
Sun Jun 6 18:39:18 2021 daemon.info xray[13146]: A unified platform for anti-censorship.
Sun Jun 6 18:39:18 2021 daemon.err xray[13146]: 2021/06/06 10:39:18 Using confdir from arg: /var/etc/xray
Sun Jun 6 18:39:18 2021 daemon.info xray[13146]: 2021/06/06 10:39:18 [Info] infra/conf/serial: Reading config: /var/etc/xray/config.json
Sun Jun 6 18:39:18 2021 daemon.info xray[13146]: Failed to start: main: failed to load config files: [/var/etc/xray/config.json] > infra/conf: failed to parse DNS config > infra/conf: failed to build nameserver > infra/conf: invalid domain rule: geosite:cn > infra/conf: failed to load geosite: CN > infra/conf: failed to load file: geosite.dat > infra/conf: failed to open file: geosite.dat > open /usr/share/xray/geosite.dat: no such file or directory
Sun Jun 6 18:39:23 2021 daemon.info xray[13168]: Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16 linux/amd64)
Sun Jun 6 18:39:23 2021 daemon.info xray[13168]: A unified platform for anti-censorship.
Sun Jun 6 18:39:23 2021 daemon.err xray[13168]: 2021/06/06 10:39:23 Using confdir from arg: /var/etc/xray
Sun Jun 6 18:39:23 2021 daemon.info xray[13168]: 2021/06/06 10:39:23 [Info] infra/conf/serial: Reading config: /var/etc/xray/config.json
Sun Jun 6 18:39:23 2021 daemon.info xray[13168]: Failed to start: main: failed to load config files: [/var/etc/xray/config.json] > infra/conf: failed to parse DNS config > infra/conf: failed to build nameserver > infra/conf: invalid domain rule: geosite:cn > infra/conf: failed to load geosite: CN > infra/conf: failed to load file: geosite.dat > infra/conf: failed to open file: geosite.dat > open /usr/share/xray/geosite.dat: no such file or directory
Sun Jun 6 18:39:28 2021 daemon.info xray[13185]: Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16 linux/amd64)
Sun Jun 6 18:39:28 2021 daemon.info xray[13185]: A unified platform for anti-censorship.
Sun Jun 6 18:39:28 2021 daemon.err xray[13185]: 2021/06/06 10:39:28 Using confdir from arg: /var/etc/xray
Sun Jun 6 18:39:28 2021 daemon.info xray[13185]: 2021/06/06 10:39:28 [Info] infra/conf/serial: Reading config: /var/etc/xray/config.json
Sun Jun 6 18:39:28 2021 daemon.info xray[13185]: Failed to start: main: failed to load config files: [/var/etc/xray/config.json] > infra/conf: failed to parse DNS config > infra/conf: failed to build nameserver > infra/conf: invalid domain rule: geosite:cn > infra/conf: failed to load geosite: CN > infra/conf: failed to load file: geosite.dat > infra/conf: failed to open file: geosite.dat > open /usr/share/xray/geosite.dat: no such file or directory
Sun Jun 6 18:39:33 2021 daemon.info xray[13201]: Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16 linux/amd64)
Sun Jun 6 18:39:33 2021 daemon.info xray[13201]: A unified platform for anti-censorship.
Sun Jun 6 18:39:33 2021 daemon.err xray[13201]: 2021/06/06 10:39:33 Using confdir from arg: /var/etc/xray
Sun Jun 6 18:39:33 2021 daemon.info xray[13201]: 2021/06/06 10:39:33 [Info] infra/conf/serial: Reading config: /var/etc/xray/config.json
Sun Jun 6 18:39:33 2021 daemon.info xray[13201]: Failed to start: main: failed to load config files: [/var/etc/xray/config.json] > infra/conf: failed to parse DNS config > infra/conf: failed to build nameserver > infra/conf: invalid domain rule: geosite:cn > infra/conf: failed to load geosite: CN > infra/conf: failed to load file: geosite.dat > infra/conf: failed to open file: geosite.dat > open /usr/share/xray/geosite.dat: no such file or directory
Sun Jun 6 18:39:38 2021 daemon.info xray[13217]: Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16 linux/amd64)
Sun Jun 6 18:39:38 2021 daemon.info xray[13217]: A unified platform for anti-censorship.
Sun Jun 6 18:39:38 2021 daemon.err xray[13217]: 2021/06/06 10:39:38 Using confdir from arg: /var/etc/xray
Sun Jun 6 18:39:38 2021 daemon.info xray[13217]: 2021/06/06 10:39:38 [Info] infra/conf/serial: Reading config: /var/etc/xray/config.json
Sun Jun 6 18:39:38 2021 daemon.info xray[13217]: Failed to start: main: failed to load config files: [/var/etc/xray/config.json] > infra/conf: failed to parse DNS config > infra/conf: failed to build nameserver > infra/conf: invalid domain rule: geosite:cn > infra/conf: failed to load geosite: CN > infra/conf: failed to load file: geosite.dat > infra/conf: failed to open file: geosite.dat > open /usr/share/xray/geosite.dat: no such file or directory
Sun Jun 6 18:39:43 2021 daemon.info xray[13241]: Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16 linux/amd64)
Sun Jun 6 18:39:43 2021 daemon.info xray[13241]: A unified platform for anti-censorship.
Sun Jun 6 18:39:43 2021 daemon.err xray[13241]: 2021/06/06 10:39:43 Using confdir from arg: /var/etc/xray
Sun Jun 6 18:39:43 2021 daemon.info xray[13241]: 2021/06/06 10:39:43 [Info] infra/conf/serial: Reading config: /var/etc/xray/config.json
Sun Jun 6 18:39:43 2021 daemon.info xray[13241]: Failed to start: main: failed to load config files: [/var/etc/xray/config.json] > infra/conf: failed to parse DNS config > infra/conf: failed to build nameserver > infra/conf: invalid domain rule: geosite:cn > infra/conf: failed to load geosite: CN > infra/conf: failed to load file: geosite.dat > infra/conf: failed to open file: geosite.dat > open /usr/share/xray/geosite.dat: no such file or directory
Sun Jun 6 18:39:43 2021 daemon.info procd: Instance xray::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
卸载了luci-app-xray后外网就可以通了
该怎么解决?
The text was updated successfully, but these errors were encountered: