]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
dnsmasq must respond to all requests
authorLoic Dachary <ldachary@redhat.com>
Thu, 9 Feb 2017 10:21:07 +0000 (11:21 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 14 Oct 2019 14:47:01 +0000 (16:47 +0200)
It is a security issue that should be addressed when running long lived
clusters. But teuthology-openstack is meant to not last more than a few
days.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
teuthology/openstack/setup-openstack.sh

index b4c6b2052daabd89996e3b06e78cdcc8ed6a554e..ec52e3a85ef08a68d231af2e8ac495801d8a519d 100755 (executable)
@@ -374,6 +374,9 @@ function setup_dnsmasq() {
     local dev=$2
 
     if ! test -f /etc/dnsmasq.d/resolv ; then
+        # FIXME: this opens up dnsmasq to DNS reflection/amplification attacks, and can be reverted
+        # FIXME: once we figure out how to configure dnsmasq to accept DNS queries from all subnets
+        sudo perl -pi -e 's/--local-service//' /etc/init.d/dnsmasq
         resolver=$(grep nameserver /etc/resolv.conf | head -1 | perl -ne 'print $1 if(/\s*nameserver\s+([\d\.]+)/)')
         sudo apt-get -qq install -y --force-yes dnsmasq resolvconf
         echo resolv-file=/etc/dnsmasq-resolv.conf | sudo tee /etc/dnsmasq.d/resolv