<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;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 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;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-mailStijl18
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:#1F497D;}
span.E-mailStijl19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.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><span style='color:#1F497D'>Hi all,.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Thanks for the feedback.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>While testing the new
configuration, the firewall (iptables) is set to the default values, allowing all
data in and out.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I have also added the right subnet
option (rightsubnet=192.168.0.0/24) , the situation doesn't change in any way.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Any more ideas?<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Greetz,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Dominic<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Van:</span></b><span
lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Gerhard
Reuter [mailto:gerhard.reuter@bayer.com] <br>
<b>Verzonden:</b> Friday, November 28, 2014 7:10 AM<br>
<b>Aan:</b> Dominic Wiersma; users@lists.openswan.org<br>
<b>Onderwerp:</b> AW: [Openswan Users] Right - Not working<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi Dominic,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>have had a similar issue – could get it back to work by
adding “rightsubnet” parameter.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>hope that helps<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>greetings<o:p></o:p></p>
<p class=MsoNormal>Gerhard<span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal style='margin-bottom:10.0pt;line-height:115%'><span
style='color:#1F497D'><o:p> </o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span
lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.openswan.org [mailto:users-bounces@lists.openswan.org] <b>Im
Auftrag von </b>Dominic Wiersma<br>
<b>Gesendet:</b> Freitag, 28. November 2014 00:26<br>
<b>An:</b> users@lists.openswan.org<br>
<b>Betreff:</b> [Openswan Users] Right - Not working<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<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> # <a
href="https://lists.openswan.org/pipermail/users/2014-April/022947.html">https://lists.openswan.org/pipermail/users/2014-April/022947.html</a><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>