Hi,<br><br>this is the idea:<br><br>you have two machines in differen subnets e.g. :<br><br>machine 1: <a href="http://10.20.40.0/24">10.20.40.0/24</a><br>machine 2: <a href="http://10.20.41.0/24">10.20.41.0/24</a><br><br>
When running tinc, you make a network "<a href="http://10.20.0.0/16">10.20.0.0/16</a>", connected to the virtual device.<br><br>Now, the virtual interface can have the same ip address as the physical interface on each machine, yes, really, two interfaces on the same machine, with the same ip address, just a different netmask.<br>
<br>so you get the following routing:<br><br>machine 1:<br><a href="http://10.20.40.0/24">10.20.40.0/24</a> -> physical interface<br><a href="http://10.20.0.0/16">10.20.0.0/16</a> -> virtual interface<br>with ip address for both interfaces e.g. <a href="http://10.20.40.1">10.20.40.1</a><br>
<br>machine 2:<br><a href="http://10.20.41.0/24">10.20.41.0/24</a> -> physical interface<br><a href="http://10.20.0.0/16">10.20.0.0/16</a> -> virtual interface<br>with ip address for both interfaces e.g. <a href="http://10.20.41.1">10.20.41.1</a><br>
<br>cheers.<br><br><div class="gmail_quote">On Thu, Mar 27, 2008 at 2:43 PM, Viktors Žilinskis <<a href="mailto:viktors.zilinskis@vianova.lv">viktors.zilinskis@vianova.lv</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br><br>I have set up tunnel between a FreeBSD machine and Windows Vista. Tunnel is established, but when I try to ping either end ping fails. I have temporarily switched off firewalls on both machines, no luck. <br>
<br><span style="font-style: italic;">Here is client tinc.conf on Vista:</span><br>Name = lenovo_client<br>ConnectTo = lenovo_server<br>Interface = tinctap<br>Subnet = <a href="http://10.20.40.0/24" target="_blank">10.20.40.0/24</a><br>
<br style="font-style: italic;">
<span style="font-style: italic;">Sevrer tinc.conf on FreeBSD:</span><br>Device=/dev/tap0<br>Name=lenovo_server<br>PrivateKeyFile=/usr/local/etc/tinc/lenovo/rsa_key.priv<br><br style="font-style: italic;"><span style="font-style: italic;">Client host file:</span><br>
Compression=9<br>Subnet = <a href="http://10.20.40.0/24" target="_blank">10.20.40.0/24</a><br>-----BEGIN RSA PUBLIC KEY-----<br>...<br>-----END RSA PUBLIC KEY-----<br><br><br><span style="font-style: italic;">Server host file:</span><br>
Compression=9<br>Subnet=<a href="http://10.20.40.0/24" target="_blank">10.20.40.0/24</a><br>Address=xx.xxx.xxx.xxx<br>-----BEGIN RSA PUBLIC KEY-----<br>...<br>-----END RSA PUBLIC KEY-----<br><br style="font-style: italic;">
<span style="font-style: italic;">Entry in tinc-up on server side:</span><br>
ifconfig $INTERFACE <a href="http://10.20.40.1" target="_blank">10.20.40.1</a> netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a><br><br><span style="font-style: italic;">Tap interface properties set in Vista:</span><br>
IP = <a href="http://10.20.40.2" target="_blank">10.20.40.2</a> Subnet = <a href="http://255.255.255.0" target="_blank">255.255.255.0</a><br>
<br>Unfortunately I'm not strong in networking and have been unsuccessfully struggling with this setup for whole day. I want to make a simple tunnel between these two PCs and later maybe add some more so that they think they're in same network. IMHO they should be in one network when tunnel is established, server having ip <a href="http://10.20.40.1" target="_blank">10.20.40.1</a> and client <a href="http://10.20.40.2" target="_blank">10.20.40.2</a>. When I try to ping them respectively I got 100% loss or host is down messages. What's wrong? <br>
<br>Best Regards, <br>Viktors <br><br><br><br clear="all"><br>-- <br><font color="#888888">Viktors Žilinskis
</font><br>_______________________________________________<br>
tinc mailing list<br>
<a href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a><br>
<a href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc" target="_blank">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a><br>
<br></blockquote></div><br>