TCP-MD5

Patrik Forsberg patrik.forsberg at dataphone.net
Tue Apr 4 13:54:49 UTC 2006


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


More information about the freebsd-isp mailing list