<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 12 (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:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-mailStijl17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</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=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi All,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have openswan running and all is working well.<o:p></o:p></p>
<p class=MsoNormal>Due to a design change, I want only specific hosts to be
able to connect.<o:p></o:p></p>
<p class=MsoNormal>So in my ipsec.conf I have changed right=%any to
right=1.2.3.4, which is the public ip of the remote client that must connect.<o:p></o:p></p>
<p class=MsoNormal>But then nothing happens, no errors in the logs, no nothing.
On the client the connection simply times out. I am troubleshooting this
problem for hours now.<o:p></o:p></p>
<p class=MsoNormal>What can cause this behavior?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>config setup<o:p></o:p></p>
<p class=MsoNormal>
dumpdir=/var/run/pluto/<o:p></o:p></p>
<p class=MsoNormal> #in what directory
should things started by setup (notably the Pluto daemon) be allowed to dump
core?<o:p></o:p></p>
<p class=MsoNormal> nat_traversal=yes<o:p></o:p></p>
<p class=MsoNormal> #whether to
accept/offer to support NAT (NAPT, also known as "IP
Masqurade")workaround for IPsec<o:p></o:p></p>
<p class=MsoNormal> virtual_private=%v4:10.254.168.0/24<o:p></o:p></p>
<p class=MsoNormal> #contains the
networks that are allowed as subnet= for the remote client. In other words, the
address ranges that may live behind a NAT router through which a client
connects.<o:p></o:p></p>
<p class=MsoNormal> protostack=netkey<o:p></o:p></p>
<p class=MsoNormal> #decide which
protocol stack is going to be used.<o:p></o:p></p>
<p class=MsoNormal>
force_keepalive=yes<o:p></o:p></p>
<p class=MsoNormal> keep_alive=60<o:p></o:p></p>
<p class=MsoNormal> # Send a
keep-alive packet every 60 seconds.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>conn L2TP-PSK-noNAT<o:p></o:p></p>
<p class=MsoNormal> authby=secret<o:p></o:p></p>
<p class=MsoNormal> #shared secret.
Use rsasig for certificates.<o:p></o:p></p>
<p class=MsoNormal> pfs=no<o:p></o:p></p>
<p class=MsoNormal> #Disable pfs<o:p></o:p></p>
<p class=MsoNormal> auto=add<o:p></o:p></p>
<p class=MsoNormal> #the ipsec tunnel
should be started and routes created when the ipsec daemon itself starts.<o:p></o:p></p>
<p class=MsoNormal> keyingtries=3<o:p></o:p></p>
<p class=MsoNormal> #Only negotiate a
conn. 3 times.<o:p></o:p></p>
<p class=MsoNormal> ikelifetime=8h<o:p></o:p></p>
<p class=MsoNormal> keylife=1h<o:p></o:p></p>
<p class=MsoNormal>
ike=aes256-sha1,aes128-sha1,3des-sha1<o:p></o:p></p>
<p class=MsoNormal>
phase2alg=aes256-sha1,aes128-sha1,3des-sha1<o:p></o:p></p>
<p class=MsoNormal> #
https://lists.openswan.org/pipermail/users/2014-April/022947.html<o:p></o:p></p>
<p class=MsoNormal> # specifies the
phase 1 encryption scheme, the hashing algorithm, and the diffie-hellman group.
The modp1024 is for Diffie-Hellman 2. Why 'modp' instead of dh? DH2is a 1028
bit encryption $<o:p></o:p></p>
<p class=MsoNormal> type=tunnel<o:p></o:p></p>
<p class=MsoNormal> #because we use
l2tp as tunnel protocol<o:p></o:p></p>
<p class=MsoNormal> left=x.x.x.x<o:p></o:p></p>
<p class=MsoNormal>
leftsubnet=10.10.10.0/24<o:p></o:p></p>
<p class=MsoNormal> #fill in server IP
above<o:p></o:p></p>
<p class=MsoNormal>
leftprotoport=17/%any<o:p></o:p></p>
<p class=MsoNormal> right=1.2.3.4<o:p></o:p></p>
<p class=MsoNormal>
rightprotoport=17/%any<o:p></o:p></p>
<p class=MsoNormal> #dpddelay=10<o:p></o:p></p>
<p class=MsoNormal> # Dead Peer
Dectection (RFC 3706) keepalives delay<o:p></o:p></p>
<p class=MsoNormal> #dpdtimeout=20<o:p></o:p></p>
<p class=MsoNormal> # length of time
(in seconds) we will idle without hearing either an R_U_THERE poll from our
peer, or an R_U_THERE_ACK reply.<o:p></o:p></p>
<p class=MsoNormal> #dpdaction=clear<o:p></o:p></p>
<p class=MsoNormal> # When a DPD
enabled peer is declared dead, what action should be taken. clear means the
eroute and SA with both be cleared.<o:p></o:p></p>
<p class=MsoNormal> #aggrmode=yes<o:p></o:p></p>
<p class=MsoNormal> ikev2=propose<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Best regards,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Dominic Wiersma<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>