Skip to content

add an option to openvpn to update client ip's on a dns server on connection#10229

Open
AngusMcGyver wants to merge 2 commits intoopnsense:masterfrom
AngusMcGyver:openvpn-dns-update
Open

add an option to openvpn to update client ip's on a dns server on connection#10229
AngusMcGyver wants to merge 2 commits intoopnsense:masterfrom
AngusMcGyver:openvpn-dns-update

Conversation

@AngusMcGyver
Copy link
Copy Markdown

Important notices

Before you submit a pull request, we ask you kindly to acknowledge the following:

If AI was used, please disclose:

  • Model used: claude-sonnet-4-5
  • Extent of AI involvement:
  • helped to create the base of the python update script
  • manual work after that

Describe the problem

I’m using OPNsense as my firewall/router and want remote OpenVPN clients to have their dynamic assigned IP addresses automatically registered in my internal DNS server, so i can access them via name. For example to run backup from server side.


Describe the proposed solution

Hook a script into the OpenVPN 'learn-address' and 'client-disconnect' functions to update a DNS server with hostname and IP address of a client.
The hostname is used from a X509 client certificate field.
The update message is signed with a tsig key.
Additional options like server port, entry TTL, reverse zone names, an additional pre/suffix for hoastname and so on are configurable via OpenVPN instance menu.


Related issue

#10228

@AdSchellevis
Copy link
Copy Markdown
Member

not sustainable, see also (#10228 (comment)). Also likely breaks existing functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants