STW
Hi all,
i want to connect some devices witch each other using a VPN network and openVPN as server. These devices must only be connected to eachother and not to a network "behind" the vpn server. This part is working fine for me.
Now I also want to use name resolution for simplifying things so i set up a bind9 DNS server (on an extra ubuntu server ATM), configured the DNS server and configured openVPN to push the DNS-server and DNS-suffix to my devices. Now I´m able to resolve static DNS entries.
Here comes the problem: Now i want to use DDNS to register the clients that got ip addresses assigned by openVPN DHCP server. -> The openVPN DHCP server should register the assigned leases.
Unforunatelly I´ve no idea if this is possible or what i have to do to get this work?
I´m using openVPN vmware appliance.
Thanks a lot! 😃
The Johan
I don't have all the answers, but here's one way it will work:
Assign all VPN clients static IP addresses in Access Server.
Set up a DNS server with entries that match these IP addresses.
Configure that DNS server in 'VPN Settings' and push it to the VPN clients.
Done.
STW
Thank you for your answer!
Unfortunatelly using static IP addresses is not an alternative for me 🙁
The Johan
Okay, too bad. If you use accounts that require username+password to connect, then you could hack something in python in the post_auth section of Access Server to update the DNS server when a user logs on. But if you use autologin you're out of luck.
The Johan
One more option I thought of;
You can monitor the output of /usr/local/openvpn_as/scripts/sacli VPNStatus and VPNSummary. One of those 2 gives you a JSON output that you can parse. It contains the names of the users that are logged in now, and also contains their VPN IP address and other information. You could then update the DNS server with this information every minute, for example.