creating an IPsec SA with ports specified



Hello,

I am not able to create an IPsec SA with ports specified.
I've been successful neither with setkey nor programmatically using PF_KEY
messages.

I use linux (kernel 2.6.13)

1) setkey (using version 0.6.4)
add 10.0.11.41[2365] 10.0.11.33[2416] esp 0x10001
-E des-cbc 0x3ffe05014819ffff
-A hmac-md5 "authentication!!";

2) PF_KEY messages
I've set protocol to UDP
And src and dst address populated with ports.

However dumping setkey -Dp, still shows ports zero

10.0.0.11.41[0] 10.0.11.33[0]
esp mode=transport spi=65537(0x00010001) reqid=0(0x00000000)
E: des-cbc 3ffe0501 4819ffff
A: hmac-md5 61757468 656e7469 63617469 6f6e2121
seq=0x00000000 replay=0 flags=0x00000000 state=mature
created: Dec 19 10:18:07 2005 current: Dec 19 10:42:02 2005
diff: 1435(s) hard: 0(s) soft: 0(s)
last: hard: 0(s) soft: 0(s)
current: 0(bytes) hard: 0(bytes) soft: 0(bytes)
allocated: 0 hard: 0 soft: 0
sadb_seq=0 pid=6581 refcnt=0

What am I doing wrong? Or is there an bug?

Jirka

.



Relevant Pages

  • Re: Is FreeBSD 5.2.1 on Opteron a 64 bits OS?
    ... > in the kernel itself) and any other ports that require Linux emulation. ... To compile the jdk142 natively ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Is FreeBSD 5.2.1 on Opteron a 64 bits OS?
    ... >> in the kernel itself) and any other ports that require Linux emulation. ... separate target dirs for object code (since my two machines use different ...
    (comp.unix.bsd.freebsd.misc)
  • Re: installing to hardware Raid 0 system
    ... Appears to be a hardware SATA raid controller with 6 ports. ... Depends upon your linux version and kernel. ...
    (comp.os.linux.setup)
  • Re: creating an IPsec SA with ports specified
    ... > I am not able to create an IPsec SA with ports specified. ... > I've been successful neither with setkey nor programmatically using PF_KEY ... If you really want to create static SAs to use UDP encapsulation on ...
    (comp.os.linux.security)
  • Re: creating an IPsec SA with ports specified
    ... >> I am not able to create an IPsec SA with ports specified. ... >> I've been successful neither with setkey nor programmatically using ... I want to have several SAs which differs in ports. ... So the ports are used as selectors passed through SPD. ...
    (comp.os.linux.security)