Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
DHCPv4 Relay won't start after upgrade to 19.7
« previous
next »
Print
Pages: [
1
]
Author
Topic: DHCPv4 Relay won't start after upgrade to 19.7 (Read 3878 times)
neal.schulz
Newbie
Posts: 10
Karma: 0
DHCPv4 Relay won't start after upgrade to 19.7
«
on:
August 01, 2019, 02:11:41 am »
Hi,
After upgrade to 19.7 the DHCPv4 Relay service won't start. The same configuration was working in previous versions for the last 18months at least.
The messages in the log...
"dhcrelay: Can't attach interface lan to bpf device /dev/bpf0: Device not configured"
and...
"opnsense: /status_services.php: The command '/usr/local/sbin/dhcrelay -i em2 -i lan XX.XX.XXX.X' returned exit code '1', the output was 'Requesting: em2 as upstream: Y downstream: Y Requesting: lan as upstream: Y downstream: Y "
with IP address masked.
Regards,
Neal
Logged
esfl
Newbie
Posts: 2
Karma: 0
Re: DHCPv4 Relay won't start after upgrade to 19.7
«
Reply #1 on:
August 01, 2019, 09:42:43 pm »
Hi,
we have exactly the same problem at our setup since update 19.7. But it only occurs if the DHCP-Relay-Server IP isn't on a subnet configured on an existing interface (at our setup requests to the dhcp server IP are routed through a transfer-net, a static route exists - this worked for us for months), otherwise the relay service just starts fine.
«
Last Edit: August 01, 2019, 09:45:13 pm by esfl
»
Logged
neal.schulz
Newbie
Posts: 10
Karma: 0
Re: DHCPv4 Relay won't start after upgrade to 19.7
«
Reply #2 on:
August 02, 2019, 12:40:14 am »
Yes that is true for us - the IP of the DHCP server for the relay is on a routed subnet, not a subnet that is directly connected to the OPNsense device. So it seems something changed in 19.7 because it definitely was working for us for a long time.
Logged
pbesp
Newbie
Posts: 4
Karma: 0
Re: DHCPv4 Relay won't start after upgrade to 19.7
«
Reply #3 on:
August 07, 2019, 08:38:44 pm »
I am having the same problem here:
Just did a clean migration from OPNsense 18.7.10_4 to 19.7.2 and after importing config dhcrelay persistently aborts start because of:
dhcrelay: Unsupported device type 53 for "pppoe0"
It seems somehow opnsense is not properly selecting the interfaces to pass as arguments to dhcrelay and ends up adding invalid interfaces for that service.
As a workaround I copied dhcrelay command line from 18.7.10_4 and created a script in /usr/local/etc/rc.syshook.d/start/96-dhcrelay.sh
So after the opnsense invocation of dhcrelay errors the script runs and gets it right.
Also my dhcp server is not in a directly connected network.
As a side note I always had to start manually dhcp relay on 18.7.10_4. Seems some timing issue prevents it from run properly when it is invoked by opnsense.
Logged
neal.schulz
Newbie
Posts: 10
Karma: 0
Re: DHCPv4 Relay won't start after upgrade to 19.7
«
Reply #4 on:
August 08, 2019, 12:35:04 am »
Hi,
I can report that for me the problem has been resolved in the 19.7.2 update and the DHCP Relay is now starting and working as expected without any configuration change.
Regards,
Neal
Logged
esfl
Newbie
Posts: 2
Karma: 0
Re: DHCPv4 Relay won't start after upgrade to 19.7
«
Reply #5 on:
August 08, 2019, 08:21:51 am »
Yep, same for us - fixed with 19.7.2
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
DHCPv4 Relay won't start after upgrade to 19.7