From dbedfe2557839332c394c44deb6c376f386681d9 Mon Sep 17 00:00:00 2001 From: Jayapal Date: Thu, 17 Sep 2015 11:34:27 +0530 Subject: [PATCH] Configured dnsmasq to listen on all interfaces so that vpn client gets dns --- systemvm/patches/debian/config/etc/dnsmasq.conf.tmpl | 4 ++-- systemvm/patches/debian/config/etc/init.d/cloud-early-config | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/systemvm/patches/debian/config/etc/dnsmasq.conf.tmpl b/systemvm/patches/debian/config/etc/dnsmasq.conf.tmpl index 28b598c8e8b4..403e20419758 100644 --- a/systemvm/patches/debian/config/etc/dnsmasq.conf.tmpl +++ b/systemvm/patches/debian/config/etc/dnsmasq.conf.tmpl @@ -87,7 +87,7 @@ local=/2.vmops-test.vmops.com/ # specified interfaces (and the loopback) give the name of the # interface (eg eth0) here. # Repeat the line for more than one interface. -interface=eth0 +#interface=eth0 # Or you can specify which interface _not_ to listen on except-interface=eth1 except-interface=eth2 @@ -108,7 +108,7 @@ no-dhcp-interface=eth2 # want dnsmasq to really bind only the interfaces it is listening on, # uncomment this option. About the only time you may need this is when # running another nameserver on the same machine. -bind-interfaces +#bind-interfaces # If you don't want dnsmasq to read /etc/hosts, uncomment the # following line. diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-early-config b/systemvm/patches/debian/config/etc/init.d/cloud-early-config index 934ba9caf7b7..fec5ecf65fe4 100755 --- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config +++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config @@ -706,7 +706,7 @@ setup_dnsmasq() { sed -i -e "s/^dhcp-range_ip6=.*$//" /etc/dnsmasq.conf fi - sed -i -e "s/^[#]*listen-address=.*$/listen-address=$LOCAL_ADDRS/" /etc/dnsmasq.conf + #sed -i -e "s/^[#]*listen-address=.*$/listen-address=$LOCAL_ADDRS/" /etc/dnsmasq.conf if [ "$RROUTER" == "1" ] then