X7ROOT File Manager
Current Path:
/etc/fail2ban/action.d
etc
/
fail2ban
/
action.d
/
📁
..
📄
abuseipdb.conf
(3.66 KB)
📄
apf.conf
(587 B)
📄
badips.conf
(629 B)
📄
badips.py
(11.27 KB)
📄
badips.pyc
(12.6 KB)
📄
badips.pyo
(12.6 KB)
📄
blocklist_de.conf
(2.65 KB)
📄
cloudflare.conf
(2.9 KB)
📄
dshield.conf
(7.5 KB)
📄
dummy.conf
(1.68 KB)
📄
firewallcmd-allports.conf
(1.47 KB)
📄
firewallcmd-common.conf
(2.59 KB)
📄
firewallcmd-ipset.conf
(2.66 KB)
📄
firewallcmd-multiport.conf
(1.29 KB)
📄
firewallcmd-new.conf
(1.9 KB)
📄
firewallcmd-rich-logging.conf
(1021 B)
📄
firewallcmd-rich-rules.conf
(1.76 KB)
📄
helpers-common.conf
(592 B)
📄
iptables-allports.conf
(1.48 KB)
📄
iptables-common.conf
(2.67 KB)
📄
iptables-ipset-proto4.conf
(2.04 KB)
📄
iptables-ipset-proto6-allports.conf
(2.68 KB)
📄
iptables-ipset-proto6.conf
(2.72 KB)
📄
iptables-multiport-log.conf
(2.12 KB)
📄
iptables-multiport.conf
(1.47 KB)
📄
iptables-new.conf
(1.55 KB)
📄
iptables-xt_recent-echo.conf
(2.61 KB)
📄
iptables.conf
(1.39 KB)
📄
mail-whois-common.conf
(1.03 KB)
📄
mynetwatchman.conf
(5.2 KB)
📄
netscaler.conf
(1.46 KB)
📄
nftables-allports.conf
(383 B)
📄
nftables-multiport.conf
(384 B)
📄
nftables.conf
(6.17 KB)
📄
nginx-block-map.conf
(3.66 KB)
📄
npf.conf
(1.49 KB)
📄
nsupdate.conf
(3.16 KB)
📄
route.conf
(1023 B)
📄
sendmail.conf
(829 B)
📄
shorewall-ipset-proto6.conf
(3.44 KB)
📄
smtp.py
(6.13 KB)
📄
smtp.pyc
(5.98 KB)
📄
smtp.pyo
(5.98 KB)
📄
symbiosis-blacklist-allports.conf
(1.38 KB)
📄
xarf-login-attack.conf
(6.29 KB)
Editing: firewallcmd-ipset.conf
# Fail2Ban action file for firewall-cmd/ipset # # This requires: # ipset (package: ipset) # firewall-cmd (package: firewalld) # # This is for ipset protocol 6 (and hopefully later) (ipset v6.14). # Use ipset -V to see the protocol and version. # # IPset was a feature introduced in the linux kernel 2.6.39 and 3.0.0 kernels. # # If you are running on an older kernel you make need to patch in external # modules. [INCLUDES] before = firewallcmd-common.conf [Definition] actionstart = ipset create <ipmset> hash:ip timeout <default-ipsettime> <familyopt> firewall-cmd --direct --add-rule <family> filter <chain> 0 <actiontype> -m set --match-set <ipmset> src -j <blocktype> actionflush = ipset flush <ipmset> actionstop = firewall-cmd --direct --remove-rule <family> filter <chain> 0 <actiontype> -m set --match-set <ipmset> src -j <blocktype> <actionflush> ipset destroy <ipmset> actionban = ipset add <ipmset> <ip> timeout <ipsettime> -exist # actionprolong = %(actionban)s actionunban = ipset del <ipmset> <ip> -exist [Init] # Option: chain # Notes specifies the iptables chain to which the fail2ban rules should be # added # Values: [ STRING ] # chain = INPUT_direct # Option: default-ipsettime # Notes: specifies default timeout in seconds (handled default ipset timeout only) # Values: [ NUM ] Default: 0 (no timeout, managed by fail2ban by unban) default-ipsettime = 0 # Option: ipsettime # Notes: specifies ticket timeout (handled ipset timeout only) # Values: [ NUM ] Default: 0 (managed by fail2ban by unban) ipsettime = 0 # expresion to caclulate timeout from bantime, example: # banaction = %(known/banaction)s[ipsettime='<timeout-bantime>'] timeout-bantime = $([ "<bantime>" -le 2147483 ] && echo "<bantime>" || echo 0) # Option: actiontype # Notes.: defines additions to the blocking rule # Values: leave empty to block all attempts from the host # Default: Value of the multiport actiontype = <multiport> # Option: allports # Notes.: default addition to block all ports # Usage.: use in jail config: banaction = firewallcmd-ipset[actiontype=<allports>] # for all protocols: banaction = firewallcmd-ipset[actiontype=""] allports = -p <protocol> # Option: multiport # Notes.: addition to block access only to specific ports # Usage.: use in jail config: banaction = firewallcmd-ipset[actiontype=<multiport>] multiport = -p <protocol> -m multiport --dports "$(echo '<port>' | sed s/:/-/g)" ipmset = f2b-<name> familyopt = [Init?family=inet6] ipmset = f2b-<name>6 familyopt = family inet6 # DEV NOTES: # # Author: Edgar Hoch and Daniel Black # firewallcmd-new / iptables-ipset-proto6 combined for maximium goodness
Upload File
Create Folder