[strongSwan-dev] A hand regarding (kernel-)libipsec and Windows

Noel Kuntze noel at familie-kuntze.de
Tue Aug 23 02:11:22 CEST 2016


Hello,

I'm looking for some help regarding getting (kernel-)libipsec to work on Windows.
I've already written the necessary code to interface with the TAP-Windows driver from OpenVPN
and I already added code to handle the setting of the gateway field in the routes and functions to
perform IO operations on the TUN handles, however, I have some problems getting it to work.

The basic problem is, that despite charon receiving an ESPINUDP packet, the traffic counter does not increase
and I don't get the data on the TAP device (in TUN mode) and vice versa (receiving packets on the handle of the TAP device does not work either yet).

The current state of affairs is, that the negotiation of a CHILD_SA works fine, as does the installation of a route
and the virtual IP.

Short list of what was done:
*add ifdefs and code in libstrongswan to find, open and configure TAP devices on Windows with the TAP-Windows driver
*add short code for setting the GW of the routes over the TAP device on Windows
*merge code from the win-vip branch
*add some code to honor charon.install_virtual_ip_on
*code to perform IO operations on the handles
*create/copy header files for (missing) constants

My code can be found on Github (https://github.com/Thermi/strongswan) in the windows-libipsec branch. If you like to help, you probably want to look at the diff from
commit 1dabd0fb1cfdb5b3381d45a39a7cb134651b72a9 to HEAD.

I'd greatly appreciate a helping hand that sheds some light on what I'm doing wrong or what's still missing.

-- 

Mit freundlichen Grüßen/Kind Regards,
Noel Kuntze

GPG Key ID: 0x63EC6658
Fingerprint: 23CA BB60 2146 05E7 7278 6592 3839 298F 63EC 6658


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20160823/10bd82e8/attachment.sig>


More information about the Dev mailing list