I am not trying to set up a VPN. I want to protect tcp sessions between services that can be implemented either in user mode or as kernel daemons. If not for the kernel requirement, TLS would probably be enough.
The first goal is Linux; pointers to any example code in user or kernel mode would be a dandy, if any.
All existing examples that I have found relate to creating a VPN and using a heap of static configuration in protected directories, all of which I would like to avoid. It seems to me that I am looking at setsockopt things to determine the keys before listening and connecting, but have not found anything yet.
ssl ipsec
dbrower
source share