> hi,
> couldnt you give a bit more infos? configs - ips - the scenario...?
> I wonder if you trying to do some impossible, e.g. pjnging from
> ipsec-gateway to ipsec-gateway via a tunnel - thast wont work AFAIK.
Why ? It works for me (requires separate spdadd-s, not described in this
config).
This is my configuration (the part for net-to-net configuration only):
NET1:192.168.20.0/24
|
[192.168.20.1:ipsecgateway:192.168.10.2]
|
[192.168.10.1:ipsecgateway:192.168.1.1]
|
NET2:192.168.1.0/24
setkey:
=========================================================
flush;
spdflush;
spdadd 192.168.20.0/24 192.168.1.0/24 any -P out ipsec
esp/tunnel/192.168.10.2-192.168.10.1/require;
spdadd 192.168.1.0/24 192.168.20.0/24 any -P in ipsec
esp/tunnel/192.168.10.1-192.168.10.2/require;
spdadd 192.168.20.0/24 192.168.1.0/24 any -P fwd ipsec
esp/tunnel/192.168.10.2-192.168.10.1/require;
=========================================================
racoon:
=========================================================
path certificate "/var/ssl/certs";
listen {
isakmp 192.168.10.2;
Quote:}
remote 192.168.10.1 {
exchange_mode main;
certificate_type x509 "VPN2.cert" "VPN2.pem";
verify_cert on;
my_identifier asn1dn;
peers_identifier asn1dn;
proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method rsasig;
dh_group modp1024;
}
Quote:}
sainfo anonymous {
pfs_group modp768;
encryption_algorithm 3des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
Quote:}
=======================================================
Second side has opposite ip addresses.
All the settings regarding authorization are OK. But ping from any
machine in NET1 to NET2 or opposite doesn't start IPSec tunnel (ipsec
gateways, are default gateways for machines in those networks).
There is nothing in the logs, (even with -v -ddd).
Do I need some additional route settings in ipsec gateway ?
Jarek.