[Netfilter] Log matched regex
parent
33dec1db21
commit
32ef5508a0
|
@ -298,7 +298,7 @@ def watch():
|
||||||
ip = ipaddress.ip_address(addr)
|
ip = ipaddress.ip_address(addr)
|
||||||
if ip.is_private or ip.is_loopback:
|
if ip.is_private or ip.is_loopback:
|
||||||
continue
|
continue
|
||||||
logWarn('%s matched rule id %d' % (addr, rule_id))
|
logWarn('%s matched rule id %d (regex: %s)' % (addr, rule_id, rule_regex))
|
||||||
ban(addr)
|
ban(addr)
|
||||||
|
|
||||||
def snat4(snat_target):
|
def snat4(snat_target):
|
||||||
|
|
Loading…
Reference in New Issue