Настраивал IPSec между 808HV и FreeBSD 6.2 по документации
http://www.dlink.ru/technical/faq_vpn_11.php
Имеем следующую конфигурацию:
FreeBSD:
Код:
Внутр. сеть 10.20.27.0/24
Внутр. интерфейс 10.20.27.254
Внешний интерфейс 1.1.1.1
/etc/ipsec.conf
Код:
spdadd 192.168.0.0/24 10.20.27.0/24 any -P in ipsec esp/tunnel/1.1.1.1-2.2.2.2/require;
spdadd 10.20.27.0/24 192.168.0.0/24 any -P out ipsec esp/tunnel/2.2.2.2-1.1.1.1/require;
/etc/racoon.conf
Код:
path include "/usr/local/etc/racoon" ;
path pre_shared_key "/usr/local/etc/racoon/psk.txt" ;
path certificate "/usr/local/etc/cert" ;
padding
{
maximum_length 20;
randomize off;
strict_check off;
exclusive_tail off;
}
listen
{
isakmp 1.1.1.1 [500];
}
timer
{
counter 5;
interval 20 sec;
persend 1;
phase1 30 sec;
phase2 15 sec;
}
remote anonymous
{
exchange_mode main,aggressive;
doi ipsec_doi;
situation identity_only;
my_identifier address;
peers_identifier address;
nonce_size 16;
lifetime time 3600 sec;
initial_contact on;
support_proxy on;
proposal_check obey;
proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method pre_shared_key ;
dh_group 1 ;
}
}
sainfo anonymous
{
pfs_group 1;
lifetime time 3600 sec;
encryption_algorithm 3des ;
authentication_algorithm hmac_md5;
compression_algorithm deflate ;
}
Маршрут:
Код:
# route get 192.168.0.101
route to: 192.168.0.101
destination: default
mask: default
gateway: <шлюз провайдера>
D-Link:
Код:
Внутр. сеть 192.168.0.0/24
Внутр. интерфейс 192.168.0.101
Внешний интерфейс 2.2.2.2
VPN:
Код:
Local Subnet 192.168.0.0
Local Netmask 255.255.255.0
Remote Subnet 10.20.27.0
Remote Netmask 255.255.255.0
Remote Gateway 1.1.1.1
IKE Keep Alive 10.20.27.254
IKE: Group1-3DES-SHA1-3600sec
IPSEC: Group1-ESP-3DES-MD5-3600sec
Маршруты:
Только дефаулт на провайдера
Тунель устанавливается. В "VPN status" видно:
Type: ESP tunnel
State: IKE established
На бсд делаю ping -S 10.20.27.254 192.168.0.101 - пинг не проходит. Что я делаю не так?