<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dennis,<br>
<br>
Are you sure the Draytek at Remote Office 1 is routing traffic to
Remote Office 2 via the head office? I don't believe it would normally
do that unless you have set up a specific route.<br>
<br>
As an aside, why have you enabled NAT Traversal?<br>
Not an Openswan solution, but can you not set up direct VPN's between
the Drayteks?<br>
<br>
<br>
<br>
On 19/03/2010 08:40, Dennis van der Meer wrote:
<blockquote
cite="mid:8839E2E29BAE1944B6DA56C2E3C8CADEECBBBB@gc-srv-01.greenchem.local"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@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:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";}
span.EmailStyle19
        {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:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";" lang="NL">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";" lang="NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">I have the
following situation:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">We have
several sales offices that connect to our head office via an ipsec
connection,
which is<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">established
by a Draytek router. On our server side we have a Linux server running
with
openswan<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";" lang="NL">(Linux
Openswan U2.6.20/K2.6.27.7-smp (netkey)).<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";" lang="NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">Our head
office internal network range is 192.168.2.x/24 and our sales offices
are in
the range of<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">10.0.x.0/24.
So, e.g.:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">Remote
office LAN 1<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">(10.0.2.0/24)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">|<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">Draytek
router (10.0.2.1)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">|<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">Internet<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">|<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">Linux server
(ext. ip: a.b.c.d)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">(192.168.2.3)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">|<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">Head office
LAN<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">(192.168.2.0/24)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">The remote
offices are for the most part connected to internet with a dynamic ip
address
(roadwarrior)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">and so I
have used an ID to keep them apart.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">My
ipsec.conf file is as followed:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">#
/etc/ipsec.conf - Openswan IPsec configuration file<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";" lang="NL">#
RCSID $Id: ipsec.conf.in,v 1.16 2005/07/26 12:29:45 ken Exp $<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";" lang="NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">#
This file: /usr/local/share/doc/openswan/ipsec.conf-sample<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">#<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">#
Manual: ipsec.conf.5<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">version
2.0 # conforms to second version of ipsec.conf
specification<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">#
basic configuration<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">config
setup<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
uniqueids=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
nat_traversal=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
virtual_private=%v4:10.0.0.0/16,%v4:172.16.0.0/12,%v4:192.168.0.0/16,%v<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
protostack=netkey<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
plutodebug=none<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
klipsdebug=none<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">conn
%default<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
keyingtries=0<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
disablearrivalcheck=no<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
authby=secret<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
dpddelay=60<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
dpdtimeout=120<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
dpdaction=clear<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">conn
Office1<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
auto=add<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
left=a.b.c.d
(=external ip Linux server)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
leftsourceip=192.168.2.3 (=internal LAN address Linux server)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
leftsubnet=192.168.2.0/24 (=internal subnet on head office side)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
right=%any
(=other side uses dynamic ip so have to use %any here)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
rightsourceip=10.0.2.1 (=local ip address of Draytek router
from other side)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
rightsubnet=10.0.2.0/24 (=local subnet of remote office 1)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
rightid=@RemoteOffice1 (=ID for office to identify which
tunnel to use)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
keyexchange=ike<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
keyingtries=5<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
type=tunnel<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
disablearrivalcheck=no<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
authby=secret<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
pfs=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">conn
Office2<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
auto=add<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
left=a.b.c.d<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
leftsourceip=192.168.2.3<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
leftsubnet=192.168.2.0/24<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
right=%any<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
rightsourceip=10.0.3.1<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
rightsubnet=10.0.3.0/24<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
rightid=@RemoteOffice2<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
keyexchange=ike<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
keyingtries=5<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
type=tunnel<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
disablearrivalcheck=no<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
authby=secret<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 8pt; font-family: "Courier New";">
pfs=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">And there are
more offices configured in the file but they are much the same, except
for the
subnet.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">The Draytek
routers can connect without any problem and I can ping the remote
subnets from
the Linux server.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">I can also
ping the remote computers in the remote offices from the Head Office
LAN.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">It is
however not possible to ping a system in Remote Office 2 from Remote
Office 1:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">e.g. In
Remote Office 1: ping 10.0.3.1<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">After using
a “tcpdump –n icmp” I saw that traffic is going from the computer in
Remote
Office 1 to the Linux server<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">but from
there it doesn’t travel to the Remote Office 2.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">How will I
be able to access services in Remote Office 2 from Remote Office 1
(e.g. ping
or access to a web server)?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family: "Calibri","sans-serif";">Dennis<o:p></o:p></span></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Users@openswan.org">Users@openswan.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openswan.org/mailman/listinfo/users">http://lists.openswan.org/mailman/listinfo/users</a>
Building and Integrating Virtual Private Networks with Openswan:
<a class="moz-txt-link-freetext" href="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</a>
</pre>
</blockquote>
</body>
</html>