I have installed pihole on the Raspberr Pi 3.
OS : Raspbian GNU/Linux 9.9 (stretch)
Kernel : Linux nextbox 4.19.58-v7+ #1245 SMP Fri Jul 12 17:25:51 BST 2019 armv7l GNU/Linux
Dnsmasq version.
Dnsmasq version 2.76 Copyright (c) 2000-2016 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
This software comes with ABSOLUTELY NO WARRANTY.
Dnsmasq is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License, version 2 or 3.
OpenVPN version.
OpenVPN 2.4.0 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Oct 14 2018
library versions: OpenSSL 1.0.2s 28 May 2019, LZO 2.08
Originally developed by James Yonan
Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=yes enable_fragment=yes enable_iproute2=yes enable_libtool_lock=yes enable_lz4=yes enable_lzo=yes enable_maintainer_mode=no enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_password_save=yes enable_pedantic=no enable_pf=yes enable_pkcs11=yes enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_silent_rules=no enable_small=no enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=yes enable_werror=no enable_win32_dll=yes enable_x509_alt_username=yes with_crypto_library=openssl with_gnu_ld=yes with_mem_check=no with_plugindir='${prefix}/lib/openvpn' with_sysroot=no
- Pi-hole version is v4.3.1 (Latest: v4.3.1)
- AdminLTE version is v4.3 (Latest: v4.3)
- FTL version is v4.3.1 (Latest: v4.3.1)
I also want to install OpenVPN in the same board, but when I try to restart the dnsmasq I get the following error :
sudo /etc/init.d/dnsmasq restart
[....] Restarting dnsmasq (via systemctl): dnsmasq.serviceJob for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
failed!
sudo systemctl status dnsmasq.service
โ dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-08-10 22:34:13 BST; 38s ago
Process: 32756 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=1/FAILURE)
CPU: 12ms
Aug 10 22:34:13 nextbox systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Aug 10 22:34:13 nextbox dnsmasq[32756]: dnsmasq: bad option at line 44 of /etc/dnsmasq.d/01-pihole.conf
Aug 10 22:34:13 nextbox systemd[1]: dnsmasq.service: Control process exited, code=exited status=1
Aug 10 22:34:13 nextbox systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
Aug 10 22:34:13 nextbox systemd[1]: dnsmasq.service: Unit entered failed state.
Aug 10 22:34:13 nextbox systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
cat /etc/dnsmasq.d/01-pihole.conf
# Pi-hole: A black hole for Internet advertisements
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# Dnsmasq config for Pi-hole's FTLDNS
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.
###############################################################################
# FILE AUTOMATICALLY POPULATED BY PI-HOLE INSTALL/UPDATE PROCEDURE. #
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
# #
# IF YOU WISH TO CHANGE THE UPSTREAM SERVERS, CHANGE THEM IN: #
# /etc/pihole/setupVars.conf #
# #
# ANY OTHER CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE #
# WITHIN /etc/dnsmasq.d/yourname.conf #
###############################################################################
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list
localise-queries
no-resolv
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=2
log-async
# If a DHCP client claims that its name is "wpad", ignore that.
# This fixes a security hole. see CERT Vulnerability VU#598349
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
server=9.9.9.9
server=149.112.112.112
interface=eth0
Line 44 line is :
sed -n '44p' /etc/dnsmasq.d/01-pihole.conf
dhcp-name-match=set:wpad-ignore,wpad
Why is this happening ?
I can't handle dnsmasq separately ( of course as root ) ?
So far I haven't teased anything special, but I just want to restart the dnsmasq.
Thank you.