Do not replicate identical rules.

This commit is contained in:
Andrea Dell'Amico 2022-12-29 18:26:49 +01:00
parent 768c6f5653
commit 35c2295835
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 1 deletions

View File

@ -205,11 +205,11 @@
{% if jgroups_sources is defined %}
{% for s in jgroups_sources %}
-A INPUT -s {{ s }} -m pkttype --pkt-type multicast -d {{ jgroups_multicast_addr }} -j ACCEPT
-A INPUT -s {{ jgroups_multicast_addr }} -m pkttype --pkt-type multicast -d {{ jgroups_multicast_addr }} -j ACCEPT
{% if jgroups_mping_multicast_addr is defined and jgroups_mping_multicast_addr != jgroups_multicast_addr %}
-A INPUT -s {{ s }} -m pkttype --pkt-type multicast -d {{ jgroups_mping_multicast_addr }} -j ACCEPT
{% endif %}
{% endfor %}
-A INPUT -s {{ jgroups_multicast_addr }} -m pkttype --pkt-type multicast -d {{ jgroups_multicast_addr }} -j ACCEPT
{% else %}
-A INPUT -m pkttype --pkt-type multicast -d {{ jgroups_multicast_addr }} -j ACCEPT
{% if jgroups_mping_multicast_addr is defined and jgroups_mping_multicast_addr != jgroups_multicast_addr %}