Kasyx
Hiya everyone,
I'm having a problem with the client configuration (I can't see a forum area for such problems, sorry if this is the wrong place). I assign a MAC address for each client, which is given in the --lladdr option so that my clients can use my DHCP server.
My problem relates to the way that OpenVPN applies the MAC address. I have put a --route-delay period in to give the DHCP client enough time to get an IP address from the server, and if I manually run the DHCP command during that period, it will retrieve an address. So the actual infrastructure is working exactly as intended.
So I then set my DHCP client service to listen out for tap0 and fetch an address when it sees that it's available. This is where the problem occurs. OpenVPN applies the MAC address /after/ the interface has been created. This means that the DHCP service has already jumped on the interface and said 'I'm having that', and by the time poor old OpenVPN comes along and attempts to set the MAC address, the device is in use and it fails.
Is there anyway to tell OpenVPN to give the MAC address as a parameter for creating the interface in the first place? I know it's one of the options of ifconfig so it should be possible, but would that mean patching the source?
-K
maikcat
hi there,
although i cant help you with your issue,
i am aware that openvpn has several mechanisms of "giving out" ip addresses
by itself.. (ccd files).
why dont you use them?
Michael.