NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: IPPROTO_ESP and vpnc


I don't know why you're getting the error, but you can't have ESP enabled in the kernel if you want to run vpnc. If ESP is enabled in the kernel then the kernel will grab the ESP packets and they won't ever get to vpnc running in userland. I just verified that.


*Jason Mitchell*
bigjar systems
5430 Lynx Lane | Suite 127 | Columbia, MD 21044 <> p: 443.430.9739 | f: 443-583-0289 | c: 410-921-0272 “THINK GREEN…and print this email only if necessary. Doing the Right Things to Make a Difference”.

On 04/05/2011 03:29 PM, matthew sporleder wrote:
I'm trying to use vpnc and getting the following error:
socket(PF_INET, SOCK_RAW, IPPROTO_ESP): Protocol not supported

I wrote the following test program and get the same thing:


int main(int argc, char *argv[])
   int sock;
   sock = socket(PF_INET, SOCK_RAW, IPPROTO_ESP);
   if ( sock<  0 )
     perror("sock problem");


Is this because my kernel has IPSEC commented out?


Home | Main Index | Thread Index | Old Index