From owner-freebsd-questions Sat Jun 30 11:53:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dm3cn8.bell.ca (dm3cn8.bell.ca [198.235.69.145]) by hub.freebsd.org (Postfix) with SMTP id 171BF37B401; Sat, 30 Jun 2001 11:53:06 -0700 (PDT) (envelope-from eric@ste-marie.ca) Received: from 142.117.3.162 by dm3cn8.bell.ca with SMTP (Tumbleweed MMS SMTP Relay (MMS v4.7)); Sat, 30 Jun 2001 14:53:05 -0400 X-Server-Uuid: b85f21a3-cfd1-11d3-8401-00104bf46ab7 Received: from ste-marie.ca ([142.117.85.91]) by blmc2w.qc.bell.ca ( Netscape Messaging Server 3.6) with ESMTP id AAA2638; Sat, 30 Jun 2001 14:53:04 -0400 Message-ID: <3B3E20AF.D73602E2@ste-marie.ca> Date: Sat, 30 Jun 2001 14:55:43 -0400 From: "Eric Ste-Marie" Reply-To: eric@ste-marie.ca X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.4 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsd-config@freebsd.org Subject: IPsec setkey problem X-WSS-ID: 1720FF9B167286-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I'm a 1 day newbie on FreeBSD. I'm trying to setup Ipsec. now here is my problem, when I run: #setkey -c I get: pfkey_open: Protocol not supported setkey: Protocol not supported I tried to do: #truss setkey -c and get: __sysctl(0xbfbffb10,0x2,0x28067928,0xbfbffb0c,0x0,0x0) = 0 (0x0) mmap(0x0,32768,0x3,0x1002,-1,0x0) = 671518720 (0x28069000) geteuid() = 0 (0x0) getuid() = 0 (0x0) getegid() = 0 (0x0) getgid() = 0 (0x0) open("/var/run/ld-elf.so.hints",0,00) = 3 (0x3) read(0x3,0xbfbffaf0,0x80) = 128 (0x80) lseek(3,0x80,0) = 128 (0x80) read(0x3,0x2806d000,0x37) = 55 (0x37) close(3) = 0 (0x0) access("/usr/lib/libipsec.so.1",0) = 0 (0x0) open("/usr/lib/libipsec.so.1",0,027757775550) = 3 (0x3) fstat(3,0xbfbffb38) = 0 (0x0) read(0x3,0xbfbfeb08,0x1000) = 4096 (0x1000) mmap(0x0,24576,0x5,0x2,3,0x0) = 671551488 (0x28071000) mmap(0x28076000,4096,0x3,0x12,3,0x4000) = 671571968 (0x28076000) close(3) = 0 (0x0) access("/usr/lib/libc.so.4",0) = 0 (0x0) open("/usr/lib/libc.so.4",0,027757775550) = 3 (0x3) fstat(3,0xbfbffb38) = 0 (0x0) read(0x3,0xbfbfeb08,0x1000) = 4096 (0x1000) mmap(0x0,614400,0x5,0x2,3,0x0) = 671576064 (0x28077000) mmap(0x280f4000,20480,0x3,0x12,3,0x7c000) = 672088064 (0x280f4000) mmap(0x280f9000,81920,0x3,0x1012,-1,0x0) = 672108544 (0x280f9000) close(3) = 0 (0x0) sigaction(SIGILL,0xbfbffb90,0xbfbffb78) = 0 (0x0) sigprocmask(0x1,0x0,0x2806785c) = 0 (0x0) sigaction(SIGILL,0xbfbffb78,0x0) = 0 (0x0) sigprocmask(0x1,0x28067820,0xbfbffbb8) = 0 (0x0) sigprocmask(0x3,0x28067830,0x0) = 0 (0x0) socket(0x1b,0x3,0x2) ERR#43 'Protocol not supported' pfkey_open: Protocol not supported writev(0x2,0xbfbffba4,0x4) = 35 (0x23) setkey: write(2,0xbfbff48c,8) = 8 (0x8) Protocol not supportedwrite(2,0xbfbff4bc,22) = 22 (0 x16) write(2,0xbfbff48c,1) = 1 (0x1) sigprocmask(0x1,0x28067820,0xbfbffb24) = 0 (0x0) sigprocmask(0x3,0x28067830,0x0) = 0 (0x0) exit(0xffffffff) process exit, rval = 65280 Now I see that on the socket function call I get the "Protocol not supported" error. If I understand the manpage of socket properly, 0x1b is pseudo_AF_KEY (from sys/socket.h internal key-management) 0x3 is SOCK_RAW (from sys/socket.h as well) 0x2 is IGMP (from /etc/protocols) Has Anyone experienced this? Any clue on a solution? Thanks in advance. Eric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message