Hi, I have 2 pcs (Slackware 10.1 2.6.12) with ipsec-tools conected with a cross cable:
 
192.168.0.10 ------- 192.168.0.8
 
And I've tried to make a tunnel between them, without an optimal result.
 
my configuration is:
 
(in 192.168.0.10)
 
psk.txt:
192.168.0.8       11111111111111111111
192.168.0.10     22222222222222222222
 
 
ipsec.conf:
 
#!/usr/sbin/setkey -f
 
flush;
spdflush;
 
spdadd 192.168.0.10/32 192.168.0.8/32 any -P out ipsec
            esp/tunnel/192.168.0.10-192.168.0.8/require;
 
spdadd 192.168.0.8/32 192.168.0.10/32 any -P in ipsec
            esp/tunnel/192.168.0.8-192.168.0.10/require;
 
racoon.conf:
 
path pre_shared_key "/etc/racoon/psk.txt";
 
listen {
   isakmp 192.168.0.10;
}
 
remote 192.168.0.8 {
     exchange_mode main;
    proposal {
                 encryption_algorithm 3des;
                hash_algorithm md5;
                authentication_method pre_shared_key;
               dh_group 2;
    }
}
 
sainfo anonymous {
    pfs_group 2;
    encryption_algorithm 3des;
    autehntication_algorithm hmac_md5;
    compression_algorithm deflate;
}
 
The other computer the same, with IP addresses exchanged.
 
And when I try to make it work, it says:
 
ERROR: phase1 negotiation failed due to time up.
 
Any ideas???????????
 
Thanks.
 
Xavi.