| Title | Connect two SA bundles with different spi, different IPdst |
| CommandLine | ./HTR_A_Out_2SA_DspiDipdst.seq -pkt ./HTR_A_2SA_DspiDip.def -log 5.html -ti Connect two SA bundles with different spi, different IPdst |
| TestVersion | |
| ToolVersion | undefined |
| Start | 2002/03/27 18:32:46 |
| Tn | /usr/local/v6eval//etc//tn.def |
| Nu | /usr/local/v6eval//etc//nut.def |
| Pkt | ./HTR_A_2SA_DspiDip.def |
| System | usagi-i386 |
| TargetName | Red Hat Linux release 7.2 (Enigma) + usagi cvs 2002/03/26 20:00 |
| HostName | usagi.tahi.org |
| Type | host |
| 18:32:46 | Start |
|
*** Target initialization phase *** Target: Clear all SAD and SPD entries |
|
| 18:32:46 |
vRemote(ipsecClearAll.rmt) ``/usr/local/v6eval//bin/usagi-i386//ipsecClearAll.rmt -t usagi-i386 -u root -p v6eval -d cuaa0 -o 1 ''
Connected. [root@usagi root]# [root@usagi root]# /usr/local/v6/bin/pfkey -F any [root@usagi root]# echo $? 16 ~. Disconnected. |
| Target: Set SAD entries: src="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" dst="3ffe:501:ffff:ff05:200:ff:fe00:c1c1" spi=0x1000 mode=transport protocol=ah aalgo=hmac-md5 aalgokey=TAHITEST89ABCDEF | |
| 18:32:50 |
vRemote(ipsecSetSAD.rmt) ``/usr/local/v6eval//bin/usagi-i386//ipsecSetSAD.rmt -t usagi-i386 -u root -p v6eval -d cuaa0 -o 1 src="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" dst="3ffe:501:ffff:ff05:200:ff:fe00:c1c1" spi=0x1000 mode=transport protocol=ah aalgo=hmac-md5 aalgokey=TAHITEST89ABCDEF ''
Connected. [root@usagi root]# [root@usagi root]# /usr/local/v6/bin/pfkey -A sa -T ah -S 0x1000 -s 3ffe:501:ff ff:ff03:200:ff:fe00:b0b0/128 -d 3ffe:501:ffff:ff05:200:ff:fe00:c1c1/128 --auth h mac-md5 --authkey 0x54414849544553543839414243444546 [root@usagi root]# sendMessagesSync: never got /usr/local/v6/bin/pfkey -A sa -T ah -S 0x1000 -s 3ffe:501:ffff:ff03:200:ff:fe00:b0b0/128 -d 3ffe:501:ffff:ff05:200:ff:fe00:c1c1/128 --auth hmac-md5 --authkey 0x54414849544553543839414243444546 ~. Disconnected. |
| Target: Set SPD entries: src="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" dst="3ffe:501:ffff:ff05:200:ff:fe00:c1c1" upperspec=any direction=out protocol=ah mode=transport | |
| 18:33:28 |
vRemote(ipsecSetSPD.rmt) ``/usr/local/v6eval//bin/usagi-i386//ipsecSetSPD.rmt -t usagi-i386 -u root -p v6eval -d cuaa0 -o 1 src="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" dst="3ffe:501:ffff:ff05:200:ff:fe00:c1c1" upperspec=any direction=out protocol=ah mode=transport ''
Connected. level is specified. I ignore it [root@usagi root]# [root@usagi root]# /usr/local/v6/bin/pfkey -A sp -S any -T ah -s 3ffe:501:ffff:f f03:200:ff:fe00:b0b0/128 -d 3ffe:501:ffff:ff05:200:ff:fe00:c1c1/128 [root@usagi root]# sendMessagesSync: never got /usr/local/v6/bin/pfkey -A sp -S any -T ah -s 3ffe:501:ffff:ff03:200:ff:fe00:b0b0/128 -d 3ffe:501:ffff:ff05:200:ff:fe00:c1c1/128 [root@usagi root]# /usr/local/v6/bin/pfkey -L SADB: ----------------------------------------------- sa:c157f000 state: 1 sport:0 src:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128 dport:0 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c1c1/128 pxy: proto:0 ipsec_proto:2 spi:0x1000 state:1 refcnt:1 auth:2 esp:0 lifetime c:0 0 (byte), 0 424 (add), 0 0 (use) lifetime s:0 0 (byte), 0 0 (add), 0 0 (use) lifetime h:0 0 (byte), 0 0 (add), 0 0 (use) ----------------------------------------------- SPD: --------------------------------------------- src:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128 sport:0 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c1c1/128 dport:0 proto:0 policy:0 sa(ah):00000000 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c1c1/128 ipsec_proto:2 spi:0xffffffff --------------------------------------------- [root@usagi root]# echo $? 1 ~. Disconnected. |
| Target: Set SAD entries: src="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" dst="3ffe:501:ffff:ff05:200:ff:fe00:c2c2" spi=0x2000 mode=transport protocol=ah aalgo=hmac-md5 aalgokey=foo0foo1foo2foo3 | |
| 18:34:09 |
vRemote(ipsecSetSAD.rmt) ``/usr/local/v6eval//bin/usagi-i386//ipsecSetSAD.rmt -t usagi-i386 -u root -p v6eval -d cuaa0 -o 1 src="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" dst="3ffe:501:ffff:ff05:200:ff:fe00:c2c2" spi=0x2000 mode=transport protocol=ah aalgo=hmac-md5 aalgokey=foo0foo1foo2foo3 ''
Connected. [root@usagi root]# [root@usagi root]# /usr/local/v6/bin/pfkey -A sa -T ah -S 0x2000 -s 3ffe:501:ff ff:ff03:200:ff:fe00:b0b0/128 -d 3ffe:501:ffff:ff05:200:ff:fe00:c2c2/128 --auth h mac-md5 --authkey 0x666F6F30666F6F31666F6F32666F6F33 [root@usagi root]# sendMessagesSync: never got /usr/local/v6/bin/pfkey -A sa -T ah -S 0x2000 -s 3ffe:501:ffff:ff03:200:ff:fe00:b0b0/128 -d 3ffe:501:ffff:ff05:200:ff:fe00:c2c2/128 --auth hmac-md5 --authkey 0x666F6F30666F6F31666F6F32666F6F33 ~. Disconnected. |
| Target: Set SPD entries: src="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" dst="3ffe:501:ffff:ff05:200:ff:fe00:c2c2" upperspec=any direction=out protocol=ah mode=transport | |
| 18:34:48 |
vRemote(ipsecSetSPD.rmt) ``/usr/local/v6eval//bin/usagi-i386//ipsecSetSPD.rmt -t usagi-i386 -u root -p v6eval -d cuaa0 -o 1 src="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" dst="3ffe:501:ffff:ff05:200:ff:fe00:c2c2" upperspec=any direction=out protocol=ah mode=transport ''
Connected. level is specified. I ignore it [root@usagi root]# [root@usagi root]# /usr/local/v6/bin/pfkey -A sp -S any -T ah -s 3ffe:501:ffff:f f03:200:ff:fe00:b0b0/128 -d 3ffe:501:ffff:ff05:200:ff:fe00:c2c2/128 [root@usagi root]# sendMessagesSync: never got /usr/local/v6/bin/pfkey -A sp -S any -T ah -s 3ffe:501:ffff:ff03:200:ff:fe00:b0b0/128 -d 3ffe:501:ffff:ff05:200:ff:fe00:c2c2/128 [root@usagi root]# /usr/local/v6/bin/pfkey -L SADB: ----------------------------------------------- sa:c157f000 state: 1 sport:0 src:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128 dport:0 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c1c1/128 pxy: proto:0 ipsec_proto:2 spi:0x1000 state:1 refcnt:1 auth:2 esp:0 lifetime c:0 0 (byte), 0 424 (add), 0 0 (use) lifetime s:0 0 (byte), 0 0 (add), 0 0 (use) lifetime h:0 0 (byte), 0 0 (add), 0 0 (use) ----------------------------------------------- sa:c157f400 state: 1 sport:0 src:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128 dport:0 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c2c2/128 pxy: proto:0 ipsec_proto:2 spi:0x2000 state:1 refcnt:1 auth:2 esp:0 lifetime c:0 0 (byte), 0 503 (add), 0 0 (use) lifetime s:0 0 (byte), 0 0 (add), 0 0 (use) lifetime h:0 0 (byte), 0 0 (add), 0 0 (use) ----------------------------------------------- SPD: --------------------------------------------- src:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128 sport:0 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c1c1/128 dport:0 proto:0 policy:0 sa(ah):00000000 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c1c1/128 ipsec_proto:2 spi:0xffffffff --------------------------------------------- src:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128 sport:0 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c2c2/128 dport:0 proto:0 policy:0 sa(ah):00000000 dst:3ffe:0501:ffff:ff05:0200:00ff:fe00:c2c2/128 ipsec_proto:2 spi:0xffffffff --------------------------------------------- [root@usagi root]# echo $? 1 ~. Disconnected. |
|
*** Target testing phase *** |
|
| 18:35:28 | Start Capturing Packets (Link0) |
| 18:35:28 |
vSend(Link0,echo_request_from_host1) send echo_request_from_host1 |
| 18:35:28 | vRecv(Link0,ns_to_router echo_reply_to_host1_ah) timeout:6 cntLimit:0 seektime:0 recv echo_reply_to_host1_ah |
| 18:35:29 | vRecv(Link0,ns_to_router) timeout:6 cntLimit:0 seektime:0 recv ns_to_router |
| 18:35:33 |
vSend(Link0,na_from_router) send na_from_router |
| NC about Router was PROBE state, but now it's REACHABLE. | |
| 18:35:33 | vRecv(Link0,ns_to_router) timeout:6 cntLimit:0 seektime:0 vRecv() return status=1 |
| 18:35:40 | vRecv(Link0,ns_to_router) timeout:6 cntLimit:0 seektime:0 vRecv() return status=1 |
|
TN received echo reply from NUT to HOST1. Ping over 1st SA bundle is available. |
|
| 18:35:46 |
vSend(Link0,echo_request_from_host2) send echo_request_from_host2 |
| 18:35:46 | vRecv(Link0,ns_to_router echo_reply_to_host2_ah) timeout:6 cntLimit:0 seektime:0 recv echo_reply_to_host2_ah |
| 18:35:46 | vRecv(Link0,ns_to_router) timeout:6 cntLimit:0 seektime:0 vRecv() return status=1 |
|
TN received echo reply from NUT to HOST2. Ping over 2nd SA bundle is available. Ping over coexisting two SA bundles are available. OK |
|
| 18:35:52 | End |
Frame_Ether (length:70) | Hdr_Ether (length:14) | | DestinationAddress = 0:e0:18:a8:ab:de | | SourceAddress = 0:0:0:0:a0:a0 | | Type = 34525 | Packet_IPv6 (length:56) | | Hdr_IPv6 (length:40) | | | Version = 6 | | | TrafficClass = 0 | | | FlowLabel = 0 | | | PayloadLength = 16 | | | NextHeader = 58 | | | HopLimit = 64 | | | SourceAddress = 3ffe:501:ffff:ff05:200:ff:fe00:c1c1 | | | DestinationAddress = 3ffe:501:ffff:ff03:200:ff:fe00:b0b0 | | ICMPv6_EchoRequest (length:16) | | | Type = 128 | | | Code = 0 | | | Checksum = 7333 calc(7333) | | | Identifier = 0 | | | SequenceNumber = 0 | | | Payload (length:8) | | | | data = 4563686f 44617461
===ALGORITHM LISTS BEGIN====================
--------------------------------------------
frame=echo_reply_to_host1_ah
AH=aalgo_hmacmd5_012
auth=hmacmd5(54414849 54455354 38394142 43444546)
--------------------------------------------
===ALGORITHM LISTS END======================
Frame_Ether (length:94)
| Hdr_Ether (length:14)
| | DestinationAddress = 0:0:0:0:a0:a0
| | SourceAddress = 0:e0:18:a8:ab:de
| | Type = 34525
| Packet_IPv6 (length:80)
| | Hdr_IPv6 (length:40)
| | | Version = 6
| | | TrafficClass = 0
| | | FlowLabel = 0
| | | PayloadLength = 40
| | | NextHeader = 51
| | | HopLimit = 64
| | | SourceAddress = 3ffe:501:ffff:ff03:200:ff:fe00:b0b0
| | | DestinationAddress = 3ffe:501:ffff:ff05:200:ff:fe00:c1c1
| | Hdr_AH (length:24)
| | | NextHeader = 58
| | | PayloadLength = 4
| | | Reserved = 0
| | | SPI = 4096
| | | SequenceNumber = 1
| | | algorithm = aalgo_hmacmd5_012
| | | ICV = 9ab169c4 1a03a2c1 d0fcd8af calc(9ab169c4 1a03a2c1 d0fcd8af)
| | ICMPv6_EchoReply (length:16)
| | | Type = 129
| | | Code = 0
| | | Checksum = 7077 calc(7077)
| | | Identifier = 0
| | | SequenceNumber = 0
| | | Payload (length:8)
| | | | data = 4563686f 44617461
===echo_reply_to_host1_ah=================================
applied algorithms={aalgo_hmacmd5_012}
Frame_Ether (length:86) | Hdr_Ether (length:14) | | DestinationAddress = 0:0:0:0:a0:a0 | | SourceAddress = 0:e0:18:a8:ab:de | | Type = 34525 | Packet_IPv6 (length:72) | | Hdr_IPv6 (length:40) | | | Version = 6 | | | TrafficClass = 0 | | | FlowLabel = 0 | | | PayloadLength = 32 | | | NextHeader = 58 | | | HopLimit = 255 | | | SourceAddress = fe80::2e0:18ff:fea8:abde | | | DestinationAddress = 3ffe:501:ffff:ff03:200:ff:fe00:a0a0 | | ICMPv6_NS (length:32) | | | Type = 135 | | | Code = 0 | | | Checksum = 8718 calc(8718) | | | Reserved = 0 | | | TargetAddress = 3ffe:501:ffff:ff03:200:ff:fe00:a0a0 | | | Opt_ICMPv6_SLL (length:8) | | | | Type = 1 | | | | Length = 1 | | | | LinkLayerAddress = 0:e0:18:a8:ab:de ===ns_to_router=================================
Frame_Ether (length:86) | Hdr_Ether (length:14) | | DestinationAddress = 0:e0:18:a8:ab:de | | SourceAddress = 0:0:0:0:a0:a0 | | Type = 34525 | Packet_IPv6 (length:72) | | Hdr_IPv6 (length:40) | | | Version = 6 | | | TrafficClass = 0 | | | FlowLabel = 0 | | | PayloadLength = 32 | | | NextHeader = 58 | | | HopLimit = 255 | | | SourceAddress = 3ffe:501:ffff:ff03:200:ff:fe00:a0a0 | | | DestinationAddress = 3ffe:501:ffff:ff03:200:ff:fe00:b0b0 | | ICMPv6_NA (length:32) | | | Type = 136 | | | Code = 0 | | | Checksum = 13319 calc(13319) | | | RFlag = 1 | | | SFlag = 1 | | | OFlag = 1 | | | Reserved = 0 | | | TargetAddress = 3ffe:501:ffff:ff03:200:ff:fe00:a0a0 | | | Opt_ICMPv6_TLL (length:8) | | | | Type = 2 | | | | Length = 1 | | | | LinkLayerAddress = 0:0:0:0:a0:a0
Frame_Ether (length:70) | Hdr_Ether (length:14) | | DestinationAddress = 0:e0:18:a8:ab:de | | SourceAddress = 0:0:0:0:a0:a0 | | Type = 34525 | Packet_IPv6 (length:56) | | Hdr_IPv6 (length:40) | | | Version = 6 | | | TrafficClass = 0 | | | FlowLabel = 0 | | | PayloadLength = 16 | | | NextHeader = 58 | | | HopLimit = 64 | | | SourceAddress = 3ffe:501:ffff:ff05:200:ff:fe00:c2c2 | | | DestinationAddress = 3ffe:501:ffff:ff03:200:ff:fe00:b0b0 | | ICMPv6_EchoRequest (length:16) | | | Type = 128 | | | Code = 0 | | | Checksum = 7076 calc(7076) | | | Identifier = 0 | | | SequenceNumber = 0 | | | Payload (length:8) | | | | data = 4563686f 44617461
===ALGORITHM LISTS BEGIN====================
--------------------------------------------
frame=echo_reply_to_host2_ah
AH=aalgo_hmacmd5_foo
auth=hmacmd5(666f6f30 666f6f31 666f6f32 666f6f33)
--------------------------------------------
===ALGORITHM LISTS END======================
Frame_Ether (length:94)
| Hdr_Ether (length:14)
| | DestinationAddress = 0:0:0:0:a0:a0
| | SourceAddress = 0:e0:18:a8:ab:de
| | Type = 34525
| Packet_IPv6 (length:80)
| | Hdr_IPv6 (length:40)
| | | Version = 6
| | | TrafficClass = 0
| | | FlowLabel = 0
| | | PayloadLength = 40
| | | NextHeader = 51
| | | HopLimit = 64
| | | SourceAddress = 3ffe:501:ffff:ff03:200:ff:fe00:b0b0
| | | DestinationAddress = 3ffe:501:ffff:ff05:200:ff:fe00:c2c2
| | Hdr_AH (length:24)
| | | NextHeader = 58
| | | PayloadLength = 4
| | | Reserved = 0
| | | SPI = 8192
| | | SequenceNumber = 1
| | | algorithm = aalgo_hmacmd5_foo
| | | ICV = 4ad9e028 28da9366 1e468a02 calc(4ad9e028 28da9366 1e468a02)
| | ICMPv6_EchoReply (length:16)
| | | Type = 129
| | | Code = 0
| | | Checksum = 6820 calc(6820)
| | | Identifier = 0
| | | SequenceNumber = 0
| | | Payload (length:8)
| | | | data = 4563686f 44617461
===echo_reply_to_host2_ah=================================
applied algorithms={aalgo_hmacmd5_foo}