From a0f088be256a0f0c84a44c309d71779a5ca11e19 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sun, 10 Mar 2013 16:28:45 +1100 Subject: [PATCH] ENH: typo + head -1 has been deprecated for 10+ years. --- config/action.d/dshield.conf | 4 ++-- config/action.d/mynetwatchman.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/action.d/dshield.conf b/config/action.d/dshield.conf index 177329b2..c0d87987 100644 --- a/config/action.d/dshield.conf +++ b/config/action.d/dshield.conf @@ -124,13 +124,13 @@ port = ??? userid = 0 # Option: myip -# Notes.: TThe target IP for the attack (your public IP). Should be provided +# Notes.: The target IP for the attack (your public IP). Should be provided # either in the jail config or in a .local file unless your PUBLIC IP # is the first IP assigned to eth0 # Values: [ an IP address ] Default: Tries to find the IP address of eth0, # which in most cases will be a private IP, and therefore incorrect # -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/'` +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/'` # Option: protocol # Notes.: The protocol over which the attack is happening diff --git a/config/action.d/mynetwatchman.conf b/config/action.d/mynetwatchman.conf index d4f8de1a..3ae3e6db 100644 --- a/config/action.d/mynetwatchman.conf +++ b/config/action.d/mynetwatchman.conf @@ -102,13 +102,13 @@ mnwlogin = mnwpass = # Option: myip -# Notes.: TThe target IP for the attack (your public IP). Should be overridden +# Notes.: The target IP for the attack (your public IP). Should be overridden # either in the jail config or in a .local file unless your PUBLIC IP # is the first IP assigned to eth0 # Values: [ an IP address ] Default: Tries to find the IP address of eth0, # which in most cases will be a private IP, and therefore incorrect # -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/'` +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/'` # Option: protocol # Notes.: The protocol over which the attack is happening