本帖最后由 zxxx 于 2021-1-30 14:33 编辑
Windows Node - 192.168.10.2
TAP driver
https://build.openvp_n.net/downloads/releases/
https://build.openvp_n.net/downloads/releases/tap-windows-9.24.2-I601-Win10.exe
Nebula
https://github.com/slackhq/nebula/releases/download/v1.3.0/nebula-windows-amd64.zip
解压缩到 X:\SW\nebula
复制 VPS 机器上面的
ca.crt
192.168.10.2.crt
192.168.10.2.crt
到 X:\SW\nebula\certs
- X:\SW\Nebula 的目录
- 2021/01/30 05:46 <DIR> .
- 2021/01/30 05:46 <DIR> ..
- 2021/01/30 04:39 <DIR> certs
- 2020/09/23 00:33 4,604,928 nebula-cert.exe
- 2020/09/23 00:33 14,809,600 nebula.exe
- X:\SW\Nebula\certs 的目录
- 2021/01/30 04:39 <DIR> .
- 2021/01/30 04:39 <DIR> ..
- 2021/01/30 04:02 304 192.168.10.2.crt
- 2021/01/30 04:02 127 192.168.10.2.key
- 2021/01/30 04:02 255 ca.crt
复制代码
创建配置文件 X:\SW\Nebula\config.yaml
1.2.3.4 为 VPS 的公网 IP
1.2.3.4 为 VPS 的公网 IP
192.168.10.1 为 VPS 的 Nubula IP
- pki:
- ca: X:\SW\Nebula\certs\ca.crt
- cert: X:\SW\Nebula\certs\192.168.10.2.crt
- key: X:\SW\Nebula\certs\192.168.10.2.key
- static_host_map:
- "192.168.10.1": ["1.2.3.4:4242"]
- lighthouse:
- am_lighthouse: false
- interval: 60
- hosts:
- - "192.168.10.1"
- punchy: true
- punch_back: true
- tun:
- dev: nbl
- drop_local_broadcast: false
- drop_multicast: false
- tx_queue: 500
- mtu: 1300
- routes:
- logging:
- level: info
- format: text
- firewall:
- conntrack:
- tcp_timeout: 120h
- udp_timeout: 3m
- default_timeout: 10m
- max_connections: 100000
- outbound:
- - port: any
- proto: any
- host: any
- inbound:
- - port: any
- proto: any
- host: any
复制代码
- X:\SW\Nebula 的目录
- 2021/01/30 05:46 <DIR> .
- 2021/01/30 05:46 <DIR> ..
- 2021/01/30 04:39 <DIR> certs
- 2021/01/30 05:32 729 config.yaml
- 2020/09/23 00:33 4,604,928 nebula-cert.exe
- 2020/09/23 00:33 14,809,600 nebula.exe
复制代码
启动程序
- cd X:\SW\Nebula
- nebula -config config.yaml
复制代码
安装服务
- cd X:\SW\Nebula
- nebula -service install
复制代码
测试
 |