[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-isp
Subject:    TCP-MD5
From:       "Patrik Forsberg" <patrik.forsberg () dataphone ! net>
Date:       2006-04-04 13:54:43
Message-ID: 039BED0949CA9C4AB253EBDA3ADDAA3262EE7F () stomail01 ! se ! dataphone ! com
[Download RAW message or body]

Hi,

I've had TCP-MD5 working on an old FreeBSD 4.x, it crashed and I've
reinstalled a FreeBSD 6.x now. Everything is working fine exept the
TCP-MD5 part.
I am using it for Quagga BGP-MD5. All peers I'm trying to talk to sais
that my key is invalid, even tho I set it up on a machine I control
myself and copy-paste the key it the peer sais the key is invalid.

Has the syntax changed on how to set this up ?

I've compiled the kernel with
<snip>
FAST_IPSEC
TCP_SIGNATURE
device crypto
device crytpodev
</snip>

and added QUAGGA_MD5_SIGNATURE(or whatever it is called) to the
configuration of Quagga but still receive the same result.

When I run
"setkey -D" it shows me a dump of the peers, as expected, and from what
I can tell it is correct.
I do receive alot of errors like "tcp_signature_compute: SADB lookup
failed for <peer-ip>" even tho the key is valid.

I've tried compiling the kernel with "IPSEC" and not "FAST_IPSEC" too
but with the same result.

My " setkey -D " dump looks somewhat like this
<snip>
<sourceip> <peerip>
        tcp mode=any spi=4096(0x00001000) reqid=0(0x00000000)
        A: tcp-md5  xxxxxxxx xxxxxx
        seq=0x00000000 replay=0 flags=0x00000040 state=mature 
        created: Apr  4 13:57:36 2006   current: Apr  4 15:47:20 2006
        diff: 6584(s)   hard: 0(s)      soft: 0(s)
        last: Apr  4 15:14:30 2006      hard: 0(s)      soft: 0(s)
        current: 0(bytes)    hard: 0(bytes)  soft: 0(bytes)
        allocated: 64   hard: 0 soft: 0
        sadb_seq=0 pid=xxxxx refcnt=1
</snip>
(Some information has been overwritten with " x ".)

"setkey -DP" gives me "No SPD entries." which is probably as it should.

My " /etc/ipsec.conf " configuration file looks something like this
<snip>
flush ;
add -4 <sourceip> <peerip> tcp 0x1000 -A tcp-md5 "<validBGPKey>" ;
</snip>

And in my Quagga configuration it has a "neighbor <peerip> password
<validBGPKey>" entry.


--
Best regards,
Patrik
_______________________________________________
freebsd-isp@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic