OpenLAN软件包含下面部分:
您可以在CentOS7上通过下面步骤部署Central Switch软件:
$ yum install -y epel-release
$ wget https://github.com/luscis/openlan/releases/download/v25.4.1/openlan-v25.4.1.x86_64.bin
$ chmod +x ./openlan-v25.4.1.x86_64.bin && ./openlan-v25.4.1.x86_64.bin
$ systemctl enable --now openlan-switch
$ cd /etc/openlan/switch
$ cp ./switch.yaml.example ./switch.yaml
$ vim ./switch.yaml
protocol: tcp
crypt:
algorithm: aes-128
secret: ea64d5b0c96c
$ systemctl restart openlan-switch
$ journalctl -u openlan-switch
$ openlan user add --name hi@example
hi@example l6llot97yx guest
导出OpenVPN的客户端配置文件;
在浏览器直接访问接口获取VPN Profile,弹出框中输入账户密码,替换
$ curl -k https://<access-ip>:10000/get/network/example/ovpn
在OpenVPN的客户端,via URL
的方式自动导入,输入框中录入用户名密码。
https://<access-ip>:10000
同样的您也可以在CentOS7上通过下面步骤部署Access Point软件:
$ yum install -y epel-release
$ wget https://github.com/luscis/openlan/releases/download/v25.4.1/openlan-v25.4.1.x86_64.bin
$ chmod +x ./openlan-v25.4.1.x86_64.bin && ./openlan-v25.4.1.x86_64.bin nodeps
$ systemctl enable --now openlan-access@example
$ journalctl -u openlan-access@example
$ ping 172.32.10.10 -c 3
$ ping 192.168.10.1 -c 3