Задача
Организовать прямой пиринг между двумя частными сетями, используя DIR-130 и ПО Linux (Openswan).
Структура сети
Код:
192.168.101.0/24 --- (10.0.0.101) - internet - (10.0.0.102) --- 192.168.102.0/24
10.0.0.101 - DIR-130
10.0.0.102 - Linux Openswan
IP-адреса 10.0.0.101 и 10.0.0.102 считать реальными.
Так совпало, что два офиса находятся в одной наносети и провайдер выдал IP-адреса из одной подсети (даже соседние).
Программное обеспечениеDIR-130 Firmware Version: 1.20
Openswan IPsec 2.4.12
Конфигурация Openswan/etc/ipsec.confКод:
config setup
# plutodebug / klipsdebug = "all", "none" or a combation from below:
# "raw crypt parsing emitting control klips pfkey natt x509 private"
# eg: plutodebug="control parsing"
#
# ONLY enable plutodebug=all or klipsdebug=all if you are a developer!
#
plutodebug=none
# NAT-TRAVERSAL support, see README.NAT-Traversal
nat_traversal=yes
virtual_private=%v4:192.168.0.0/16
# virtual_private=%v4:192.168.0.0/27
#
# enable this if you see "failed to find any available worker"
nhelpers=0
#interfaces=%defaultroute
#interfaces="ipsec0=eth1"
# Add connections here
conn opentest
left=10.0.0.101
keylife=28800s
rightnexthop=%defaultroute
leftnexthop=%defaultroute
leftsubnet=192.168.101.0/24
right=10.0.0.102
rightsubnet=192.168.102.0/24
type=tunnel
authby=secret
auth=esp
auto=start
# sample VPN connections, see /etc/ipsec.d/examples/
#Disable Opportunistic Encryption
include /etc/ipsec.d/examples/no_oe.conf
/etc/ipsec.secretsКод:
10.0.0.101 10.0.0.102: PSK "opentest"
Конфигурация DIR-130
Соединение не устанавливается.
/var/log/auth.log
Цитата:
Aug 31 14:04:57 server pluto[10712]: "opentest" #1: initiating Main Mode
Aug 31 14:04:57 server pluto[10712]: "opentest" #1: ERROR: asynchronous network error report on eth1 (sport=500) for message to 10.0.0.101 port 500, complainant 10.0.0.101: Connection refused [errno 111, origin ICMP type 3 code 3 (not authenticated)]
/var/log/syslogЦитата:
Aug 31 14:04:56 server ipsec_setup: NETKEY on eth1 10.0.0.102/255.255.255.0 broadcast 10.0.0.255
Aug 31 14:04:56 server ipsec_setup: ...Openswan IPsec started
Aug 31 14:04:56 server ipsec_setup: Starting Openswan IPsec 2.4.12...
Aug 31 14:04:57 server ipsec__plutorun: 104 "opentest" #1: STATE_MAIN_I1: initiate
Aug 31 14:04:57 server ipsec__plutorun: ...could not start conn "opentest"
Кто сталкивался с подобной проблемой? Есть ли рабочие конфигурации для связки DIR-130 - Openswan?