From 772a94ff6daac29bdcf5b9b0f3214816bc85cb40 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 18 Oct 2018 15:47:14 -0700 Subject: [PATCH] Force geard to listen on :: By default geard only listens on ipv4 0.0.0.0 which means ipv6 connectiosn don't work. Because we run dual stack and things expect ipv6 to work (we have AAAA dns records after all) force geard to listen on :: which will accept ipv6 and ipv4 connections. Change-Id: Ibf3bfc5f80ca139b375ee2902dc3149ac791ef96 --- files/geard.init | 2 +- templates/geard.default.erb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/geard.init b/files/geard.init index 20bcec8..63af366 100755 --- a/files/geard.init +++ b/files/geard.init @@ -25,7 +25,7 @@ USER=logprocessor # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME -DAEMON_ARGS="-p $GEARD_PORT --pidfile $PIDFILE" +DAEMON_ARGS="--listen-address $GEARD_LISTEN_ADDRESS -p $GEARD_PORT --pidfile $PIDFILE" # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh diff --git a/templates/geard.default.erb b/templates/geard.default.erb index 6b144d0..7b4ac4f 100644 --- a/templates/geard.default.erb +++ b/templates/geard.default.erb @@ -3,4 +3,5 @@ export STATSD_HOST=<%= @statsd_host %> export STATSD_PORT=8125 export STATSD_PREFIX="logstash.geard" <% end %> +export GEARD_LISTEN_ADDRESS=:: export GEARD_PORT=<%= @geard_port %>