|
|
感谢乌萨奇
原帖 https://www.nodeseek.com/post-459631-1
网页在 https://ipsafev2.537233.xyz/
执行一遍
bash <(curl -fsSL https://ipsafev2.537233.xyz/sshwhitelist.sh)
得到的输出有一下消息, e029d04fcaf8 是你的路径(随机生成),54b179d56f2a1e46 是你的token(也是随机生成)。
0.你的個人IP訪問權限路徑為 https://ipsafev2.537233.xyz/e029d04fcaf8 該資訊僅顯示一次,請妥善保管此連結和令牌 54b179d56f2a1e46 。
1.訪問 https://ipsafev2.537233.xyz/e029d04fcaf8/add?token=54b179d56f2a1e46 即可把你當前訪問IP加入到白名單裡。
2.訪問 https://ipsafev2.537233.xyz/e029d04fcaf8/add?ip=指定IP&token=54b179d56f2a1e46 即可把你的指定IP加入到白名單裡。
3.訪問 https://ipsafev2.537233.xyz/e029d04fcaf8/iplist?token=54b179d56f2a1e46 即可訪問你的IP白名單。
4.訪問 https://ipsafev2.537233.xyz/e029d04fcaf8/del?ip=你的IP&token=54b179d56f2a1e46 即可刪除白名單中的IP。
5.訪問 https://ipsafev2.537233.xyz/delete?path=e029d04fcaf8&token=54b179d56f2a1e46 即可刪除你的白名單資料夾。
6.訪問 https://ipsafev2.537233.xyz/changetoken?path=e029d04fcaf8&token=54b179d56f2a1e46&new_token=新的token 即可更新你的token。
你的IP白名单就在
https://ipsafev2.537233.xyz/e029d04fcaf8/ 这个文件夹里面 e029d04fcaf8是随机生成的。然后后面的token 54b179d56f2a1e46也是随机生成的,记住你的这些信息。
然后你访问 https://ipsafev2.537233.xyz/你的路径/add?token=你的token 就可以把你当前访问的ip加入白名单来连接ssh了。
如果你执行了第七条也就是更改token的话,记得把 /etc/sshwhitelist/config.yaml 下的url: 后面的token也改一下。
|
|