2017年3月28日星期二

Setting up Own IPv6 tunnel server




Setting up the server is not very different from setting up a client. The only thing that differs is the routing table.

Let's assume your VPS has addresses as follows:
Code: [Select]
IPv4 address: 198.51.100.42
IPv6 address: 2001:db8::2/64
Default gateway 2001:db8::1
Routed prefix 2001:db8:1::/48

Then from that you can use 2001:db8:1:1::/64 for the tunnel link and 2001:db8:1:100::/56 as a routed prefix for the client.

Assuming the client has IPv4 address 203.0.113.7 the configurations would be as follows:
Code: (Server) [Select]
Tunnel IPv4: 198.51.100.42
Peer IPv4: 203.0.113.7
Tunnel IPv6: 2001:db8:1:1::1/64
Routing table:
::/0 gateway 2001:db8::1
2001:db8:1:100::/56 gateway 2001:db8:1:1::2

Code: (Client) [Select]
Tunnel IPv4: 203.0.113.7
Peer IPv4: 198.51.100.42
Tunnel IPv6: 2001:db8:1:1::2/64
Routing table:
::/0 gateway 2001:db8:1:1::1

可参考:https://sskaje.me/notes/network/ipv6/ asus router snapshot

openwrt 6in4


I install ipv6 on my Xiaomi MiWifi mini via 6in4 tunnel broker tb.netassist.ua or via he.net (no mater)
root@MiWifi:~# cat /etc/config/network
...
config interface 'wan6'
        option proto '6in4'
        option peeraddr '62.205.132.12'
        option ip6addr '2a01:d0:ffff:e61::2'
        option ip6prefix '2a01:d0:8e61::/48'
        option delegate '0'
asus rom router:


指定目录的图片2值化

```python # -*- coding: utf-8 -*- """指定目录的图片,自适应2值化 """ import os from PIL import Image import numpy as np imp...