PRE-TEST moon# echo 1 > /proc/sys/net/ipv4/ip_forward moon# cat /etc/openac/default.conf --cert /etc/ipsec.d/aacerts/aaCert.pem --key /etc/openac/aaKey.pem --hours 8 --quiet moon# ipsec openac --optionsfrom default.conf --usercert /etc/openac/carolCert.pem --groups Research --out /etc/ipsec.d/acerts/carolAC.pem 2> /dev/null moon# ipsec openac --optionsfrom default.conf --usercert /etc/openac/daveCert.pem --groups Accounting --out /etc/ipsec.d/acerts/daveAC.pem 2> /dev/null carol# ipsec start Starting strongSwan 4.3.6 IPsec [starter]... dave# ipsec start Starting strongSwan 4.3.6 IPsec [starter]... moon# ipsec start Starting strongSwan 4.3.6 IPsec [starter]... carol# sleep 2 carol# ipsec up alice 002 "alice" #1: initiating Main Mode 104 "alice" #1: STATE_MAIN_I1: initiate 003 "alice" #1: ignoring Vendor ID payload [strongSwan] 003 "alice" #1: received Vendor ID payload [XAUTH] 003 "alice" #1: received Vendor ID payload [Dead Peer Detection] 106 "alice" #1: STATE_MAIN_I2: sent MI2, expecting MR2 002 "alice" #1: we have a cert and are sending it upon request 108 "alice" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "alice" #1: Peer ID is ID_FQDN: 'moon.strongswan.org' 002 "alice" #1: crl not found 002 "alice" #1: certificate status unknown 002 "alice" #1: ISAKMP SA established 004 "alice" #1: STATE_MAIN_I4: ISAKMP SA established 002 "alice" #2: initiating Quick Mode PUBKEY+ENCRYPT+TUNNEL+PFS+UP {using isakmp#1} 112 "alice" #2: STATE_QUICK_I1: initiate 002 "alice" #2: sent QI2, IPsec SA established {ESP=>0xeb707ca0 <0x2f0a9d94} 004 "alice" #2: STATE_QUICK_I2: sent QI2, IPsec SA established {ESP=>0xeb707ca0 <0x2f0a9d94} carol# ipsec up venus 002 "venus" #3: initiating Quick Mode PUBKEY+ENCRYPT+TUNNEL+PFS+UP {using isakmp#1} 112 "venus" #3: STATE_QUICK_I1: initiate 010 "venus" #3: STATE_QUICK_I1: retransmission; will wait 20s for response 010 "venus" #3: STATE_QUICK_I1: retransmission; will wait 40s for response 031 "venus" #3: max number of retransmissions (2) reached STATE_QUICK_I1. No acceptable response to our first Quick Mode message: perhaps peer likes no proposal dave# ipsec up venus 002 "venus" #1: initiating Main Mode 104 "venus" #1: STATE_MAIN_I1: initiate 003 "venus" #1: ignoring Vendor ID payload [strongSwan] 003 "venus" #1: received Vendor ID payload [XAUTH] 003 "venus" #1: received Vendor ID payload [Dead Peer Detection] 106 "venus" #1: STATE_MAIN_I2: sent MI2, expecting MR2 002 "venus" #1: we have a cert and are sending it upon request 108 "venus" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "venus" #1: Peer ID is ID_FQDN: 'moon.strongswan.org' 002 "venus" #1: crl not found 002 "venus" #1: certificate status unknown 002 "venus" #1: ISAKMP SA established 004 "venus" #1: STATE_MAIN_I4: ISAKMP SA established 002 "venus" #2: initiating Quick Mode PUBKEY+ENCRYPT+TUNNEL+PFS+UP {using isakmp#1} 112 "venus" #2: STATE_QUICK_I1: initiate 002 "venus" #2: sent QI2, IPsec SA established {ESP=>0xae469a67 <0x2c2dac66} 004 "venus" #2: STATE_QUICK_I2: sent QI2, IPsec SA established {ESP=>0xae469a67 <0x2c2dac66} dave# ipsec up alice 002 "alice" #3: initiating Quick Mode PUBKEY+ENCRYPT+TUNNEL+PFS+UP {using isakmp#1} 112 "alice" #3: STATE_QUICK_I1: initiate 010 "alice" #3: STATE_QUICK_I1: retransmission; will wait 20s for response 010 "alice" #3: STATE_QUICK_I1: retransmission; will wait 40s for response 031 "alice" #3: max number of retransmissions (2) reached STATE_QUICK_I1. No acceptable response to our first Quick Mode message: perhaps peer likes no proposal TEST carol# ipsec status | grep 'alice.*STATE_QUICK_I2.*IPsec SA established' [YES] 000 #2: "alice" STATE_QUICK_I2 (sent QI2, IPsec SA established); EVENT_SA_REPLACE in 795s; newest IPSEC; eroute owner moon# cat /var/log/auth.log | grep 'alice.*peer with attributes .*Research.* is a member of the groups .*Research' [YES] Feb 27 22:40:14 moon pluto[8246]: alice: peer with attributes 'Research' is a member of the groups 'Research' Feb 27 22:40:18 moon pluto[8246]: alice: peer with attributes 'Research' is a member of the groups 'Research' Feb 27 22:40:18 moon pluto[8246]: alice: peer with attributes 'Research' is a member of the groups 'Research' Feb 27 22:40:18 moon pluto[8246]: alice: peer with attributes 'Research' is a member of the groups 'Research' moon# ipsec status | grep 'alice.*192.168.0.100.*STATE_QUICK_R2.*IPsec SA established' [YES] 000 #2: "alice"[1] 192.168.0.100 STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 957s; newest IPSEC; eroute owner carol# ipsec status | grep 'venus.*STATE_QUICK_I2.*IPsec SA established' [NO] moon# cat /var/log/auth.log | grep 'venus.*peer with attributes .*Research.* is not a member of the groups .*Accounting' [YES] Feb 27 22:40:14 moon pluto[8246]: venus: peer with attributes 'Research' is not a member of the groups 'Accounting, Sales' Feb 27 22:40:14 moon pluto[8246]: venus: peer with attributes 'Research' is not a member of the groups 'Accounting, Sales' Feb 27 22:40:17 moon pluto[8246]: venus: peer with attributes 'Research' is not a member of the groups 'Accounting, Sales' Feb 27 22:40:18 moon pluto[8246]: venus: peer with attributes 'Research' is not a member of the groups 'Accounting, Sales' Feb 27 22:40:18 moon pluto[8246]: venus: peer with attributes 'Research' is not a member of the groups 'Accounting, Sales' Feb 27 22:40:18 moon pluto[8246]: venus: peer with attributes 'Research' is not a member of the groups 'Accounting, Sales' moon# ipsec status | grep 'venus.*192.168.0.100.*STATE_QUICK_R2.*IPsec SA established' [NO] dave# ipsec status | grep 'venus.*STATE_QUICK_I2.*IPsec SA established' [YES] 000 #2: "venus" STATE_QUICK_I2 (sent QI2, IPsec SA established); EVENT_SA_REPLACE in 878s; newest IPSEC; eroute owner moon# cat /var/log/auth.log | grep 'venus.*peer with attributes .*Accounting.* is a member of the groups .*Accounting' [YES] Feb 27 22:41:38 moon pluto[8246]: venus: peer with attributes 'Accounting' is a member of the groups 'Accounting, Sales' Feb 27 22:41:38 moon pluto[8246]: venus: peer with attributes 'Accounting' is a member of the groups 'Accounting, Sales' Feb 27 22:41:42 moon pluto[8246]: venus: peer with attributes 'Accounting' is a member of the groups 'Accounting, Sales' Feb 27 22:41:42 moon pluto[8246]: venus: peer with attributes 'Accounting' is a member of the groups 'Accounting, Sales' Feb 27 22:41:42 moon pluto[8246]: venus: peer with attributes 'Accounting' is a member of the groups 'Accounting, Sales' moon# ipsec status | grep 'venus.*192.168.0.200.*STATE_QUICK_R2.*IPsec SA established' [YES] 000 #4: "venus"[4] 192.168.0.200 STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 1039s; newest IPSEC; eroute owner dave# ipsec status | grep 'alice.*STATE_QUICK_I2.*IPsec SA established' [NO] moon# cat /var/log/auth.log | grep 'alice.*peer with attributes .*Accounting.* is not a member of the groups .*Research' [YES] Feb 27 22:41:42 moon pluto[8246]: alice: peer with attributes 'Accounting' is not a member of the groups 'Research' Feb 27 22:41:42 moon pluto[8246]: alice: peer with attributes 'Accounting' is not a member of the groups 'Research' moon# ipsec status | grep 'alice.*192.168.0.200.*STATE_QUICK_R2.*IPsec SA established' [NO] POST-TEST moon# ipsec stop Stopping strongSwan IPsec... carol# ipsec stop Stopping strongSwan IPsec... dave# ipsec stop Stopping strongSwan IPsec... moon# rm /etc/openac/* moon# rm /etc/ipsec.d/aacerts/aaCert.pem moon# rm /etc/ipsec.d/acerts/*