Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3847

Networking and servers • Unable to enable HotSpot. dnsmasq

$
0
0
Hi, I'm running Pi-Hole and VPN on my PI in the dockers and now I want to route smart TV traffic through this VPN.

I thought that enabling a Wi-Fi hotspot would be the easiest option...

I was following [https://www.raspberrypi.com/documentati ... le-hotspot](official guide) to enable hotspot.
My Pi-Hole and VPN setup occupy ports 53, so I've changed dnsmasq.conf

/etc/dnsmasq.conf

Code:

port=53353
I've added /etc/NetworkManager/dnsmasq.d/custom-dns

Code:

port=0 # I tried with different ports# interface=wlan0 # I've tried with and without this
journalctl:

Code:

Aug 28 02:08:51 berry NetworkManager[48137]: <info>  [1724796531.0702] dnsmasq-manager: starting dnsmasq...Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0702] dnsmasq-manager: command line: /usr/sbin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.254,60m --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlan0.leases --pid-file=/run/nm-dnsmasq-wlan0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.dAug 28 02:08:51 berry avahi-daemon[661]: New relevant interface wlan0.IPv4 for mDNS.Aug 28 02:08:51 berry avahi-daemon[661]: Registering new address record for 10.42.0.1 on wlan0.IPv4.Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0722] dnsmasq-manager: dnsmasq started with pid 67731Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0723] device[6d95a04eae07d272] (wlan0): ip:shared4: set state done (was pending)Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0724] device[6d95a04eae07d272] (wlan0): ip4: set state done (was pending, reason: check-ip-state)Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0724] active-connection[66043a1c7c523a0a]: set state-flags layer2-ready,ip4-ready (was layer2-ready)Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0726] device[6d95a04eae07d272] (wlan0): ip: set (combined) state done (was none, reason: check-ip-state)Aug 28 02:08:51 berry NetworkManager[48137]: <info>  [1724796531.0726] device (wlan0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0726] device[6d95a04eae07d272] (wlan0): add_pending_action (2): 'in-state-change'Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0729] dispatcher: (27) (wlan0) dispatching action 'pre-up' (with callback)Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0735] device[6d95a04eae07d272] (wlan0): remove_pending_action (1): 'in-state-change'Aug 28 02:08:51 berry dbus-daemon[665]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.158' (uid=0 pid=48137 comm="/usr/sbin/NetworkManager --no-daemon")Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0735] device[6d95a04eae07d272] (wlan0): ip6: set state done (was pending, reason: check-ip-state)Aug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0735] active-connection[66043a1c7c523a0a]: set state-flags layer2-ready,ip4-ready,ip6-ready (was layer2-ready,ip4-ready)Aug 28 02:08:51 berry NetworkManager[67731]: dnsmasq: failed to bind DHCP server socket: Address already in useAug 28 02:08:51 berry NetworkManager[48137]: <warn>  [1724796531.0775] dnsmasq-manager: dnsmasq exited with error: Network access problem (address in use, permissions) (2)Aug 28 02:08:51 berry dnsmasq[67731]: failed to bind DHCP server socket: Address already in useAug 28 02:08:51 berry nordvpnd[668]: 2024/08/28 02:08:51 [Debug] 0 active user processes foundAug 28 02:08:51 berry NetworkManager[48137]: <debug> [1724796531.0775] device[6d95a04eae07d272] (wlan0): ip:shared4: set state fail (was done)Aug 28 02:08:51 berry dnsmasq[67731]: FAILED to start up
I've noticed that nmcli passes --conf-dir, so I've added /etc/NetworkManager/dnsmasq-shared.d/custom-dns with the same content

But not successfully.

I appreciate any help, thank you.

Statistics: Posted by Miktor — Tue Aug 27, 2024 10:12 pm



Viewing all articles
Browse latest Browse all 3847

Trending Articles