106
101
# either in the jail config or in a .local file unless your PUBLIC IP
107
102
# is the first IP assigned to eth0
108
103
# Values: [ an IP address ] Default: Tries to find the IP address of eth0,
109
104
# which in most cases will be a private IP, and therefore incorrect
111
myip = `ip -4 addr show dev eth0 | grep inet | head -1 | sed -r 's/.*inet ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/'`
106
myip = `ip -4 addr show dev eth0 | grep inet | head -n 1 | sed -r 's/.*inet ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/'`
114
109
# Notes.: The protocol over which the attack is happening