On 2024-12-03 10:07, oss.gr...@omnilan.de wrote:
...
As soon as I add/uncomment *my actual config, no client is able to
acquire a lease*.
dhcp-relay=172.17.146.10,172.17.128.253
dhcp-proxy=172.17.146.10
startuplog dnsmasq-dhcp[13148]: DHCP relay from 172.17.146.10 to
172.17.128.253
On the interface with the <local address> (172.17.146.10), I can only
see this initial broadcast frame:
09:45:08.646733 ee:8c:ea:aa:1b:31 > ff:ff:ff:ff:ff:ff, ethertype IPv4
(0x0800), length 342: 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP,
Request from ee:8c:ea:aa:1b:31, length 300
Absolutely no DHCP-related frames are traveling on the <server>
(172.17.128.253) interface (ngeth14).
This doesn't change if I alter the dhcp-relay line to
"dhcp-relay=172.17.146.10,ngeth14".
The log shows
runninglog dnsmasq-dhcp[13148]: DHCP relay 172.17.146.10 ->
172.17.128.253
but no frames materialize.
...
poll({ 4/POLLIN 7/POLLIN 8/POLLIN 9/POLLIN 10/POLLIN 11/POLLIN 12/POLLIN
},7,-1) = 1 (0x1)
recvmsg(4,{{ AF_INET 0.0.0.0:68
},16,[{"\^A\^A\^F\0z)]\M-V\0\0\0\0\0\0\0"...,548}],1,{{level=IPPROTO_IP,type=IP_RECVIF,data={0x38,0x12,0x09,0x00,0x06,0x07,0x06,0x00,0x65,0x70,0x61,0x69,0x72,0x32,0x62,0xee,0x8c,0xea,0xaa,0x1b,0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}},72,MSG_PEEK},MSG_PEEK|MSG_TRUNC)
= 300 (0x12c)
recvmsg(4,{{ AF_INET 0.0.0.0:68
},16,[{"\^A\^A\^F\0z)]\M-V\0\0\0\0\0\0\0"...,548}],1,{{level=IPPROTO_IP,type=IP_RECVIF,data={0x38,0x12,0x09,0x00,0x06,0x07,0x06,0x00,0x65,0x70,0x61,0x69,0x72,0x32
,0x62,0xee,0x8c,0xea,0xaa,0x1b,0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}},72,0},0)
= 300 (0x12c)
__sysctl("net.routetable.0.0.5.0",6,0x0,0x820cb6ce8,0x0,0) = 0 (0x0)
__sysctl("net.routetable.0.0.5.0",6,0xc2b4a05e000,0x820cb6ce8,0x0,0) = 0
(0x0)
ioctl(4,SIOCGIFFLAGS,0x820cb6e90) = 0 (0x0)
ioctl(4,SIOCGIFADDR,0x820cb6e90) = 0 (0x0)
__sysctl("net.routetable.0.0.5.0",6,0x0,0x820cb6b98,0x0,0) = 0 (0x0)
__sysctl("net.routetable.0.0.5.0",6,0xc2b4a05e000,0x820cb6b98,0x0,0) = 0
(0x0)
socket(PF_INET,SOCK_DGRAM|SOCK_CLOEXEC,0) = 15 (0xf)
ioctl(15,SIOCGIFINDEX,0x820cb6ba0) = 0 (0x0)
close(15) = 0 (0x0)
socket(PF_INET,SOCK_DGRAM|SOCK_CLOEXEC,0) = 15 (0xf)
ioctl(15,SIOCGIFINDEX,0x820cb6ba0) = 0 (0x0)
close(15) = 0 (0x0)
socket(PF_INET,SOCK_DGRAM|SOCK_CLOEXEC,0) = 15 (0xf)
ioctl(15,SIOCGIFINDEX,0x820cb6ba0) = 0 (0x0)
close(15) = 0 (0x0)
sendmsg(4,{{ AF_INET 172.17.128.253:67
},43,[{"\^A\^A\^F\^Az)]\M-V\0\0\0\0\0\0"...,300}],1,{{level=IPPROTO_IP,type=IP_RECVDSTADDR,data={0xac,0x11,0x92,0x0a}}},20,0},0)
ERR#22 'Invalid argument'
P.S.: I initially observed the problem with version 2.90, but wanted to
test 2.78 which was the release fixing a dhcp-relay bug according to the
changelog.
Currently there's still 2.78 installed for debugging - which is kind of
inconvenient, since it's a jail on a production-setup which entirely
lacks compiler/debuggers...
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss