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

在服务器启用OpenGFW之后 服务器更换IP导致服务器断网(在运行OpenGFW之前无此问题) #70

Closed
x6nux opened this issue Feb 23, 2024 · 4 comments · Fixed by #75

Comments

@x6nux
Copy link

x6nux commented Feb 23, 2024

RT

@tobyxdd
Copy link
Collaborator

tobyxdd commented Feb 23, 2024

你是怎么部署的,以及规则什么样?OpenGFW 本身应该不会导致这个问题

@x6nux
Copy link
Author

x6nux commented Feb 24, 2024

你是怎么部署的,以及规则什么样?OpenGFW 本身应该不会导致这个问题

我使用的是 screen 运行

config.yaml

io:
  queueSize: 1024
  local: true  # 如果需要在 FORWARD 链上运行 OpenGFW,请设置为 false

workers:
  count: 4
  queueSize: 16
  tcpMaxBufferedPagesTotal: 4096
  tcpMaxBufferedPagesPerConn: 64
  udpMaxStreams: 4096

rules.yaml

- name: block from china shadowsocks
  action: block
  expr: fet != nil && fet.yes && geoip(string(ip.src), "cn")

- name: block from china SOCKS
  action: block
  expr: socks != nil && geoip(string(ip.src), "cn")

markdown把配置文件的-渲染成了点实际配置文件是正常的
我在昨晚上在一台固定IP的服务器(服务器使用incus(lxc虚拟化)部署了多个容器)上面部署了同样的的程序 部署时间为 00:36 服务器断网时间为 02:43
我特意使用debug模式保留了日志
gfw.log

我通过服务商提供的VNC进入服务器后关掉opengfw网络就通了(特别说明其中有个lxc容器分配了独立IPv4 此容器没断网)

@tobyxdd
Copy link
Collaborator

tobyxdd commented Feb 24, 2024

日志没看到什么异常。。断网的时候 OpenGFW 进程有什么异常吗?比如内存/cpu占用很高之类的

@tobyxdd
Copy link
Collaborator

tobyxdd commented Feb 25, 2024

能够复现,在解决了

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

Successfully merging a pull request may close this issue.

2 participants