Syslog firewall rules
This commit is contained in:
parent
63c737518b
commit
66312d4a90
@ -67,6 +67,15 @@
|
||||
-A ACCEPT_INFLUX -m comment --comment "ACCEPT_INFLUX default drop" -j LOG_DROP
|
||||
{% endif %}
|
||||
|
||||
{% if firewall_syslog_whitelist is defined and
|
||||
firewall_syslog_whitelist | length %}
|
||||
-N ACCEPT_SYSLOG
|
||||
{% for ip in firewall_syslog_whitelist | ipv4 %}
|
||||
-A ACCEPT_SYSLOG -m tcp -p tcp --dport 514 --source {{ ip }} -m comment --comment "accept {{ ip }} syslog 514/tcp" -j LOG_ACCEPT
|
||||
{% endfor %}
|
||||
-A ACCEPT_SYSLOG -m comment --comment "ACCEPT_SYSLOG default drop" -j LOG_DROP
|
||||
{% endif %}
|
||||
|
||||
-A INPUT -i lo -m comment --comment "lo accept all" -j ACCEPT
|
||||
|
||||
{% if firewall_ssh_whitelist | length %}
|
||||
@ -90,6 +99,11 @@
|
||||
-A INPUT -m tcp -p tcp --dport 8086 -m comment --comment "accept influx 8086/tcp" -j ACCEPT_INFLUX
|
||||
{% endif %}
|
||||
|
||||
{% if firewall_syslog_whitelist is defined and
|
||||
firewall_syslog_whitelist | length %}
|
||||
-A INPUT -m tcp -p tcp --dport 514 -m comment --comment "accept syslog 514/tcp" -j ACCEPT_SYSLOG
|
||||
{% endif %}
|
||||
|
||||
-A INPUT -m state --state INVALID -m comment --comment "drop invalid" -j DROP
|
||||
|
||||
{% if firewall_ipset_blacklist | length %}
|
||||
|
Loading…
Reference in New Issue
Block a user