Coder Social home page Coder Social logo

ipv6map's Introduction

IPv6Map

一个显示已经接通IPv6并且网站能打开的大学的应用

结果演示

普通样式

聚合样式

没有IPv6的学校

IPv6Map

Docker和docker-compose ipv6设置

docker设置

在 /etc/docker/daemon.json 中添加以下内容

各种文档都说v6地址前缀应该不小于80,不过好像没有明确的依据

{
	"ipv6": true,
	"fixed-cidr-v6": "2001:19F0:7001:52DF:1::/80"
}

安装 ndppd 并在 /etc/ndppd.conf 中加入以下内容(可能只是在vultr的网络环境里需要?)

proxy ens3{
	router yes
	rule 2001:19F0:7001:52DF::/64 {
		static
	}
}

docker-compose.yml 文件中增加网络配置,注意版本不能低于2.1,似乎也不能是3

version: "2.2"
services:
  www:
    build: .
    environment:
      - BAIDU_MAP_KEY=yqNBwoxylESGMyXzCZBWkVr6TpVdd5lW
      - BAIDU_MAP_JS_KEY=A5GMnAGtc3KcP4Eq5fhaUfB7H6ocuwaI
    volumes:
      - ./:/opt/www
    ports:
      - 3000:3000
    networks:
            innernet:
                    ipv4_address: 172.16.233.10
                    ipv6_address: 2001:19F0:7001:52DF::0110

networks:
   innernet:
       driver: bridge
       enable_ipv6: true
       ipam:
           driver: default
           config:
               - subnet: 172.16.233.0/24
                 gateway: 172.16.233.1
               - subnet: 2001:19F0:7001:52DF::0100/120
                 gateway: 2001:19F0:7001:52DF::0101

ipv6map's People

Contributors

0000sir avatar dependabot[bot] avatar

Watchers

James Cloos avatar

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.