Project

General

Profile

Actions

Todo #12175

closed

Error after enable DHCP on Wiregurd

Added by Yuri Weinstein over 3 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
Category:
WireGuard
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:

Description

After enabling Wireguard DHCP server, I see error loading DHCP, red status and in the log php-fpm error:

 Jul 29 10:35:22    php-fpm    55219    /services_dhcp.php: The command '/usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid igb1 igb2 tun_wg0' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.4.2-P1 Copyright 2004-2021 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Config file: /etc/dhcpd.conf Database file: /var/db/dhcpd.leases PID file: /var/run/dhcpd.pid Wrote 0 class decls to leases file. Wrote 0 deleted host decls to leases file. Wrote 0 new dynamic host decls to leases file. Wrote 126 leases to leases file. Unsupported device type 23 for "tun_wg0" If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging. exiting.'
Actions #1

Updated by Christian McDonald over 3 years ago

  • Status changed from New to Rejected

This is not a bug. WireGuard is a layer3 tunnel. DHCP operates at layer2. Disable DHCP on your WireGuard interfaces.

Ideally the UI shouldn't allow you to enable DHCP on WireGuard interfaces, but that's not something a package can enforce without modifying code in base

Actions #2

Updated by Christian McDonald over 3 years ago

  • Assignee set to Christian McDonald
Actions #3

Updated by Christian McDonald over 3 years ago

  • Tracker changed from Bug to Todo

Todo: Consider this case when working on improvements to base for better handling pseudo-interface types.

Actions #4

Updated by Yuri Weinstein over 3 years ago

It’d be great to make this impossible to use then

Actions #5

Updated by Viktor Gurov over 3 years ago

Yuri Weinstein wrote in #note-4:

It’d be great to make this impossible to use then

see #12176

Actions #6

Updated by Yuri Weinstein over 3 years ago

Great !

Actions

Also available in: Atom PDF