From owner-freebsd-config Sun Jun 24 21:39:18 2001 Delivered-To: freebsd-config@freebsd.org Received: from sunny.pacific.net.sg (sunny.pacific.net.sg [203.120.90.127]) by hub.freebsd.org (Postfix) with ESMTP id 7825C37B401 for ; Sun, 24 Jun 2001 21:39:15 -0700 (PDT) (envelope-from nchee_hoong@pacific.net.sg) Received: from pop2.pacific.net.sg (pop2.pacific.net.sg [203.120.90.86]) by sunny.pacific.net.sg with ESMTP id f5P3jhr16502 for ; Mon, 25 Jun 2001 11:45:43 +0800 (SGT) Received: from pacific.net.sg ([203.208.143.50]) by pop2.pacific.net.sg with ESMTP id MAA22551 for ; Mon, 25 Jun 2001 12:39:14 +0800 (SGT) Message-ID: <3B36C199.9107724A@pacific.net.sg> Date: Mon, 25 Jun 2001 12:44:09 +0800 From: Kelvin Ng Chee Hoong X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: zh-TW,en MIME-Version: 1.0 To: freebsd-config@FreeBSD.ORG Subject: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG auth 22de5182 subscribe freebsd-config nchee_hoong@pacific.net.sg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Sat Jun 30 11:53:18 2001 Delivered-To: freebsd-config@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-config@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-config" in the body of the message From owner-freebsd-config Sat Jun 30 12:15:43 2001 Delivered-To: freebsd-config@freebsd.org Received: from dm3cnd.bell.ca (dm3cnd.bell.ca [198.235.69.146]) by hub.freebsd.org (Postfix) with SMTP id E8DAD37B401; Sat, 30 Jun 2001 12:15:34 -0700 (PDT) (envelope-from eric@ste-marie.ca) Received: from 142.117.3.162 by dm3cnd.bell.ca with SMTP (Tumbleweed MMS SMTP Relay (MMS v4.7)); Sat, 30 Jun 2001 15:15:34 -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 AAA3144; Sat, 30 Jun 2001 15:15:33 -0400 Message-ID: <3B3E25F1.A79D9816@ste-marie.ca> Date: Sat, 30 Jun 2001 15:18:09 -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: 1720FADC160140-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-config@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-config" in the body of the message From owner-freebsd-config Sat Jun 30 12:53:10 2001 Delivered-To: freebsd-config@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 47C9837B406; Sat, 30 Jun 2001 12:53:04 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from blossom.cjclark.org (dialup-209.247.143.14.Dial1.SanJose1.Level3.net [209.247.143.14]) by falcon.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id MAA08169; Sat, 30 Jun 2001 12:53:02 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.4/8.11.3) id f5UJkuW08501; Sat, 30 Jun 2001 12:46:56 -0700 (PDT) (envelope-from cjc) Date: Sat, 30 Jun 2001 12:46:56 -0700 From: "Crist J. Clark" To: Eric Ste-Marie Cc: freebsd-questions@FreeBSD.ORG, freebsd-config@FreeBSD.ORG Subject: Re: IPsec setkey problem Message-ID: <20010630124656.H348@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <3B3E25F1.A79D9816@ste-marie.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B3E25F1.A79D9816@ste-marie.ca>; from eric@ste-marie.ca on Sat, Jun 30, 2001 at 03:18:09PM -0400 Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jun 30, 2001 at 03:18:09PM -0400, Eric Ste-Marie wrote: > 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 Did you recompile your kernel with, option IPSEC First? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Sat Jun 30 16: 7:26 2001 Delivered-To: freebsd-config@freebsd.org Received: from dm3cnd.bell.ca (dm3cnd.bell.ca [198.235.69.146]) by hub.freebsd.org (Postfix) with SMTP id BEEF437B40A; Sat, 30 Jun 2001 16:07:21 -0700 (PDT) (envelope-from eric@ste-marie.ca) Received: from 142.117.3.162 by dm3cnd.bell.ca with SMTP (Tumbleweed MMS SMTP Relay (MMS v4.7)); Sat, 30 Jun 2001 19:07:21 -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 AAA2FCE; Sat, 30 Jun 2001 19:07:20 -0400 Message-ID: <3B3E5C43.3B5CC6B2@ste-marie.ca> Date: Sat, 30 Jun 2001 19:09:55 -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: cjclark@alum.mit.edu Cc: freebsd-questions@FreeBSD.ORG, freebsd-config@FreeBSD.ORG Subject: Re: IPsec setkey problem References: <3B3E25F1.A79D9816@ste-marie.ca> <20010630124656.H348@blossom.cjclark.org> X-WSS-ID: 17208423174199-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You were right, I tought I di recompile it but somehow I had misread the document on recompiling the kernel. I tought that LINT would be part of the kernel. After reading your answer, I went on to verify everything and now it works fine. Thanks! -Eric "Crist J. Clark" wrote: > On Sat, Jun 30, 2001 at 03:18:09PM -0400, Eric Ste-Marie wrote: > > 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 > > Did you recompile your kernel with, > > option IPSEC > > First? > -- > Crist J. Clark cjclark@alum.mit.edu > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message