<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Eric,<br>
<br>
Do you need router mode? You'll probably want switch mode for this,
not router mode. Your email isn't very descriptive of what you
require - but do you actually need the whole network to be bridged?<br>
<br>
If you only have 3 hosts you want to connect, it's probably easier
just to install tinc on all three hosts.<br>
<br>
If you do require a network to be bridged (this is using switch
mode), do this:<br>
<ul>
<li>Change line to Mode = switch in tinc.conf on NetworkA and add
the same line in tinc.conf on PCA</li>
<li>Remove the Subnet lines from your hosts files</li>
<li>Add a bridge on NetworkA host running the tinc daemon between
the virtual tuntap adapter and your local network adapter</li>
<li>Make sure ipforwarding is enabled on NetworkA host running the
tinc daemon<br>
</li>
<li>Put in the route on PC B<br>
</li>
</ul>
<p>Hopefully I haven't missed anything - this should work.<br>
</p>
<p>Mike<br>
</p>
<br>
On 25/04/2012 1:08 AM, Eric Yau wrote:
<blockquote cite="mid:SNT129-W36BE56E09C0B348C4C83ADC5260@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
<p class="MsoNormal"><span lang="EN-US">Dear All,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">I am trying to enable
router mode of tinc
on Windows 7 platform. Although I have enabled the router
mode and IP routing
in Windows 7 PC (Network A Server). The PC B is still unable
to connect the
Network A and PC A. But the Network A and PC A is able to
communicate each
other via tinc. Please help and advise me any incorrect of
that. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><b><u><span lang="EN-US">Network A server<o:p></o:p></span></u></b></p>
<p class="MsoNormal"><span lang="EN-US">Real - LAN adapter IP:
192.168.1.1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">tincVPN IP:
192.168.254.1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">IP routing enabled = yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><b><u><span lang="EN-US">Tinc.conf (Network
A)<o:p></o:p></span></u></b></p>
<p class="MsoNormal"><span lang="EN-US">AddressFamily = ipv4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Name = NetworkA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Interface = tincVPN<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Mode = Router<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><b><u><span lang="EN-US">NetworkA<o:p></o:p></span></u></b></p>
<p class="MsoNormal"><span lang="EN-US">Subnet =
192.168.254.0/24<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">-----BEGIN RSA PUBLIC
KEY-----<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">XXX<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-----END RSA PUBLIC
KEY-----<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><b><u><span lang="EN-US">Tinc.conf (PC A)<o:p></o:p></span></u></b></p>
<p class="MsoNormal"><span lang="EN-US">AddressFamily = ipv4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Name = PCA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Interface = tincVPN<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ConnectTo = NetworkA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><b><u><span lang="EN-US">PC A<o:p></o:p></span></u></b></p>
<p class="MsoNormal"><span lang="EN-US">Subnet =
192.168.254.2/32<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">-----BEGIN RSA PUBLIC
KEY-----<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">XXX<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-----END RSA PUBLIC
KEY-----<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><b><u><span lang="EN-US">PC B<o:p></o:p></span></u></b></p>
<p class="MsoNormal"><span lang="EN-US">PC B doesn’t have
install the tinc. I just
added the below route on PC B. And PC B is able to
communicate Network A LAN IP
192.168.1.1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\> route add
192.168.254.0 mask
255.255.255.0 192.168.1.1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Eric<o:p></o:p></span></p>
<br>
<font color="#008000"><font face="Webdings" size="5">P</font><font
face="Tahoma" size="2"><strong> </strong></font></font><strong><font
color="#008000">Please consider your environmental
responsibility. Before printing this e-mail message, ask
yourself whether you really need a hard copy.</font><br>
</strong><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
tinc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a>
<a class="moz-txt-link-freetext" href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a>
</pre>
</blockquote>
<br>
</body>
</html>