###账号密码 ``` 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不行,需要查看docker exec -it vpn bash /etc/openvpn/ovpn_env.sh: 中的OVPN_BR_ETH_IF=enp2s0 ``` ### 5. 启动网络透传 ``` sudo docker run -d -p 6667:6667 -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.21 ``` ### 6.查找工控机 ``` sudo apt -y install nmap && nmap -n -v -sT -p 22 192.168.3.0/24 | grep 'open' sudo echo 'Acquire::http::Proxy "http://192.168.3.251:6667/";' > /etc/apt/apt.conf ```