Всем еще раз здрасьте!
уже выбился из сил, ничего не получается.
Может кто подскажет что да как.
Вопрос именно в том как связать racoon и openswan используя PSK
конфиг racoonpath include "/etc/racoon";
path pre_shared_key "/etc/racoon/psk.txt";
path certificate "/etc/racoon/certs";
sainfo anonymous
{
pfs_group 2;
lifetime time 1 hour ;
encryption_algorithm 3des, blowfish 448, rijndael ;
authentication_algorithm hmac_sha1, hmac_md5 ;
compression_algorithm deflate ;
}
log debug2;
remote 192.168.43.8
{
exchange_mode aggressive, main;
my_identifier address;
proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method pre_shared_key;
dh_group 2;
}
}
Такой конфиг генерится CentOS5 при поднятии ipsec интерфейса. Его я менять не могу, т.к. он находится на удаленной машине которую администрирую не я.
вот начальный конфиг openswan
version 2.0 # conforms to second version of ipsec.conf specification
config setup
protostack=netkey
nat_traversal=yes
virtual_private=
oe=off
nhelpers=0
conn test
type=transport
authby=secret
left=192.168.43.8
right=192.168.43.4
auto=start
salifetime=3600s
auth=esp
# compress=yes
# ah=hmac-sha1-96
# aggrmode=yes
# ike=3des-sha1
# keyexchange=ike
# phase2=esp
# phase2alg=3des-sha1
# esp=3des-sha1
все что закомменчено было испробовано.
В данный момент пробую на тестовых машинах связать, тоже не получается.
У кого есть опыт скажите куда копать
лог racoon
2011-11-10 16:08:32: DEBUG: peer's single bundle:
2011-11-10 16:08:32: DEBUG: (proto_id=ESP spisize=4 spi=6c72214a spi_p=00000000 encmode=Transport reqid=0:0)
2011-11-10 16:08:32: DEBUG: (trns_id=3DES encklen=0 authtype=hmac-sha)
2011-11-10 16:08:32: DEBUG: my single bundle:
2011-11-10 16:08:32: DEBUG: (proto_id=AH spisize=4 spi=00000000 spi_p=00000000 encmode=Transport reqid=0:0)
2011-11-10 16:08:32: DEBUG: (trns_id=SHA authtype=hmac-sha)
2011-11-10 16:08:32: DEBUG: (trns_id=MD5 authtype=hmac-md5)
2011-11-10 16:08:32: DEBUG: (proto_id=ESP spisize=4 spi=00000000 spi_p=00000000 encmode=Transport reqid=0:0)
2011-11-10 16:08:32: DEBUG: (trns_id=3DES encklen=0 authtype=hmac-sha)
2011-11-10 16:08:32: DEBUG: (trns_id=3DES encklen=0 authtype=hmac-md5)
2011-11-10 16:08:32: DEBUG: (trns_id=BLOWFISH encklen=448 authtype=hmac-sha)
2011-11-10 16:08:32: DEBUG: (trns_id=BLOWFISH encklen=448 authtype=hmac-md5)
2011-11-10 16:08:32: DEBUG: (trns_id=AES encklen=128 authtype=hmac-sha)
2011-11-10 16:08:32: DEBUG: (trns_id=AES encklen=128 authtype=hmac-md5)
2011-11-10 16:08:32: ERROR: not matched
2011-11-10 16:08:32: ERROR: no suitable policy found.
2011-11-10 16:08:32: ERROR: failed to pre-process packet.
2011-11-10 16:08:32: DEBUG: compute IV for phase2
2011-11-10 16:08:32: DEBUG: phase1 last IV:
Лог openswan
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: initiating Main Mode
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: received Vendor ID payload [Dead Peer Detection]
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: transition from state STATE_MAIN_I1 to state STATE_MAIN_I2
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: STATE_MAIN_I2: sent MI2, expecting MR2
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: transition from state STATE_MAIN_I2 to state STATE_MAIN_I3
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: STATE_MAIN_I3: sent MI3, expecting MR3
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: Main mode peer ID is ID_IPV4_ADDR: '192.168.43.4'
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: transition from state STATE_MAIN_I3 to state STATE_MAIN_I4
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: STATE_MAIN_I4: ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=oakley_3des_cbc_192 prf=oakley_sha group=modp1024}
Nov 10 16:18:18 z08 pluto[13994]: "test" #2: initiating Quick Mode PSK+ENCRYPT+PFS+UP+IKEv2ALLOW {using isakmp#1 msgid:83ade26e proposal=defaults pfsgroup=OAKLEY_GROUP_MODP1024}
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: ignoring informational payload, type NO_PROPOSAL_CHOSEN msgid=00000000
Nov 10 16:18:18 z08 pluto[13994]: "test" #1: received and ignored informational message
Nov 10 16:18:21 z08 pluto[13994]: initiate on demand from 192.168.43.8:51990 to 192.168.43.4:1025 proto=17 state: fos_start because: acquire
Nov 10 16:18:21 z08 pluto[13994]: "test" #3: initiating Quick Mode PSK+ENCRYPT+PFS+UP+IKEv2ALLOW {using isakmp#1 msgid:4a81340c proposal=defaults pfsgroup=OAKLEY_GROUP_MODP1024}
Nov 10 16:18:21 z08 pluto[13994]: "test" #1: ignoring informational payload, type NO_PROPOSAL_CHOSEN msgid=00000000
Nov 10 16:18:21 z08 pluto[13994]: "test" #1: received and ignored informational message
Nov 10 16:18:28 z08 pluto[13994]: "test" #1: ignoring informational payload, type NO_PROPOSAL_CHOSEN msgid=00000000
Nov 10 16:18:28 z08 pluto[13994]: "test" #1: received and ignored informational message
Nov 10 16:18:31 z08 pluto[13994]: "test" #1: ignoring informational payload, type NO_PROPOSAL_CHOSEN msgid=00000000
Nov 10 16:18:31 z08 pluto[13994]: "test" #1: received and ignored informational message
Всем заранее спасибо!!!