mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 08:36:59 +08:00
fix: firewall: add comments for iptable rules
Signed-off-by: zhihui.ding <danieldin186@gmail.com>
This commit is contained in:
@@ -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",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user