drcoms / drcom-generic

Dr.COM/DrCOM 现已覆盖 d p x三版。
GNU Affero General Public License v3.0
1.14k stars 267 forks source link

电脑上能拨号成功,但路由器128错误… #114

Closed lweo closed 7 years ago

lweo commented 8 years ago

Sep 29 05:48:27 PandoraBox user.info sysinit: Traceback (most recent call last): Sep 29 05:48:27 PandoraBox user.info sysinit: File "/usr/bin/drcom", line 385, in Sep 29 05:48:27 PandoraBox user.info sysinit: main() Sep 29 05:48:27 PandoraBox user.info sysinit: File "/usr/bin/drcom", line 376, in main Sep 29 05:48:27 PandoraBox user.info sysinit: package_tail = login(username, password, server) Sep 29 05:48:27 PandoraBox user.info sysinit: File "/usr/bin/drcom", line 303, in login Sep 29 05:48:27 PandoraBox user.info sysinit: salt = challenge(svr,time.time()+random.randint(0xF,0xFF)) Sep 29 05:48:27 PandoraBox user.info sysinit: File "/usr/bin/drcom", line 89, in challenge Sep 29 05:48:27 PandoraBox user.info sysinit: s.sendto("\x01\x02"+t+"\x09"+"\x00"*15, (svr, 61440)) Sep 29 05:48:27 PandoraBox user.info sysinit: socket.error: [Errno 128] Network is unreachable Sep 29 05:48:28 PandoraBox user.info sysinit: setting up led wifi Sep 29 05:48:28 PandoraBox user.info sysinit: setting up led USB

lweo commented 8 years ago

路由器是禁止dhcp服务器还是要开启?正常使用校园网能禁用路由器的dhcp

mchome commented 8 years ago

你确认执行/usr/bin/drcom之前,ip已经获取到了吗

lweo commented 8 years ago

获取到了,跳出网关登陆页面了。。

mchome commented 8 years ago

获取到ip后,手动执行一遍

mchome commented 8 years ago

如果手动执行没有没有错误的话,可以确定是自启的问题了。

lweo commented 8 years ago

你意思是在ssh上执行脚本?

lweo commented 8 years ago

确认下:路由器DHCP开吗?

mchome commented 8 years ago

怎么不开,不开你手动配置静态ip麽...

lweo commented 8 years ago

嗯,开了dhcp,而且校园网的网线要插在wan口,手动运行路由器上的脚本能上网成功。貌似不自动拨号。

lweo commented 8 years ago

在exit 0前是这么添加吗?&和exit没空格?

sleep 10 && python /usr/bin/drcom&exit 0