Replace -s with -d for address filtering in LOG
This commit is contained in:
parent
1ad2cc334c
commit
44b9573c10
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -509,10 +509,10 @@ class iptables:
|
||||||
self.jump_all_trafic("mangle", "PREROUTING", subtable)
|
self.jump_all_trafic("mangle", "PREROUTING", subtable)
|
||||||
|
|
||||||
for net in self.log_ignore_v4:
|
for net in self.log_ignore_v4:
|
||||||
self.add_in_subtable("mangle4", subtable, f'-s {net} -j RETURN')
|
self.add_in_subtable("mangle4", subtable, f'-d {net} -j RETURN')
|
||||||
|
|
||||||
for net in self.log_ignore_v6:
|
for net in self.log_ignore_v6:
|
||||||
self.add_in_subtable("mangle6", subtable, f'-s {net} -j RETURN')
|
self.add_in_subtable("mangle6", subtable, f'-d {net} -j RETURN')
|
||||||
|
|
||||||
self.add_in_subtable("mangle", subtable, '-m state --state NEW -j LOG --log-prefix "LOG_ALL "')
|
self.add_in_subtable("mangle", subtable, '-m state --state NEW -j LOG --log-prefix "LOG_ALL "')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue