[Kea-users] Android StrongSwan identifier

deltadeltaecho deltadeltaecho at protonmail.com
Wed Mar 13 00:01:11 UTC 2019


We are using StrongSwan on Android to connect to a StrongSwan VPN server. We use Kea with a MySQL backend to store the DHCP host reservations (so clients consistently get the same IP address). On iOS we're able to send a unique ID to Kea as an option (12) in the DHCPDISCOVER message so it can consistently assign the same IP. However, for Android clients they are missing this option in the discover message so Kea cannot find a host reservation and picks the next available IP from the pool. Does anyone have any suggestions for how we can pass the same/similar unique ID from Android/StrongSwan to that Kea will be able to identify?

Some relevant logs:
Android:
... DHCPDISCOVER (type 1) received from <ip-removed> to <ip-removed> on interface eno2
2019-02-17 06:27:25.806 DEBUG [kea-dhcp4.packets/30134] DHCP4_QUERY_DATA [hwtype=1 7a:a7:cf:ab:b3:4b], cid=[removed], tid=0x7d516292, packet details: local_address=removed:67, remote_address=removed:68, msg_type=DHCPDISCOVER (1), transid=0x7d516292,
options:
  type=053, len=001: 1 (uint8)
  type=055, len=002: 6(uint8) 44(uint8)
  type=061, len=049: removed
2019-02-17 06:27:25.806 DEBUG [kea-dhcp4.dhcpsrv/30134] DHCPSRV_CFGMGR_SUBNET4_ADDR selected subnet removed/32 for packet received by matching address removed
2019-02-17 06:27:25.806 DEBUG [kea-dhcp4.packets/30134] DHCP4_SUBNET_SELECTED [hwtype=1 7a:a7:cf:ab:b3:4b], cid=[removed], tid=0x7d516292: the subnet with ID 1 was selected for client assignments
2019-02-17 06:27:25.806 DEBUG [kea-dhcp4.packets/30134] DHCP4_SUBNET_DATA [hwtype=1 7a:a7:cf:ab:b3:4b], cid=[removed], tid=0x7d516292: the selected subnet details: removed/32

First few iOS Kea logs:
... DHCPDISCOVER (type 1) received from remove to removed on interface eno2
2019-02-16 03:09:10.424 DEBUG [kea-dhcp4.packets/30134] DHCP4_QUERY_DATA [hwtype=1 7a:a7:b0:aa:50:19], cid=[removed], tid=0x8739c9aa, packet details: local_address=removed:67, remote_address=removed:68, msg_type=DHCPDISCOVER (1), transid=0x8739c9aa,

options:

  type=012, len=036: "removed - but this is the string we want" (string)

  type=053, len=001: 1 (uint8)

  type=055, len=002: 6(uint8) 44(uint8)

  type=061, len=removed

2019-02-16 03:09:10.424 DEBUG [kea-dhcp4.dhcpsrv/30134] DHCPSRV_CFGMGR_SUBNET4_ADDR selected subnet removed/32 for packet received by matching address removed

2019-02-16 03:09:10.424 DEBUG [kea-dhcp4.packets/30134] DHCP4_SUBNET_SELECTED [hwtype=1 7a:a7:b0:aa:50:19], cid=[removed], tid=0x8739c9aa: the subnet with ID 1 was selected for client assignments

2019-02-16 03:09:10.424 DEBUG [kea-dhcp4.packets/30134] DHCP4_SUBNET_DATA [hwtype=1 7a:a7:b0:aa:50:19], cid=[removed], tid=0x8739c9aa: the selected subnet details: removed/32
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20190313/3c576257/attachment.htm>


More information about the Kea-users mailing list