Skip to content

Conversation

@Meo597
Copy link

@Meo597 Meo597 commented Apr 9, 2025

依照OpenRC官方文档重写整个/etc/init.d/v2ray

  • 看门狗,崩溃后间隔5秒无限次重启,除非10分钟内崩溃3次
  • cap特权,使能支持tproxysockopt且无需root,允许监听低端口
  • 放宽资源限制
  • 智能启动ntpdchronyd等声明为ntp-client的服务,防止ss等协议强依赖时间,但不准的尴尬情况。即便失败也可启动v2ray
  • 尽可能先启动系统的dns client服务。即便失败也可启动v2ray
  • iptablesnftables等声明为防火墙的服务之后启动。若服务存在必须启动成功
  • 规范化的配置文件检查。若失败不会无限重启

@Meo597 Meo597 changed the title rewrite init.d Rewrite OpenRC run script for enhanced security Apr 10, 2025
@Meo597
Copy link
Author

Meo597 commented May 4, 2025

@Loyalsoldier

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 this pull request may close these issues.

1 participant