From 5edcb56305d57b7f2cb6b23e041d836c038f9de2 Mon Sep 17 00:00:00 2001 From: Antoine Ouvrard Date: Tue, 4 May 2021 15:08:47 +0200 Subject: fusion des role jitsi-install et jitsi-pre-install --- .../jitsi-pre-install/files/fail2ban-override.conf | 7 ----- roles/jitsi-pre-install/files/jail.conf | 10 ------- roles/jitsi-pre-install/files/nftables.conf | 35 ---------------------- 3 files changed, 52 deletions(-) delete mode 100644 roles/jitsi-pre-install/files/fail2ban-override.conf delete mode 100644 roles/jitsi-pre-install/files/jail.conf delete mode 100644 roles/jitsi-pre-install/files/nftables.conf (limited to 'roles/jitsi-pre-install/files') diff --git a/roles/jitsi-pre-install/files/fail2ban-override.conf b/roles/jitsi-pre-install/files/fail2ban-override.conf deleted file mode 100644 index 885915e..0000000 --- a/roles/jitsi-pre-install/files/fail2ban-override.conf +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -After=nftables.service -PartOf=nftables.service - -[Service] -ExecStartPre=nft add table inet filter -ExecStartPre=nft add chain inet filter input { type filter hook input priority 0; policy accept; } diff --git a/roles/jitsi-pre-install/files/jail.conf b/roles/jitsi-pre-install/files/jail.conf deleted file mode 100644 index 5cbf4b7..0000000 --- a/roles/jitsi-pre-install/files/jail.conf +++ /dev/null @@ -1,10 +0,0 @@ -[DEFAULT] - -backend = systemd -banaction = nftables-multiport - -# 92.154.111.181 - IP des bureaux de nereide -ignoreip = 127.0.0.1 92.154.111.181 -findtime = 1h -bantime = 1d -maxretry = 3 \ No newline at end of file diff --git a/roles/jitsi-pre-install/files/nftables.conf b/roles/jitsi-pre-install/files/nftables.conf deleted file mode 100644 index 50857a9..0000000 --- a/roles/jitsi-pre-install/files/nftables.conf +++ /dev/null @@ -1,35 +0,0 @@ - -#!/usr/sbin/nftables -f - -flush ruleset - -# family `inet` c'est pour ipv4/ipv6 -table inet myfilter { - chain myglobal { - # par défaut on accepte tous les paquets entrant - type filter hook input priority 0; policy accept; - # accepte les ping (mais pas plus de 1 par seconde) - ip protocol icmp icmp type { echo-request, echo-reply } limit rate 1/second accept - ip protocol icmp icmp type { echo-request, echo-reply } drop - ip6 nexthdr icmpv6 icmpv6 type { echo-request, echo-reply } limit rate 1/second accept - ip6 nexthdr icmpv6 icmpv6 type { echo-request, echo-reply } drop - # on accepte tout le reste du traffic icmp - ip protocol icmp accept - ip6 nexthdr icmpv6 accept - # accepte le traffic qui vient de nous - ct state established,related accept - ct state invalid drop - # accepte le traffic localhost - iif lo accept - # accepte tout le traffic ssh peut importe l'origine - tcp dport 22 accept - # accepte le traffic tcp depuis le reste du monde si la cible est un des ports http, https, smtp - tcp dport {80, 443} accept - # ouvre les port udp I/O 10000 et 44446 pour jitsi - udp dport {10000, 4446} accept - udp sport {10000, 4446} accept - - # count and drop any other traffic - counter drop - } -} -- cgit v1.2.3