fix: firewall: add comments for iptable rules

Signed-off-by: zhihui.ding <danieldin186@gmail.com>
This commit is contained in:
zhihui.ding
2023-08-24 22:11:56 +08:00
parent d118d36039
commit b2ee3d9b2e
4 changed files with 41 additions and 30 deletions

View File

@@ -217,9 +217,10 @@ func (w *WorkerImpl) Start(v api.Switcher) {
if w.dhcp != nil {
w.dhcp.Start()
fire.Nat.Post.AddRule(cn.IpRule{
Source: cfg.Bridge.Address,
NoDest: cfg.Bridge.Address,
Jump: cn.CMasq,
Source: cfg.Bridge.Address,
NoDest: cfg.Bridge.Address,
Jump: cn.CMasq,
Comment: "Default Gateway for DHCP",
})
}
}