Skip to content
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

多拨后无法检测外网IP,导致不停推送路由器重启通知 #8

Closed
binge8 opened this issue Aug 31, 2019 · 4 comments
Closed

Comments

@binge8
Copy link

binge8 commented Aug 31, 2019

我提个建议呗。就拿我的网络环境来说,我是X86,设置双拨后,出现虚拟wan口,分别是vwan1和vwan2,双拨后的wan口是禁用的, 就没有IP地址,所以检测不到IP就会不停的推送路由器重启的通知。可不可以增加个选项,手动选择外网ip检测来源,比如eth0、eth1、eth2。这样不管是否多拨,只要自己设置好来源接口,都可以完美应对。
另外一个问题,就是启动不了。也是看了你的issues后,改了那俩文件的权限,就正常了。

@binge8
Copy link
Author

binge8 commented Aug 31, 2019

如果根据MAC地址来判断,也不好弄。双拨后虚拟口vwan1和vwan2的mac地址都是00:00:00:00:00.还不能手动修改。还有那个设备别名的mac也是没法填。

@tty228
Copy link
Owner

tty228 commented Sep 9, 2019

多拨环境不太了解,如果要自己修改的话,
552行
#查询当前ip
#hostIP=$(curl -k -s "http://members.3322.org/dyndns/getip")
wanIP=$(ubus call network.interface.wan status | grep '"address"' | grep -oE '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}')

注释掉的是通过网站查询ip,现用的是wan接口

@leungzw
Copy link

leungzw commented Nov 10, 2019

我提个建议呗。就拿我的网络环境来说,我是X86,设置双拨后,出现虚拟wan口,分别是vwan1和vwan2,双拨后的wan口是禁用的, 就没有IP地址,所以检测不到IP就会不停的推送路由器重启的通知。可不可以增加个选项,手动选择外网ip检测来源,比如eth0、eth1、eth2。这样不管是否多拨,只要自己设置好来源接口,都可以完美应对。
另外一个问题,就是启动不了。也是看了你的issues后,改了那俩文件的权限,就正常了。

试了多拨,同样的问题,取消了多拨也恢复不了。
已经把多拨新建的vwan接口删除,新建了一个正常的wan接口。还是不停推送重启通知,怎样解决?
PS:新建的wan口MAC地址也是00:00:00:00:00...

@tty228
Copy link
Owner

tty228 commented Dec 19, 2019

请暂时关闭 ip 变动检测,没有多拨环境不打算修复

@tty228 tty228 closed this as completed Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants