Hello,
I try to add a guest VLAN so I followed this article.
My key defference is I want a DHCP on this Guest VLAN 9 for my guest.
I put lan15 in VLAN 9 (untagged)
I activate DHCP, set it listening to the interface (linked to my VLAN and excluding all other) .
And plug a computer and ... no lease.
I see with tcp dump Discover goind out, but no response.
tcpdump -i lan15 -pvn port 67 and port 68
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:68:00:dd, length 300, xid 0x4fe2af5f, Flags [none]
Service is listening
netstat -lnp | grep dnsmasq
tcp 0 0 192.168.8.1:53 0.0.0.0:* LISTEN 13879/dnsmasq
tcp 0 0 192.168.9.1:53 0.0.0.0:* LISTEN 13878/dnsmasq
tcp 0 0 fe80::201:2ff:fe03:405:53 :::* LISTEN 13878/dnsmasq
udp 0 0 192.168.8.1:53 0.0.0.0:* 13879/dnsmasq
udp 0 0 192.168.9.1:53 0.0.0.0:* 13878/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 13879/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 13878/dnsmasq
udp 0 0 fe80::201:2ff:fe03:405:53 :::* 13878/dnsmasq
No critical problem in log :
logread -e dnsmasq
Tue Jun 4 23:25:46 2024 local4.info dnsmasq[1]: exiting on receipt of SIGTERM
Tue Jun 4 23:25:46 2024 local4.info dnsmasq[1]: exiting on receipt of SIGTERM
Tue Jun 4 23:25:46 2024 local4.info dnsmasq[1]: started, version 2.90 cachesize 150
Tue Jun 4 23:25:46 2024 local4.info dnsmasq[1]: started, version 2.90 cachesize 150
Tue Jun 4 23:25:46 2024 local4.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack no-ipset nftset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile
Tue Jun 4 23:25:46 2024 local4.info dnsmasq[1]: UBus support enabled: connected to system bus
Tue Jun 4 23:25:46 2024 local4.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack no-ipset nftset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile
Tue Jun 4 23:25:46 2024 local4.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.9.20 -- 192.168.9.119, lease time 12h
Tue Jun 4 23:25:46 2024 local4.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.8.20 -- 192.168.8.169, lease time 12h
Tue Jun 4 23:25:46 2024 local4.info dnsmasq[1]: UBus support enabled: connected to system bus
Tue Jun 4 23:25:46 2024 local4.info dnsmasq-dhcp[1]: IPv6 router advertisement enabled
Tue Jun 4 23:25:46 2024 local4.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.9.20 -- 192.168.9.119, lease time 12h
Tue Jun 4 23:25:46 2024 local4.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.8.20 -- 192.168.8.169, lease time 12h
Tue Jun 4 23:25:47 2024 local4.info dnsmasq-dhcp[1]: DHCP, sockets bound exclusively to interface VLAN09_Guest
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for test
Tue Jun 4 23:25:47 2024 local4.info dnsmasq-dhcp[1]: IPv6 router advertisement enabled
Tue Jun 4 23:25:47 2024 local4.info dnsmasq-dhcp[1]: DHCP, sockets bound exclusively to interface VLAN08_IPphone
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for onion
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for test
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for localhost
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for onion
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for local
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for localhost
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for invalid
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for local
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for bind
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for invalid
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for bind
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using nameserver 192.168.1.4#53
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using nameserver 192.168.1.4#53
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using nameserver 192.168.1.254#53
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using nameserver 8.8.8.8#53
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using nameserver 192.168.1.254#53
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for test
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using nameserver 8.8.8.8#53
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for onion
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for test
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for localhost
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for onion
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for local
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for localhost
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for local
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for invalid
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for invalid
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for bind
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: using only locally-known addresses for bind
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: read /etc/hosts - 6 names
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: read /etc/hosts - 6 names
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: read /tmp/hosts/dhcp.08_IP_Phones - 2 names
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: read /tmp/hosts/dhcp.08_IP_Phones - 2 names
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: read /tmp/hosts/dhcp.09_GUEST - 2 names
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: read /tmp/hosts/dhcp.09_GUEST - 2 names
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: read /tmp/hosts/dhcp.09_Guest - 3 names
Tue Jun 4 23:25:47 2024 local4.info dnsmasq[1]: read /tmp/hosts/dhcp.09_Guest - 3 names
And of course i made a firewall rule to allow
config rule
option name 'DHCP-DNS 09 Guest'
option src '09_Guest'
option dest_port '53 68 67'
option target 'ACCEPT'
And in my ELK, no log about DHCP (except DNSmasq starting...) like it's not receving anything
what did I miss?