-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgmap不如搞个web页面来 #26
Comments
提供一个 Web 页面显示一些统计信息和一些管理功能,这很棒。不过,多实例似乎没有很大的意义? |
另外,客户端pgcli 能否提供简单的直接--secret-key 明文。而不是先转换成一长串放入json然后再-f去调用,感觉有点复杂了 |
多实例确实没啥意义,设置不同的IP段也可隔离。那不如不要加/pg了呗? |
安全起见,密钥会定期轮转,密钥文件是一个好的密钥容器。
pgmap 的 api 统一使用 |
还可以搞个黑名单功能,禁止某客户接入 |
如题,
注意到客户端在填写server的时候,需要在后边加/pg,似乎是准备多实例运行,不如在pgmap端整个web页面,可以在线创建不同实例提供客户端连接。
比如:
服务端实例1(cli示例):./pgmap -l 0.0.0.0:9987 --secret-key 123 --stun stun.miwifi.com:3478 --instance pg1
服务端实例2(cli示例):./pgmap -l 0.0.0.0:9987 --secret-key 456 --stun stun.miwifi.com:3478 --instance pg2
实例1: ./pgcli vpn -s ws://223.5.5.5:9987/pg1 -4 100.64.10.1/24 -f psns.json
实例2: ./pgcli vpn -s ws://223.5.5.5:9987/pg2 -4 100.64.20.1/24 -f psns.json
The text was updated successfully, but these errors were encountered: