Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Request: services_dhcpv4 #58

Open
ombre8 opened this issue Mar 21, 2024 · 0 comments · May be fixed by #84
Open

Module Request: services_dhcpv4 #58

ombre8 opened this issue Mar 21, 2024 · 0 comments · May be fixed by #84
Assignees
Labels
feature This Issue/PR relates to a feature request

Comments

@ombre8
Copy link
Member

ombre8 commented Mar 21, 2024

Module Description

This module can be used to configure the settings available in the ui under Services -> DHCPv4 -> [$interfacename]

2024-03-21-134559_2105x1200_scrot

Minimum Viable Product (MVP)

module: services_dhcpv4
short_description: Configure DHCP server for specific Interface.
description:
  - Module to configure general system settings
options:
  interface:
    description: "The Interface the DHCP server should be configured on"
    type: str
    required: true
  enable:
    description: Wheter the Server is enabled or not
    type: bool
    default: true
    required: false
  range_from:
    description: Start of the IP Pool
    type: str
    required: false
  range_to:
    description: End of the IP Pool
    type: str
    required: false

Examples

---
- name: Enable DHCP Server on LAN interface
  puzzle.opnsense.services_dhcpv4:
    interface: LAN

- name: Enable DHCP Server on guestwifi interface
  puzzle.opnsense.services_dhcpv4:
    interface: guestwifi
    enable: true
    range_from: 192.168.10.100
    range_to: 192.168.10.254

Additional Notes (Optional)

  • Starting with Opnsense 24.1 there are 2 DHCP Servers ISC (old) and Kea (new), what's described above references the old ISC Server
@ombre8 ombre8 added the feature This Issue/PR relates to a feature request label Mar 21, 2024
@ombre8 ombre8 self-assigned this Mar 23, 2024
@ombre8 ombre8 linked a pull request Mar 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This Issue/PR relates to a feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant