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

求助:MacOSX系统使用脚本配置IPV6后,无法访问北邮人 #31

Open
Kylin9511 opened this issue Sep 28, 2019 · 2 comments
Open

Comments

@Kylin9511
Copy link

Kylin9511 commented Sep 28, 2019

  • 系统信息:MacOS Mojave 10.14.6
  • 硬件设备信息:MacBook Pro (15-inch, 2017)
  • 使用脚本:如下sh脚本用sudo运行
    #!/bin/sh 
    #清除IPV6路由表 
    route delete -inet6 default  
    ifconfig gif0 destroy
    EN0_IP=`ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}'` 
    EN1_IP=`ifconfig en1 | grep inet | grep -v inet6 | awk '{print $2}'`  
    if [ -n$EN0_IP” ]; then 
        LOCAL_IP=$EN0_IP 
    else 
        LOCAL_IP=$EN1_IP 
    fi  
    if [ -n "$LOCAL_IP" ]; then 
        ifconfig gif0 create
        ifconfig gif0 tunnel $LOCAL_IP 166.111.21.1 
        ipconfig set gif0 MANUAL-V6 2402:f000:1:1501:200:5efe:$LOCAL_IP 64
        route add -inet6 ::/0 -interface gif0
    fi
  • 配置后测试结果
    • ping ipv6.tsinghua.edu.cn:通过(用了IPV4地址)
      PING ipv6.tsinghua.edu.cn (166.111.8.205): 56 data bytes
      64 bytes from 166.111.8.205: icmp_seq=0 ttl=61 time=2.535 ms
      64 bytes from 166.111.8.205: icmp_seq=1 ttl=61 time=2.399 ms
      ...
    • 登录“ipv6.tsinghua.edu.cn”: 显示使用IPV4访问网站
    • ping6 ipv6.tsinghua.edu.cn:不通过,no space left,没能理解成因
      PING6(56=40+8+8 bytes) 2402:f000:1:1501:200:5efe:b7ac:dfe6 --> 2402:f000:1:881::8:205
      ping6: sendmsg: No buffer space available
      ping6: wrote ipv6.tsinghua.edu.cn 16 chars, ret=-1
      ping6: sendmsg: No buffer space available
      ping6: wrote ipv6.tsinghua.edu.cn 16 chars, ret=-1
      ...
    • safari/chrome登录北邮人:不通过(同一网络用windows系统能够访问北邮人)
@ritou11
Copy link

ritou11 commented Dec 6, 2019

  1. 使用隧道要在校内
  2. 要使用学校ip,不能在局域网中

@fuvty
Copy link

fuvty commented Apr 16, 2020

同样的问题++
请问使用sslvpn也还是不可以校外访问吗?

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