###账号密码 ``` zhili zhiliwulian ``` ### 1. docker配置 ``` sudo vi /etc/docker/daemon.json { "registry-mirrors":["https://auuzc4t8.mirror.aliyuncs.com"], "insecure-registries":["0.0.0.0/0"], "log-driver":"json-file", "log-opts": {"max-size":"1024m", "max-file":"3"} } sudo systemctl restart docker ``` ### 1. docker配置 ``` sudo docker load < frpc.tar && sudo docker load < vpn.tar && sudo docker load < agent.tar ``` ### 3. 内网穿透和VPN搭建 ``` xxx: 站名 num: 序号 curl http://git.fast-fun.cn:92/ruili-station/readme/raw/master/init-per.sh -o init-per.sh && sudo chmod a+x init-per.sh && bash init-per.sh xxx num vpn密码: qx123456 如果只能ping 251其他IP不行,需要查看/etc/openvpn/ovpn_env.sh: 中的OVPN_BR_ETH_IF=enp2s0 ``` ### 4. 启动ptr agent ``` sudo docker run -d \ -p 9001:9001 \ --name portainer_agent \ --restart=always \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /var/lib/docker/volumes:/var/lib/docker/volumes \ portainer/agent:2.19.1 ``` ### 5. 启动网络透传 ``` sudo docker run -d -p 20-21:20-21 -p 21100-21110:21100-21110 -p 554:554 -p 10166:10166 -p 98:98 -p 200:200 --name=ha --restart=always nas.fast-fun.cn:5000/zk/ha:0.10 ```