Giter Site home page Giter Site logo

Comments (9)

GalensGan avatar GalensGan commented on August 15, 2024 1

最近一直在折腾这个,现在终于好了,问题的根源正如大佬所说,是因为 IPV6问题。最后没得办法,我更新了 OpenWrt 固件,采用的是 esir 的高大全版本,然后就好了。当然,OpenWrt 里面配置 IPv6 也是有很多坑,最后是搞成功了,但是我并不知道具体该配置哪些参数,所以没有相关的经验分享。
最后,如果有其它人遇到这些问题,希望不要迷茫,软件本身是完全支持 openWrt 的,我们应该从自己的配置上找找原因。
谢谢作者大佬的帮助!

from smargate.

lazy-luo avatar lazy-luo commented on August 15, 2024

1、服务端在空闲2分钟左右会自动断开,等待10-20秒自动重连,在重连的时间窗口内打开客户端时是看不到服务端的。
2、没有图标代表使用的是v4网络,没有自定义代理并且无法进行P2P连接,此时数据传输使用官网代理
3、日志一般关注ERROR的就可以了,日志级别有:LOG_ERROR,LOG_WARN,LOG_INFO,LOG_DEBUG(多线程日志是混在一起的)

from smargate.

GalensGan avatar GalensGan commented on August 15, 2024

@lazy-luo IMG_20201101_124509.jpg
我手机有ipv6,openwrt 也支持ipv6,通过ping ipv6.baidu.com测试过了。但为什么不能p2p呢?

from smargate.

lazy-luo avatar lazy-luo commented on August 15, 2024

看上去是服务端没能检测到ipv6地址,具体原因需要在openwrt上使用ifconfig 查看一下
如果确有可用v6地址,请重启sg服务端--》重启sg客户端 试试。

from smargate.

GalensGan avatar GalensGan commented on August 15, 2024

@lazy-luo
这是我的配置:

root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:E0:4C:68:02:E0
          inet addr:192.168.5.1  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fe68:2e0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1758894 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3614301 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:249387741 (237.8 MiB)  TX bytes:3816177203 (3.5 GiB)

docker0   Link encap:Ethernet  HWaddr 02:42:F8:63:49:0D
          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:E0:4C:68:02:E0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1761239 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3973430 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:278449641 (265.5 MiB)  TX bytes:3821951651 (3.5 GiB)
          Interrupt:25 Base address:0x9000

eth1      Link encap:Ethernet  HWaddr 00:A0:13:00:AB:9F
          inet6 addr: fe80::2a0:13ff:fe00:ab9f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3662173 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1705361 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3861144094 (3.5 GiB)  TX bytes:266431312 (254.0 MiB)
          Interrupt:26 Base address:0x1000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:387835 errors:0 dropped:0 overruns:0 frame:0
          TX packets:387835 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:64457446 (61.4 MiB)  TX bytes:64457446 (61.4 MiB)

pppoe-wan Link encap:Point-to-Point Protocol
          inet addr:100.64.100.163  P-t-P:100.64.0.1  Mask:255.255.255.255
          inet6 addr: fe80::61e8:6a26:a5db:fbfb/10 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3658551 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1698072 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:3779911181 (3.5 GiB)  TX bytes:228962805 (218.3 MiB)

from smargate.

lazy-luo avatar lazy-luo commented on August 15, 2024

很明显没有可用的全局v6地址

from smargate.

GalensGan avatar GalensGan commented on August 15, 2024

要怎么获得这个全局v6地址呢?是运营商的问题还是我配置的问题呀?

from smargate.

lazy-luo avatar lazy-luo commented on August 15, 2024

网络配置问题,问下度娘吧
fe80、fec0、::1等打头的地址都不是有效全局v6地址

from smargate.

lazy-luo avatar lazy-luo commented on August 15, 2024

最近一直在折腾这个,现在终于好了,问题的根源正如大佬所说,是因为 IPV6问题。最后没得办法,我更新了 OpenWrt 固件,采用的是 esir 的高大全版本,然后就好了。当然,OpenWrt 里面配置 IPv6 也是有很多坑,最后是搞成功了,但是我并不知道具体该配置哪些参数,所以没有相关的经验分享。
最后,如果有其它人遇到这些问题,希望不要迷茫,软件本身是完全支持 openWrt 的,我们应该从自己的配置上找找原因。
谢谢作者大佬的帮助!

具备探索精神!

from smargate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.