Installing tcpcrypt on Windows
Only cross-compiling for Windows on Linux (using mingw) is supported right now. You can almost certainly compile the Windows version on Windows itself, but we haven't done that yet (if you have, contact us).
Using mingw, run the following commands to cross-compile tcpcrypt for Windows on a Linux host.
cd tcpcrypt ./bootstrap.sh ./configure CFLAGS="-mwin32 -D__WIN32__ -I/home/sqs/src/mingw/OpenSSL-Win32/include" LDFLAGS=" -L/home/sqs/src/mingw/OpenSSL-Win32/ " --host=i586-mingw32msvc make
<path-to-mingw-openssl> with the path to OpenSSL compiled for
Windows. You can download binaries from
(use the 'Win32 OpenSSL v1.0.0a' link) and run the installer with Wine. Then
libcrypto.dll in the root OpenSSL folder (that you
just installed into). There's almost certainly a cleaner way to do this, but
this is the quickest way.
tcpcrypt depends on WinDivert:
You'll have to supply paths to header files and WinDivert.dll when compiling (modify CFLAGS and LDFLAGS as above).
make install will install
libtcpcrypt and tcpcrypt
headers, for building apps that use tcpcrypt's session ID.
The Windows implementation of tcpcrypt has two components: the third-party kernel divert socket driver and the userland daemon.
Installing the kernel divert socket driver
Just place WinDivert32.sys and WinDirver64.sys in the directory of tcpcrypt.
Getting the userland daemon
If you followed the compilation steps above, you're done. Otherwise, download the pre-compiled tcpcryptd binary for Windows at http://tcpcrypt.org/. If you will use the launch script (below), move this file to tcpcrypt/user/tcpcrypt/tcpcryptd.exe, which is where the launch script expects it.
Or you can just download the precompiled Windows GUI version at the link above.
After installing the divert socket driver, run the tcpcryptd daemon with the following command:
By default, this script tells tcpcryptd to use the first network interface
ipconfig /all. If you want to use a different interface, run
tcpcrypt/tcpcryptd -x 0a:1b:2c:3d:4f:6a
Once tcpcryptd is running, see README.markdown for ways to try it out.