added
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
This scenario is based on <a href="../ocsp-signer-cert">ikev2/ocsp-signer-cert</a>
|
||||||
|
and tests the timeouts of the <b>libcurl</b> library used for http-based OCSP fetching
|
||||||
|
by adding an ocspuri1 in <b>moon</b>'s strongswan ca section on which no OCSP
|
||||||
|
server is listening and an ocspuri2 that cannot be resolved by <b>DNS</b>.
|
||||||
|
Since the certificate status is <b>unknown</b> the connection setup is aborted by
|
||||||
|
<b>moon</b> with an <b>AUTHORIZATION_FAILED</b> notification sent to <b>carol</b>.
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
moon::cat /var/log/daemon.log::http post request to.*using libcurl failed::YES
|
||||||
|
moon::cat /var/log/daemon.log::certificate status unknown::YES
|
||||||
|
carol::cat /var/log/daemon.log::received AUTHENTICATION_FAILED::YES
|
||||||
|
moon::ipsec status::rw.*ESTABLISHED::NO
|
||||||
|
carol::ipsec status::home.*ESTABLISHED::NO
|
||||||
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||||
|
|
||||||
|
config setup
|
||||||
|
crlcheckinterval=180
|
||||||
|
strictcrlpolicy=yes
|
||||||
|
plutostart=no
|
||||||
|
|
||||||
|
ca strongswan-ca
|
||||||
|
cacert=strongswanCert.pem
|
||||||
|
ocspuri1=http://bob.strongswan.org:8800
|
||||||
|
ocspuri2=http://ocsp2.strongswan.org:8880
|
||||||
|
auto=add
|
||||||
|
|
||||||
|
conn %default
|
||||||
|
keyexchange=ikev2
|
||||||
|
ikelifetime=60m
|
||||||
|
keylife=20m
|
||||||
|
rekeymargin=3m
|
||||||
|
keyingtries=1
|
||||||
|
left=PH_IP_CAROL
|
||||||
|
leftnexthop=%direct
|
||||||
|
leftcert=carolCert.pem
|
||||||
|
[email protected]
|
||||||
|
|
||||||
|
conn home
|
||||||
|
right=PH_IP_MOON
|
||||||
|
rightsubnet=10.1.0.0/16
|
||||||
|
[email protected]
|
||||||
|
auto=add
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||||
|
|
||||||
|
config setup
|
||||||
|
crlcheckinterval=180
|
||||||
|
strictcrlpolicy=yes
|
||||||
|
plutostart=no
|
||||||
|
|
||||||
|
ca strongswan-ca
|
||||||
|
cacert=strongswanCert.pem
|
||||||
|
ocspuri1=http://bob.strongswan.org:8800
|
||||||
|
ocspuri2=http://ocsp2.strongswan.org:8880
|
||||||
|
auto=add
|
||||||
|
|
||||||
|
conn %default
|
||||||
|
keyexchange=ikev2
|
||||||
|
ikelifetime=60m
|
||||||
|
keylife=20m
|
||||||
|
rekeymargin=3m
|
||||||
|
keyingtries=1
|
||||||
|
|
||||||
|
conn rw
|
||||||
|
left=PH_IP_MOON
|
||||||
|
leftnexthop=%direct
|
||||||
|
leftcert=moonCert.pem
|
||||||
|
[email protected]
|
||||||
|
leftsubnet=10.1.0.0/16
|
||||||
|
right=%any
|
||||||
|
auto=add
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
moon::ipsec stop
|
||||||
|
carol::ipsec stop
|
||||||
|
carol::rm /etc/ipsec.d/certs/*
|
||||||
|
carol::rm /etc/ipsec.d/private/*
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
moon::ipsec start
|
||||||
|
carol::ipsec start
|
||||||
|
carol::sleep 2
|
||||||
|
carol::ipsec up home
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# This configuration file provides information on the
|
||||||
|
# UML instances used for this test
|
||||||
|
|
||||||
|
# All UML instances that are required for this test
|
||||||
|
#
|
||||||
|
UMLHOSTS="moon carol winnetou"
|
||||||
|
|
||||||
|
# Corresponding block diagram
|
||||||
|
#
|
||||||
|
DIAGRAM="m-c-w.png"
|
||||||
|
|
||||||
|
# UML instances on which tcpdump is to be started
|
||||||
|
#
|
||||||
|
TCPDUMPHOSTS=""
|
||||||
|
|
||||||
|
# UML instances on which IPsec is started
|
||||||
|
# Used for IPsec logging purposes
|
||||||
|
#
|
||||||
|
IPSECHOSTS="moon carol"
|
||||||
Reference in New Issue
Block a user