拉取镜像并运行:
docker run --restart=always --name speedtest -d -p 10000:8080 nonnichen/speedtest
浏览器访问:
http://IP:10000
TCP端口测试:
telnet ip port
UDP端口测试:
nc -vuz ip port
拉取安装镜像:
docker run --name nonniss --restart=always -e PASSWORD=xxxxxxxx -e METHOD=chacha20 -p 55555:8388 -p 55555:8388/udp -d nonnichen/nonniss
可选加密方法:
The default cipher is chacha20-ietf-poly1305.
All encrypt method:
rc4-md5
aes-128-gcm
aes-192-gcm
aes-256-gcm
aes-128-cfb
aes-192-cfb
aes-256-cfb
aes-128-ctr
aes-192-ctr
aes-256-ctr
camellia-128-cfb
camellia-192-cfb
camellia-256-cfb
bf-cfb
chacha20-ietf-poly1305
xchacha20-ietf-poly1305
salsa20
chacha20
chacha20-ietf
安装镜像并运行:
docker run --name=iperf3 -d --restart=unless-stopped -p 5201:5201/tcp -p 5201:5201/udp nonnichen/iperf3
Test on Windows:
Go to https://iperf.fr download iPerf3, then run test in CMD:
iperf3.exe -c IP -t 10
Test on Openwrt:
opkg install iperf3
iperf3 -c 207.148.69.145 -t 30
仓库地址:
https://hub.docker.com/r/nonnichen/nonniwrt
安装:
- 运行 ifconfig 命令查看网卡信息,例如 网络接口逻辑名称是 enp3s0。
- 开启此网卡混杂模式:
ip link set enp3s0 promisc on
- 配置MACVLAN:
docker network create -d macvlan --subnet=192.168.0.0/24 --gateway=192.168.0.1 -o parent=enp3s0 macnet
注: 192.168.0.0/24 和 192.168.0.1 自行调整。
- 查看docker网络:
docker network ls
- 拉取镜像并初始化:
docker run --restart always --name openwrt -d --network macnet --privileged --ip 192.168.0.3 nonnichen/nonniwrt /sbin/init
注: 替换 192.168.0.3 为实际的 IP。
- 执行docker BASH:
docker exec -it openwrt bash
- 修改网络配置为实际使用环境:
vi /etc/config/network
重启网络:
/etc/init.d/network restart
浏览器登录已经配置的 IP 并完成配置。
root password