大网数据广告活动
服务器运维问答

Persist conntrack database across reboots

· 52CE 我爱测

I run a NAT router on Debian 10 which takes only a few seconds to reboot, way less then 120 seconds, more like 3. I'd like to keep established connections so that a reboot of the router does not break natted TCP connections, but …

问题原文

原帖链接 · bot47 · CC BY-SA 4.0

I run a NAT router on Debian 10 which takes only a few seconds to reboot, way less then 120 seconds, more like 3. I'd like to keep established connections so that a reboot of the router does not break natted TCP connections, but I don't have the capacities to run two synching routers. How do I persist the conntrack tables on a single machine?

已采纳解答

原帖链接 · bot47 · CC BY-SA 4.0

Turns out, it does not work right now with packaged versions of the conntrack-tools, but it works with the not yet released changes. This commit introduces a save output format which will write the conntrack command line parameters needed to restore the conntrack tables. With this information it's easy to persist the tables. Unfortunately, it is unreleased. Building the conntrack-tools is easy, but it requires an up-to-date version of libnetfilter-conntrack which then might clash with system utilities that depend on a different version.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-01-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。