1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
|
/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
west #
# confirm that the network is alive
west #
../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
# ensure that clear text does not get through
west #
iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
west #
iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
west #
# confirm clear text does not get through
west #
../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
down
west #
ipsec start
Redirecting to: [initsystem]
west #
../../guestbin/wait-until-pluto-started
west #
ipsec auto --add westnet-eastnet-subnets
"westnet-eastnet-subnets/1x1": added IKEv1 connection
"westnet-eastnet-subnets/1x2": added IKEv1 connection
"westnet-eastnet-subnets/2x1": added IKEv1 connection
"westnet-eastnet-subnets/2x2": added IKEv1 connection
west #
ipsec status | grep westnet-eastnet
"westnet-eastnet-subnets/1x1": 192.0.1.0/28===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.16/28; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-subnets/1x1": host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-subnets/1x1": my_updown=ipsec _updown;
"westnet-eastnet-subnets/1x1": xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"westnet-eastnet-subnets/1x1": our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"westnet-eastnet-subnets/1x1": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-subnets/1x1": sec_label:unset;
"westnet-eastnet-subnets/1x1": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-subnets/1x1": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"westnet-eastnet-subnets/1x1": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-subnets/1x1": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-subnets/1x1": policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"westnet-eastnet-subnets/1x1": conn_prio: 28,28,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-subnets/1x1": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-subnets/1x1": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-subnets/1x1": dpd: passive; delay:0s; timeout:0s
"westnet-eastnet-subnets/1x1": nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"westnet-eastnet-subnets/1x1": routing: unrouted;
"westnet-eastnet-subnets/1x1": conn serial: $1;
"westnet-eastnet-subnets/1x1": aliases: westnet-eastnet-subnets
"westnet-eastnet-subnets/1x2": 192.0.1.0/28===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.64/30; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-subnets/1x2": host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-subnets/1x2": my_updown=ipsec _updown;
"westnet-eastnet-subnets/1x2": xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"westnet-eastnet-subnets/1x2": our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"westnet-eastnet-subnets/1x2": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-subnets/1x2": sec_label:unset;
"westnet-eastnet-subnets/1x2": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-subnets/1x2": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"westnet-eastnet-subnets/1x2": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-subnets/1x2": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-subnets/1x2": policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"westnet-eastnet-subnets/1x2": conn_prio: 28,30,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-subnets/1x2": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-subnets/1x2": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-subnets/1x2": dpd: passive; delay:0s; timeout:0s
"westnet-eastnet-subnets/1x2": nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"westnet-eastnet-subnets/1x2": routing: unrouted;
"westnet-eastnet-subnets/1x2": conn serial: $2;
"westnet-eastnet-subnets/1x2": aliases: westnet-eastnet-subnets
"westnet-eastnet-subnets/2x1": 192.0.1.128/28===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.16/28; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-subnets/2x1": host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-subnets/2x1": my_updown=ipsec _updown;
"westnet-eastnet-subnets/2x1": xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"westnet-eastnet-subnets/2x1": our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"westnet-eastnet-subnets/2x1": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-subnets/2x1": sec_label:unset;
"westnet-eastnet-subnets/2x1": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-subnets/2x1": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"westnet-eastnet-subnets/2x1": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-subnets/2x1": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-subnets/2x1": policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"westnet-eastnet-subnets/2x1": conn_prio: 28,28,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-subnets/2x1": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-subnets/2x1": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-subnets/2x1": dpd: passive; delay:0s; timeout:0s
"westnet-eastnet-subnets/2x1": nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"westnet-eastnet-subnets/2x1": routing: unrouted;
"westnet-eastnet-subnets/2x1": conn serial: $3;
"westnet-eastnet-subnets/2x1": aliases: westnet-eastnet-subnets
"westnet-eastnet-subnets/2x2": 192.0.1.128/28===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.64/30; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-subnets/2x2": host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-subnets/2x2": my_updown=ipsec _updown;
"westnet-eastnet-subnets/2x2": xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"westnet-eastnet-subnets/2x2": our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"westnet-eastnet-subnets/2x2": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-subnets/2x2": sec_label:unset;
"westnet-eastnet-subnets/2x2": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-subnets/2x2": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"westnet-eastnet-subnets/2x2": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-subnets/2x2": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-subnets/2x2": policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"westnet-eastnet-subnets/2x2": conn_prio: 28,30,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-subnets/2x2": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-subnets/2x2": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-subnets/2x2": dpd: passive; delay:0s; timeout:0s
"westnet-eastnet-subnets/2x2": nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"westnet-eastnet-subnets/2x2": routing: unrouted;
"westnet-eastnet-subnets/2x2": conn serial: $4;
"westnet-eastnet-subnets/2x2": aliases: westnet-eastnet-subnets
west #
echo "initdone"
initdone
west #
ipsec whack --impair suppress_retransmits
west #
ipsec whack --impair helper_thread_delay:0 # do the timewarp
west #
ipsec auto --up westnet-eastnet-subnets
initiating all connections with alias "westnet-eastnet-subnets"
"westnet-eastnet-subnets/1x1" #1: initiating IKEv1 Main Mode connection
"westnet-eastnet-subnets/1x1" #1: sent Main Mode request
"westnet-eastnet-subnets/1x2": queue IPsec SA; waiting on ISAKMP SA "westnet-eastnet-subnets/1x1" #1 negotiating with 192.1.2.23
"westnet-eastnet-subnets/2x1": queue IPsec SA; waiting on ISAKMP SA "westnet-eastnet-subnets/1x1" #1 negotiating with 192.1.2.23
"westnet-eastnet-subnets/2x2": queue IPsec SA; waiting on ISAKMP SA "westnet-eastnet-subnets/1x1" #1 negotiating with 192.1.2.23
initiating 4 connections
"westnet-eastnet-subnets/1x1" #1: IMPAIR: job 1 helper 0 #1/#1 main_inR1_outI2 (dh): helper is warped by 1 milliseconds
"westnet-eastnet-subnets/1x1" #1: sent Main Mode I2
"westnet-eastnet-subnets/1x1" #1: IMPAIR: job 2 helper 0 #1/#1 main_inR2_outI3 (dh): helper is warped by 2 milliseconds
"westnet-eastnet-subnets/1x1" #1: sent Main Mode I3
"westnet-eastnet-subnets/1x1" #1: Peer ID is ID_FQDN: '@east'
"westnet-eastnet-subnets/1x1" #1: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"westnet-eastnet-subnets/1x1" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"westnet-eastnet-subnets/1x1" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"westnet-eastnet-subnets/1x1" #2: IMPAIR: job 3 helper 0 #2/#2 quick_outI1 (dh): helper is warped by 3 milliseconds
"westnet-eastnet-subnets/1x2" #3: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"westnet-eastnet-subnets/1x2" #3: IMPAIR: job 4 helper 0 #3/#3 quick_outI1 (dh): helper is warped by 4 milliseconds
"westnet-eastnet-subnets/2x1" #4: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"westnet-eastnet-subnets/2x1" #4: IMPAIR: job 5 helper 0 #4/#4 quick_outI1 (dh): helper is warped by 5 milliseconds
"westnet-eastnet-subnets/2x2" #5: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"westnet-eastnet-subnets/2x2" #5: IMPAIR: job 6 helper 0 #5/#5 quick_outI1 (dh): helper is warped by 6 milliseconds
"westnet-eastnet-subnets/1x1" #2: sent Quick Mode request
"westnet-eastnet-subnets/1x2" #3: sent Quick Mode request
"westnet-eastnet-subnets/2x2" #5: sent Quick Mode request
"westnet-eastnet-subnets/2x1" #4: sent Quick Mode request
"westnet-eastnet-subnets/1x1" #2: IMPAIR: job 7 helper 0 #2/#2 quick_inR1_outI2 (dh): helper is warped by 7 milliseconds
"westnet-eastnet-subnets/1x2" #3: IMPAIR: job 8 helper 0 #3/#3 quick_inR1_outI2 (dh): helper is warped by 8 milliseconds
"westnet-eastnet-subnets/2x2" #5: IMPAIR: job 9 helper 0 #5/#5 quick_inR1_outI2 (dh): helper is warped by 9 milliseconds
"westnet-eastnet-subnets/1x1" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
"westnet-eastnet-subnets/2x1" #4: IMPAIR: job 10 helper 0 #4/#4 quick_inR1_outI2 (dh): helper is warped by 10 milliseconds
"westnet-eastnet-subnets/1x2" #3: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
"westnet-eastnet-subnets/2x2" #5: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
"westnet-eastnet-subnets/2x1" #4: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
ipsec whack --trafficstatus
#2: "westnet-eastnet-subnets/1x1", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
#3: "westnet-eastnet-subnets/1x2", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
#4: "westnet-eastnet-subnets/2x1", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
#5: "westnet-eastnet-subnets/2x2", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
west #
# test return code for --down when using aliases
west #
ipsec auto --down westnet-eastnet-subnets || echo "return code failed - should be 0"
terminating all connections with alias "westnet-eastnet-subnets"
"westnet-eastnet-subnets/2x2": initiating delete of connection's IPsec SA #5
"westnet-eastnet-subnets/2x2" #5: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA "westnet-eastnet-subnets/1x1" #1
"westnet-eastnet-subnets/2x2" #5: ESP traffic information: in=0B out=0B
"westnet-eastnet-subnets/2x1": initiating delete of connection's IPsec SA #4
"westnet-eastnet-subnets/2x1" #4: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA "westnet-eastnet-subnets/1x1" #1
"westnet-eastnet-subnets/2x1" #4: ESP traffic information: in=0B out=0B
"westnet-eastnet-subnets/1x2": initiating delete of connection's IPsec SA #3
"westnet-eastnet-subnets/1x2" #3: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA "westnet-eastnet-subnets/1x1" #1
"westnet-eastnet-subnets/1x2" #3: ESP traffic information: in=0B out=0B
"westnet-eastnet-subnets/1x1": initiating delete of connection's IPsec SA #2 and ISAKMP SA #1
"westnet-eastnet-subnets/1x1" #2: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #1
"westnet-eastnet-subnets/1x1" #2: ESP traffic information: in=0B out=0B
"westnet-eastnet-subnets/1x1" #1: deleting ISAKMP SA (MAIN_I4) and sending notification
terminated 4 connections
west #
ipsec status | grep westnet
"westnet-eastnet-subnets/1x1": 192.0.1.0/28===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.16/28; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-subnets/1x1": host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-subnets/1x1": my_updown=ipsec _updown;
"westnet-eastnet-subnets/1x1": xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"westnet-eastnet-subnets/1x1": our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"westnet-eastnet-subnets/1x1": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-subnets/1x1": sec_label:unset;
"westnet-eastnet-subnets/1x1": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-subnets/1x1": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"westnet-eastnet-subnets/1x1": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-subnets/1x1": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-subnets/1x1": policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"westnet-eastnet-subnets/1x1": conn_prio: 28,28,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-subnets/1x1": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-subnets/1x1": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-subnets/1x1": dpd: passive; delay:0s; timeout:0s
"westnet-eastnet-subnets/1x1": nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"westnet-eastnet-subnets/1x1": routing: unrouted;
"westnet-eastnet-subnets/1x1": conn serial: $1;
"westnet-eastnet-subnets/1x1": aliases: westnet-eastnet-subnets
"westnet-eastnet-subnets/1x2": 192.0.1.0/28===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.64/30; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-subnets/1x2": host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-subnets/1x2": my_updown=ipsec _updown;
"westnet-eastnet-subnets/1x2": xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"westnet-eastnet-subnets/1x2": our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"westnet-eastnet-subnets/1x2": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-subnets/1x2": sec_label:unset;
"westnet-eastnet-subnets/1x2": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-subnets/1x2": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"westnet-eastnet-subnets/1x2": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-subnets/1x2": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-subnets/1x2": policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"westnet-eastnet-subnets/1x2": conn_prio: 28,30,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-subnets/1x2": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-subnets/1x2": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-subnets/1x2": dpd: passive; delay:0s; timeout:0s
"westnet-eastnet-subnets/1x2": nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"westnet-eastnet-subnets/1x2": routing: unrouted;
"westnet-eastnet-subnets/1x2": conn serial: $2;
"westnet-eastnet-subnets/1x2": aliases: westnet-eastnet-subnets
"westnet-eastnet-subnets/2x1": 192.0.1.128/28===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.16/28; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-subnets/2x1": host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-subnets/2x1": my_updown=ipsec _updown;
"westnet-eastnet-subnets/2x1": xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"westnet-eastnet-subnets/2x1": our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"westnet-eastnet-subnets/2x1": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-subnets/2x1": sec_label:unset;
"westnet-eastnet-subnets/2x1": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-subnets/2x1": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"westnet-eastnet-subnets/2x1": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-subnets/2x1": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-subnets/2x1": policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"westnet-eastnet-subnets/2x1": conn_prio: 28,28,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-subnets/2x1": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-subnets/2x1": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-subnets/2x1": dpd: passive; delay:0s; timeout:0s
"westnet-eastnet-subnets/2x1": nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"westnet-eastnet-subnets/2x1": routing: unrouted;
"westnet-eastnet-subnets/2x1": conn serial: $3;
"westnet-eastnet-subnets/2x1": aliases: westnet-eastnet-subnets
"westnet-eastnet-subnets/2x2": 192.0.1.128/28===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.64/30; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-subnets/2x2": host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-subnets/2x2": my_updown=ipsec _updown;
"westnet-eastnet-subnets/2x2": xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"westnet-eastnet-subnets/2x2": our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"westnet-eastnet-subnets/2x2": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-subnets/2x2": sec_label:unset;
"westnet-eastnet-subnets/2x2": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-subnets/2x2": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"westnet-eastnet-subnets/2x2": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-subnets/2x2": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-subnets/2x2": policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"westnet-eastnet-subnets/2x2": conn_prio: 28,30,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-subnets/2x2": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-subnets/2x2": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-subnets/2x2": dpd: passive; delay:0s; timeout:0s
"westnet-eastnet-subnets/2x2": nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"westnet-eastnet-subnets/2x2": routing: unrouted;
"westnet-eastnet-subnets/2x2": conn serial: $4;
"westnet-eastnet-subnets/2x2": aliases: westnet-eastnet-subnets
west #
echo done
done
west #
../../guestbin/ipsec-kernel-state.sh
west #
../../guestbin/ipsec-kernel-policy.sh
west #
|