Re: Redundant Firewalls, CARP + IPSEC + SASYNCD

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: askthelist
Date: Thursday, May 10, 2007 - 6:19 pm

Ok after trying this again, I have no problem establishing the VPN
connection and it stays up for hours. However after an undetermined amount
of time(hours), connections are dropped and the SA's do not show up when
looking at the ipsecctl -sa or netstat -nrf encap. Same situation happens
whether or not sasyncd is running. I've tried both the isakmpd.conf &
ipsec.conf configurations with the same result. Here are the relevant
configs.

# A-isakmpd.conf
[General]
Listen-On=                 x.x.x.142

[Phase 1]
y.y.y.218=           peer-machineB

[Phase 2]
Connections=            VPN-A-B

[peer-machineB]
Phase=                  1
Address=                y.y.y.218
Configuration=          Default-main-mode
Authentication=            notmypassphrase

[VPN-A-B]
Phase=                  2
ISAKMP-peer=            peer-machineB
Configuration=          Default-quick-mode
Local-ID=               machineA-internal-network
Remote-ID=              machineB-internal-network

[machineA-internal-network]
ID-type=                IPV4_ADDR_SUBNET
Network=                a.a.a.0
Netmask=                255.255.255.0

[machineB-internal-network]
ID-type=                IPV4_ADDR_SUBNET
Network=                b.b.b.0
Netmask=                255.255.248.0

[Default-main-mode]
EXCHANGE_TYPE=          ID_PROT
Transforms=             3DES-SHA,BLF-SHA

[Default-quick-mode]
EXCHANGE_TYPE=          QUICK_MODE
Suites=                 QM-ESP-3DES-SHA-SUITE

#B-isakmpd.conf

[General]
Listen-On=              y.y.y.y.218

[Phase 1]
x.x.x.142=           peer-machineB

[Phase 2]
Connections=            VPN-A-B

[peer-machineB]
Phase=                  1
Address=                  x.x.x.142
Configuration=          Default-main-mode
Authentication=       notmypassphrase

[VPN-A-B]
Phase=                  2
ISAKMP-peer=            peer-machineB
Configuration=          Default-quick-mode
Local-ID=               machineA-internal-network
Remote-ID=              machineB-internal-network

[machineA-internal-network]
ID-type=                IPV4_ADDR_SUBNET
Network=                b.b.b.0
Netmask=                255.255.248.0

[machineB-internal-network]
ID-type=                IPV4_ADDR_SUBNET
Network=                a.a.a.0
Netmask=                255.255.255.0

[Default-main-mode]
EXCHANGE_TYPE=          ID_PROT
Transforms=             3DES-SHA,BLF-SHA

[Default-quick-mode]
EXCHANGE_TYPE=          QUICK_MODE
Suites=                 QM-ESP-3DES-SHA-SUITE

#Common isakmpd.policy file

Keynote-version: 2
Authorizer: "POLICY"
Conditions: app_domain == "IPsec policy" &&
    esp_present == "yes" &&
    esp_enc_alg != "null" -> "true";

#a-ipsec.conf
ike esp from b.b.b.0/21 to a.a.a.0/24 peer x.x.x.142
ike esp from y.y.y.218 to a.a.a.0/24 peer x.x.x.142
ike esp from y.y.y.218 to x.x.x.142

#b-ipsec.conf
ike esp from a.a.a.0/24 to b.b.b.0/21 peer y.y.y.218
ike esp from x.x.x.142 to b.b.b.0/21 peer y.y.y.218
ike esp from x.x.x.142 to y.y.y.218

#a-1-sasyncd.conf
interface carp0
sharedkey /etc/sasyncd.key
peer 10.0.0.1

#a-2-sasyncd.conf
interface carp0
sharedkey /etc/sasyncd.key
peer 10.0.0.2









On 5/7/07, askthelist@gmail.com <askthelist@gmail.com> wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Redundant Firewalls, CARP + IPSEC + SASYNCD, askthelist, (Thu May 10, 6:19 pm)