<div dir="ltr">Hi,<div>Thanks for the suggestion. With the change you recommended, I do see some progress. But here are the issues:</div><div><br></div><div>1) client -> server ping: I do see echo request is un-encrypted as seen by tcpdump on server's interface. But tcpdump on the server's interface shows no reply being generated (if I remove passthrough policy, the encrypted replies work just fine). I saw threads about strongswan using route table 220, but I don't see any output of "ip route show table 220". Why is "auto=route" required? How is it messing with the server side's echo reply, assuming that is the case? I tried with auto=start but that still had ICMP packets encrypted.</div><div><br></div><div>2) server -> client ping: I see server's ping show up encrypted on the client's interface. Client's interface tcpdump sees un-unencrypted echo reply. But this reply is not seen on server's interface at all!!</div><div><br></div><div>Does the order of IP addresses in output of "Shunted policies" have any significance? I see server side is showing shunted connected as "client/32 == server/32" which is not what I expected.</div><div><br></div><div><b>Client output:</b></div><div><div><b>client$:ipsec status</b></div><div>Shunted Connections:</div><div><b> skip: 1.100.0.9/32[icmp] === 1.100.0.5/32[icmp] PASS</b></div><div>Security Associations (1 up, 0 connecting):</div><div> 1.100.0.5[1]: ESTABLISHED 8 minutes ago, 1.100.0.9[C=US, ST=CA, L=Mountain View, O=OWCA, OU=AgentC, CN=owca.com]...1.100.0.5[C=US, ST=CA, L=Mountain View, O=OWCA, OU=AgentC, CN=owca.com]</div><div> 1.100.0.5{1}: INSTALLED, TRANSPORT, reqid 1, ESP SPIs: c5067855_i cfc50c8b_o</div><div> 1.100.0.5{1}: 1.100.0.9/32 === 1.100.0.5/32</div><div><br></div><div><b>Server output:</b></div><div><div><b>server$:ipsec status</b></div><div>Shunted Connections:</div><div><b> skip: 1.100.0.9/32[icmp] === 1.100.0.5/32[icmp] PASS</b></div><div>Security Associations (1 up, 0 connecting):</div><div> 1.100.0.9[1]: ESTABLISHED 9 minutes ago, 1.100.0.5[C=US, ST=CA, L=Mountain View, O=OWCA, OU=AgentC, CN=owca.com]...1.100.0.9[C=US, ST=CA, L=Mountain View, O=OWCA, OU=AgentC, CN=owca.com]</div><div> 1.100.0.9{1}: INSTALLED, TRANSPORT, reqid 1, ESP SPIs: cfc50c8b_i c5067855_o</div><div> 1.100.0.9{1}: 1.100.0.5/32 === 1.100.0.9/32</div></div><div><br></div><div>Much appreciate any help. Racoon/setkey was very straightforward to get this working :( Hopefully it is a mistake I am making/misconfiguring etc.</div><div><br></div><div>Reprinting the ipsec.conf (after changes were done):</div><div><b>Client:</b></div><div><br></div><div><div>conn skip</div><div> type=passthrough</div><div> left=127.0.0.1<br></div><div> leftsubnet=1.100.0.9/32[icmp/]</div><div> leftcert=client_cert.pem</div><div> leftsendcert=always</div><div> rightcert=server_cert.pem</div><div> right=127.0.0.1</div><div> rightsubnet=1.100.0.5/32[icmp/]</div><div> auto=route</div><div><br></div><div>conn 1.100.0.5</div><div> type=transport</div><div> left=1.100.0.9</div><div> leftcert=client_cert.pem</div><div> leftsendcert=always</div><div> rightcert=server_cert.pem</div><div> right=1.100.0.5</div><div> reauth=no</div><div> dpdaction=restart</div><div> auto=start</div></div><div><br></div><div><b>Server:</b></div><div><br></div><div><div>conn skip</div><div> type=passthrough</div><div> left=127.0.0.1</div><div> leftsubnet=1.100.0.5/32[icmp/]</div><div> leftcert=server_cert.pem</div><div> leftsendcert=always</div><div> rightcert=client_cert.pem</div><div> right=127.0.0.1</div><div> rightsubnet=1.100.0.9/32[icmp/]</div><div> auto=route</div><div><br></div><div>conn 1.100.0.9</div><div> type=transport</div><div> left=1.100.0.5</div><div> leftcert=server_cert.pem</div><div> leftsendcert=always</div><div> rightcert=client_cert.pem</div><div> right=1.100.0.9</div><div> reauth=no</div><div> dpdaction=restart</div><div> auto=add</div></div><div><br></div><div><br></div><div>Thanks!</div><br>On Tuesday, May 23, 2017 at 12:30:15 PM UTC-7, Dusan Ilic wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Try following<br><br> type=passthrough<br> left=<a href="http://127.0.0.1" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPHMKRHWJMzqOSHIe8RUvnisW-4A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPHMKRHWJMzqOSHIe8RUvnisW-4A';return true;">127.0.0.1</a><br> leftsubnet=<a href="http://1.100.0.9/32" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9%2F32\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGZJpSv2o2DNwUG5OTAefDMkzRz-w';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9%2F32\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGZJpSv2o2DNwUG5OTAefDMkzRz-w';return true;">1.100.0.9/32</a>[icmp/]<br> right=<a href="http://127.0.0.1" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPHMKRHWJMzqOSHIe8RUvnisW-4A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPHMKRHWJMzqOSHIe8RUvnisW-4A';return true;">127.0.0.1</a><br> rightsubnet=<a href="http://1.100.0.5/32" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5%2F32\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnqQ56PdUR1G-M7DzdqpXHdWQz_g';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5%2F32\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnqQ56PdUR1G-M7DzdqpXHdWQz_g';return true;">1.100.0.5/32</a>[icmp/<wbr>]<br> auto=route<br><br><br><br>---- <a href="javascript:" target="_blank" gdf-obfuscated-mailto="NtGCsxgvAgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">agarwa...@gmail.com</a> skrev ----<br><br><div dir="ltr">Reading another thread, I changed "right" of "skip" connection on both client and server to be "<a>127.0.0.1</a>" and that fixed up a few things:<div>1) The IPsec installed is type transport (as desired)</div><div>2) I do see shunted policies list ICMP PASS</div><div><br></div><div><b>However, I still have my pings from client to server encrypted :(</b><br></div><div><div><br></div><div><b>Client:</b></div><div><div># ipsec statusall</div><div>Status of IKE charon daemon (strongSwan <a>5.1.2</a>, Linux <a>4.4.0-75</a>-generic, x86_64):</div><div> uptime: 10 minutes, since May 23 12:02:<a>46 2017</a></div><div> malloc: sbrk <a>2564096</a>, mmap 0, used <a>393728</a>, free <a>2170368</a></div><div> worker threads: 11 of 16 idle, 5/0/0/0 working, job queue: 0/0/0/0, scheduled: 3</div><div> loaded plugins: charon test-vectors aes rc2 sha1 sha2 md4 md5 rdrand random nonce x509 revocation constraints pkcs1 pkcs7 pkcs8 pkcs12 pem openssl xcbc cmac hmac ctr ccm gcm attr kernel-netlink resolve socket-default stroke updown eap-identity addrblock</div><div>Listening IP addresses:</div><div> <a>1.100.0.9</a></div><div>Connections:</div><div> skip: %any...<a href="http://127.0.0.1" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPHMKRHWJMzqOSHIe8RUvnisW-4A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPHMKRHWJMzqOSHIe8RUvnisW-4A';return true;">127.0.0.1</a> IKEv2</div><div> skip: local: [C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>] uses public key authentication</div><div> skip: cert: "C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>"</div><div> skip: remote: [C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>] uses public key authentication</div><div> skip: cert: "C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>"</div><div> skip: child: <a>0.0.0.0</a>/0[icmp] === <a>0.0.0.0</a>/0[icmp] PASS</div><div> <a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>: <a>1.100.0.9...1.100.0.5</a> IKEv2, dpddelay=60s</div><div> <a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>: local: [C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>] uses public key authentication</div><div> <a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>: cert: "C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>"</div><div> <a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>: remote: [C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>] uses public key authentication</div><div> <a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>: cert: "C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>"</div><div> <a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>: child: dynamic === dynamic <b>TRANSPORT</b>, dpdaction=restart</div><div><b>Shunted Connections:</b></div><div><b> skip: <a>0.0.0.0</a>/0[icmp] === <a>0.0.0.0</a>/0[icmp] PASS</b></div><div>Security Associations (1 up, 0 connecting):</div><div> <a>1.100.0.5</a>[1]: ESTABLISHED 10 minutes ago, <a>1.100.0.9</a>[C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>]...<a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>[C=US, ST=CA, L=Mountain View, O=TEST, OU=AgentC, CN=<a href="http://test.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftest.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHISpVEBs4W2GxgRr8fjtKlrkVGeQ';return true;">test.com</a>]</div><div> <a>1.100.0.5</a>[1]: IKEv2 SPIs: be5caa6cea2281c2_i* 79bb5ad924d8d919_r, rekeying in 44 minutes</div><div> <a>1.100.0.5</a>[1]: IKE proposal: AES_CBC_128/HMAC_SHA1_96/PRF_<wbr>HMAC_SHA1/MODP_2048</div><div> <a>1.100.0.5</a>{1}: INSTALLED, <b>TRANSPORT</b>, ESP SPIs: c989f733_i c3f6a42e_o</div><div> <a>1.100.0.5</a>{1}: AES_CBC_128/HMAC_SHA1_96, <a>520206</a> bytes_i (2551 pkts, 1s ago), <a>1691623</a> bytes_o (2986 pkts, 10s ago), rekeying in 5 minutes</div><div> <a>1.100.0.5</a>{1}: <b><a>1.100.0.9</a>/32 === <a>1.100.0.5</a>/32</b> </div><div><br></div><div><br></div><div><b>Client setkey -DP output:</b></div><div><div><a>1.100.0.5</a>[any] <a>1.100.0.9</a>[any] 255</div><div> in prio high + <a>1073740029</a> ipsec</div><div> esp/transport//unique:1</div><div> created: May 23 12:18:<a>12 2017</a> lastused: May 23 12:18:<a>52 2017</a></div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=2248 seq=1 pid=176401</div><div> refcnt=11</div><div><a>1.100.0.9</a>[any] <a>1.100.0.5</a>[any] 255</div><div> out prio high + <a>1073740029</a> ipsec</div><div> esp/transport//unique:1</div><div> created: May 23 12:18:<a>12 2017</a> lastused: May 23 12:18:<a>47 2017</a></div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=2241 seq=2 pid=176401</div><div> refcnt=11</div><div><a>0.0.0.0</a>/0 <a href="http://0.0.0.0/0" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> icmp</div><div> fwd prio high + <a>1073739774</a> none</div><div> created: May 23 12:02:<a>46 2017</a> lastused: </div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=2130 seq=3 pid=176401</div><div> refcnt=1</div><div><a>0.0.0.0</a>/0 <a href="http://0.0.0.0/0" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> icmp</div><div> in prio high + <a>1073739774</a> none</div><div> created: May 23 12:02:<a>46 2017</a> lastused: May 23 12:02:<a>50 2017</a></div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=2120 seq=4 pid=176401</div><div> refcnt=1</div><div><a>0.0.0.0</a>/0 <a href="http://0.0.0.0/0" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> icmp</div><div> out prio high + <a>1073739774</a> none</div><div> created: May 23 12:02:<a>46 2017</a> lastused: </div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=2113 seq=5 pid=176401</div><div> refcnt=1</div></div><div><br></div><br>On Tuesday, May 23, 2017 at 11:29:04 AM UTC-7, <a>agarwa...@gmail.com</a> wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Noel,<div>Many thanks for the pointer. Looks like I am missing something more or perhaps making a mistake. </div><div><br></div><div>Client [<a href="http://1.100.0.9" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;">1.100.0.9</a>] -- Server [<a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>] <br></div><div><br></div><div>Goal: All non-ICMP traffic to be over IPsec tunnel between these two machines.</div><div><br></div><div>Strongswan <a>5.1.2</a></div><div><br></div><div>The client and server are using self-signed certificates and have each other's certs in /etc/ipsec.d/certs/</div><div><br></div><div><b>Client <a href="http://ipsec.conf" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fipsec.conf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIY6oblBs6GKcTvKGOqzAox_PT-Q';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fipsec.conf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIY6oblBs6GKcTvKGOqzAox_PT-Q';return true;">ipsec.conf</a>:</b></div><div><div><br></div></div><div><div>config setup</div><div> charondebug = "dmn 0,mgr 1, ike 2, job 2, cfg 2, knl 1, net 1, tls 1, lib 0, enc 0, tnc 0"</div><div> uniqueids=no</div><div><br></div><div>conn %default</div><div> ikelifetime=60m</div><div> keylife=20m</div><div> rekeymargin=3m</div><div> keyingtries=1</div><div> keyexchange=ikev2</div><div> authby=rsasig</div><div><br></div><div>conn skip</div><div> type=<b><font color="#ff0000">passthrough</font></b></div><div> left=<a href="http://1.100.0.9" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;">1.100.0.9</a></div><div> leftsubnet=<a href="http://0.0.0.0/0%5Bicmp/%5D" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0%255Bicmp%2F%255D\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ0VHOsME_CjtHtA78qw8AubjTqQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0%255Bicmp%2F%255D\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ0VHOsME_CjtHtA78qw8AubjTqQ';return true;">0.0.0.0/0[icmp/]</a></div><div> leftcert=client_<a href="http://cert.pem" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;">cert.pem</a></div><div> leftsendcert=always</div><div> rightcert=server_<a href="http://cert.pem" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;">cert.pem</a></div><div> right=<a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a></div><div> rightsubnet=<a href="http://0.0.0.0/0%5Bicmp/%5D" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0%255Bicmp%2F%255D\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ0VHOsME_CjtHtA78qw8AubjTqQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0%255Bicmp%2F%255D\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ0VHOsME_CjtHtA78qw8AubjTqQ';return true;">0.0.0.0/0[icmp/]</a></div><div> auto=route</div><div><br></div><div>conn <a>1.100.0.5</a></div><div> type=<font color="#ff0000"><b>transport</b></font></div><div> left=<a href="http://1.100.0.9" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;">1.100.0.9</a></div><div> leftcert=client_<a href="http://cert.pem" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;">cert.pem</a></div><div> leftsendcert=always</div><div> rightcert=server_<a href="http://cert.pem" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;">cert.pem</a></div><div> right=<a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a></div><div> reauth=no</div><div> auto=start</div></div><div><br></div><div><b>Server <a href="http://ipsec.conf" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fipsec.conf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIY6oblBs6GKcTvKGOqzAox_PT-Q';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fipsec.conf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIY6oblBs6GKcTvKGOqzAox_PT-Q';return true;">ipsec.conf</a>:</b></div><div><br></div><div><div>config setup</div><div> charondebug = "dmn 0,mgr 1, ike 2, job 2, cfg 2, knl 1, net 1, tls 1, lib 0, enc 0, tnc 0"</div><div> uniqueids=no</div><div><br></div><div>conn %default</div><div> ikelifetime=60m</div><div> keylife=20m</div><div> rekeymargin=3m</div><div> keyingtries=1</div><div> keyexchange=ikev2</div><div> authby=rsasig</div><div><br></div><div>conn skip</div><div> type=<b><font color="#ff0000">passthrough</font></b></div><div> left=<a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a></div><div> leftsubnet=<a href="http://0.0.0.0/0%5Bicmp/%5D" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0%255Bicmp%2F%255D\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ0VHOsME_CjtHtA78qw8AubjTqQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0%255Bicmp%2F%255D\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ0VHOsME_CjtHtA78qw8AubjTqQ';return true;">0.0.0.0/0[icmp/]</a></div><div> leftcert=server_<a href="http://cert.pem" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;">cert.pem</a></div><div> leftsendcert=always</div><div> rightcert=client_<a href="http://cert.pem" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;">cert.pem</a></div><div> right=<a href="http://1.100.0.9" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;">1.100.0.9</a></div><div> rightsubnet=<a href="http://0.0.0.0/0%5Bicmp/%5D" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0%255Bicmp%2F%255D\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ0VHOsME_CjtHtA78qw8AubjTqQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0%255Bicmp%2F%255D\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ0VHOsME_CjtHtA78qw8AubjTqQ';return true;">0.0.0.0/0[icmp/]</a></div><div> auto=route</div><div><br></div><div>conn <a>1.100.0.9</a></div><div> type=<b><font color="#ff0000">transport</font></b></div><div> left=<a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a></div><div> leftcert=server_<a href="http://cert.pem" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;">cert.pem</a></div><div> leftsendcert=always</div><div> rightcert=client_<a href="http://cert.pem" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcert.pem\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFv7OnpLH1rErpl8PnRQ-VhrkXEQw';return true;">cert.pem</a></div><div> right=<a href="http://1.100.0.9" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;">1.100.0.9</a></div><div> reauth=no</div><div> auto=add</div></div><div><br></div><div><div>=============</div><div>Output of setkey -DP on client:</div><div><div>root@agarwalpiyush0:/usr/<wbr>local/google/home/<wbr>agarwalpiyush/work/agent-v# ./sbin/nfv_cli dm_carl0 setkey -DP</div><div><a>1.100.0.5 1.100.0.9</a> icmp</div><div> fwd prio high + <a>1073740030</a> ipsec</div><div> esp/tunnel/<a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>-<a href="http://1.100.0.9/unique:1" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9%2Funique%3A1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUrvNQJFtHQdjJjgvTn-1azQ50EQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9%2Funique%3A1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUrvNQJFtHQdjJjgvTn-1azQ50EQ';return true;">1.100.0.<wbr>9/unique:1</a></div><div> created: May 23 11:21:<a>42 2017</a> lastused: </div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=1834 seq=1 pid=103981</div><div> refcnt=1</div><div><a>1.100.0.5 1.100.0.9</a> icmp</div><div> in prio high + <a>1073740030</a> ipsec</div><div> esp/tunnel/<a href="http://1.100.0.5" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEtwkndnLk1DlV7aF8926lFhdB9FA';return true;">1.100.0.5</a>-<a href="http://1.100.0.9/unique:1" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9%2Funique%3A1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUrvNQJFtHQdjJjgvTn-1azQ50EQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9%2Funique%3A1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUrvNQJFtHQdjJjgvTn-1azQ50EQ';return true;">1.100.0.<wbr>9/unique:1</a></div><div> created: May 23 11:21:<a>42 2017</a> lastused: </div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=1824 seq=2 pid=103981</div><div> refcnt=1</div><div><a>1.100.0.9 1.100.0.5</a> icmp</div><div> out prio high + <a>1073740030</a> ipsec</div><div> esp/tunnel/<a href="http://1.100.0.9" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.9\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGngopbDlpFc3neyQBlBWcJqDUvLg';return true;">1.100.0.9</a>-<a href="http://1.100.0.5/unique:1" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5%2Funique%3A1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzNdevjG4SUdFURutSHsdDC4CzKw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F1.100.0.5%2Funique%3A1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzNdevjG4SUdFURutSHsdDC4CzKw';return true;">1.100.0.<wbr>5/unique:1</a></div><div> created: May 23 11:21:<a>42 2017</a> lastused: </div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=1817 seq=3 pid=103981</div><div> refcnt=1</div><div><a href="http://0.0.0.0/0" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> <a href="http://0.0.0.0/0" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> icmp</div><div> fwd prio high + <a>1073739774</a> none</div><div> created: May 23 11:21:<a>31 2017</a> lastused: </div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=1698 seq=4 pid=103981</div><div> refcnt=1</div><div><a href="http://0.0.0.0/0" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> <a href="http://0.0.0.0/0" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> icmp</div><div> in prio high + <a>1073739774</a> none</div><div> created: May 23 11:21:<a>31 2017</a> lastused: May 23 11:21:<a>35 2017</a></div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=1688 seq=5 pid=103981</div><div> refcnt=2</div><div><a href="http://0.0.0.0/0" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> <a href="http://0.0.0.0/0" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%2F0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETOu60a3HCyMN138-VZlWuvaAA1A';return true;">0.0.0.0/0</a> icmp</div><div> out prio high + <a>1073739774</a> none</div><div> created: May 23 11:21:<a>31 2017</a> lastused: </div><div> lifetime: 0(s) validtime: 0(s)</div><div> spid=1681 seq=6 pid=103981</div><div> refcnt=1</div></div><div><br></div><div><div><br></div></div><div>Questions:</div><div>1) I'd like a transport type IPsec session for all non-ICMP traffic between client and server. As soon as I specify "passthrough" policy, my IPsec session changes to type "tunnel" from output of ipsec status. Clearly I am not specifying passthrough policy correctly.</div><div><br></div><div>1) Do I need to specify left/right for my "skip" passthrough conn? If I do NOT specify left and right for skip connection, I see the IPsec type remains transport (which is good and what I want), I do see shunted policies in "ipsec status" but I still see ping packets are encrypted.</div><div><br></div><div>Thank you for any help!</div><div>Piyush</div><div><br></div>On Monday, May 22, 2017 at 12:19:17 PM UTC-7, Noel Kuntze wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Add a passthrough policy for the protocol.<br><br><div class="gmail_quote">Am 22. Mai 2017 19:09:03 MESZ schrieb Piyush Agarwal <<a rel="nofollow">agarwa...@gmail.com</a>>:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi,<div>Reading through the left|rightsubnet, it seems like there is no way to *exclude* a protocol from getting encrypted? </div><div><br></div><div>I have a host to host tunnel and I want to encrypt everything between these except ICMP since I'd like to do out-of-tunnel ping/traceroute.</div><div><br></div><div>Prior to using strongswan, I was using racoon where I could use setkey to manually update the SPD to exclude icmp alone.</div><div><br></div><div>Please advise if there is any way to achieve this with strongswan.</div><div><br></div><div>Thanks.<br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">Piyush Agarwal</span><br></div><div><span style="color:rgb(17,17,17)"><font face="arial, helvetica, sans-serif" size="2">Life can only be understood backwards; but it must be lived forwards.</font></span><br></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
</blockquote></div><br>
-- <br>
Sent from mobile</div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div>