DHCP inform in VPN tunnel
Maxim Loschilov
Mon Feb 12 13:17:06 2018
Hello.
I need to implement connection of some device to private network via VPN
and then get network settings from private DHCP Server using DHCPINFORM.
The steps are the following:
1) Reboot the device and start 'dhcpcd' as a daemon to obtain and maintain
DHCP lease
in the public network.
2) Connect to the private network via VPN gateway.
3) In the private network use 'dhcpcd' and DHCPINFORM to obtain network
settings
of the private network.
DHCPINFORM is used because IP address will be assigned by VPN gateway.
The main question is is it possible at all to implement this scenario using
'dhcpcd' ?
If yes, then there are subquestions:
- How should I use 'dhcpcd' at step 3? Should I execute it as a separate
command:
system("dhcpcd --inform") ?
- Will it run a separate daemon process for a single operation or pass
this info
to already running daemon?
- Do I correctly understand that I should run ' dhcpcd ' on a virtual
interface?
- How should parameters, obtained from DHCPACK reply on DHCPINFORM request,
be processed - will separate options/reason files be created?
Thanks in advance.
Archive administrator: postmaster@marples.name