Skip to content
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

安全策略写了0.0.0.0/0之后页面无法访问,有什么办法重置吗 #459

Open
gituib opened this issue May 17, 2024 · 2 comments

Comments

@gituib
Copy link

gituib commented May 17, 2024

安全策略我先写了192.168.0.0/16,然后写了0.0.0.0/0之后页面无法访问,这个是不是有bug,有什么办法重置吗?

@dushixiang
Copy link
Owner

安全策略我先写了192.168.0.0/16,然后写了0.0.0.0/0之后页面无法访问,这个是不是有bug,有什么办法重置吗?

只能进数据库把这条规则删除,然后重启。

@orangestar0829
Copy link

遇到同样问题,设置tailscale 内网ip允许,优先级1.之后0.0.0.0/0 拒绝优先级50.然后就无法访问了
按照作者解决方案,我数据库类型是sqllite,mysql或其他也差不多.
PS: 操作前记得备份!!!

  1. sqllite 需要先安装sqllite3
  2. sqllite3 <此处替换为自己的sqllite DB文件路径>
  3. select * from access_securities; 能够看到所有设置的安全策略
  4. select * from access_securities where id = '<此处替换为第三步查询到的错误的安全策略的ID>'; 这一步骤是删除前的查询确认,避免删除错数据
  5. delete from access_securities where id = '<此处替换为第三步查询到的错误的安全策略的ID>'; 删除错误的安全策略
  6. .exit 退出sqllite3
  7. docker compose restart 等待重启,重新登陆即可
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants