Date: Sat, 30 Jun 2001 14:55:43 -0400 From: "Eric Ste-Marie" <eric@ste-marie.ca> To: freebsd-questions@freebsd.org, freebsd-config@freebsd.org Subject: IPsec setkey problem Message-ID: <3B3E20AF.D73602E2@ste-marie.ca>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B3E20AF.D73602E2>
