<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:99.25pt 3.0cm 3.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span lang="EN-GB" style="color:black">Hello,<br>
<br>
I set up an IPv6 tunnel with strongSwan 5.9.2 on FreeBSD 12.2-RELEASE-p5 (built from source in ports tree), with the following config in swanctl.conf: <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black">connections { <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> ipsec-ikev2-vpn { <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> version = 2 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> local_addrs = %any <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> remote_addrs = %any <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> proposals = aes128gcm16-prfsha256-ecp256,aes256gcm16-prfsha384-ecp384 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> dpd_delay = 300s <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> fragmentation = yes <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span lang="EN-GB" style="color:black"> pools = vpnpool4,vpnpool6 <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span lang="EN-GB" style="color:black"> local {<br>
certs = /usr/local/etc/ipsec.d/certs/server.cert.pem<br>
auth = pubkey<br>
id = box<br>
} <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> remote {<br>
id = %any<br>
cacerts = /usr/local/etc/ipsec.d/cacerts/ca.cert.pem <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> auth = pubkey<br>
}<br>
<br>
children {<br>
saconfig { <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> esp_proposals = aes128gcm16-ecp256,aes256gcm16-ecp384 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> local_ts = 0.0.0.0/0,::/0 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> life_time = 0 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> life_bytes = 0 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> life_packets = 0 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> mode = tunnel <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> policies = yes <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> policies_fwd_out = yes <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> dpd_action = clear <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> ipcomp = no <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> hw_offload = yes<br>
}<br>
}<br>
}<br>
<br>
pools { <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> vpnpool4 { <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> addrs = 192.168.2.0/24 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> } <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> vpnpool6 { <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> addrs = 2a01:e34:abcd:effe::/64 # routed to me by my ISP, /64 will be dedicated to VPN <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black"> } <o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:black">}<br>
<br>
No errors or warnings appear in logs on the Android client or on the server, yet even with pf disabled on the server, I can’t even seem to ping the IPv6 address of the router (2a01:e34:abcd:effd::), which I can do just fine on the local network. Same for the
other way around – no packets from the server seems to arrive on the client.<br>
<br>
IPv4 works just fine, with NAT I can access all subnets of my LAN and the Internet.<br>
<br>
Any idea what could cause this?<br>
<br>
Thank you,<br>
Best regards<br>
Thomas<o:p></o:p></span></p>
</div>
</body>
</html>