mirror of
https://github.com/luscis/openlan.git
synced 2025-11-02 13:24:02 +08:00
fea: support age timer for knock
This commit is contained in:
@@ -226,8 +226,14 @@ func (w *WorkerImpl) Start(v api.Switcher) {
|
||||
if !(w.vpn == nil || w.ztrust == nil) {
|
||||
w.ztrust.Start()
|
||||
fire.Mangle.Pre.AddRule(cn.IpRule{
|
||||
Input: vpn.Device,
|
||||
Jump: w.ztrust.Chain(),
|
||||
Input: vpn.Device,
|
||||
CtState: "RELATED,ESTABLISHED",
|
||||
Comment: "Forwarding Accpted",
|
||||
})
|
||||
fire.Mangle.Pre.AddRule(cn.IpRule{
|
||||
Input: vpn.Device,
|
||||
Jump: w.ztrust.Chain(),
|
||||
Comment: "Goto Zero Trust",
|
||||
})
|
||||
}
|
||||
fire.Start()
|
||||
|
||||
Reference in New Issue
Block a user