Tinc on two computers

Сергей Казуров kazurovsg at yandex.ru
Tue Jul 15 14:21:43 CEST 2008


             Good day!

Please, help me resolve following problem:

there are two computers - one is my home
computer (Comp1), and other - computer (Comp2) in LAN of my
office. Comp1 have DSL connection to the Internet and dynamic
ip address, for example 88.147.128.210, Comp2 is located behind
firewall (external address x.x.x.x, internal 192.168.1.26) and his
ip - 192.168.1.10. What i want: setup tinc on Comp2 as a server
and connect to him with Comp1 (tinc as client). How to realize
this model?

What i do:

On Comp2 tinc.conf
=================================================================
Name = Comp2
Interface = tap0

folder hosts consist two files

Comp1

Subnet = 10.20.30.2/32
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBANLxhYkz/GYOpOmwXhu+dBmERWZdlL1kt0MHKr+WxaQSQPwE+Ynr3dcJ
3Zzp9BpaslkvksfgvklkgkalksJEe3FB33PQi8IzZbciXvsDnIk5hhasbhOsTb4Y
7CJHfwOWgj8vBW+rjsXyipCHFrGeX3s6pbgLDWAXmejGgCRI+ISPAgMBAAE=
-----END RSA PUBLIC KEY-----

Comp2

Address = 192.168.1.10
Port = 655
Subnet = 10.20.30.0/24
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAMJcxWlp8hU9C2LF+81NvCgUMcvkNdxXBQU088rRt8Thp6aWXl2o5J20
VOUdThaEeXs62Bf7Bt6Frs+LmpkBjn2hAmWUi+mfTTnz8uhFr6v2U3s4tt7lanpE
pjUsShXsNuIlLJlkKJlkjerwatpouixz30A4Eeh5/x1HM/Z3Ig7fOTF/AgMBAAE=
-----END RSA PUBLIC KEY-----

On Comp1 tinc.conf
=================================================================

Name = Comp1
Interface = tap0
ConnectTo = Comp2

folder hosts consist two files

Comp1


Subnet = 10.20.30.2/32
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBANLxhYkz/GYOpOmwXhu+dBmERWZdlL1kt0MHKr+WxaQSQPwE+Ynr3dcJ
3Zzp9BpaslkvksfgvklkgkalksJEe3FB33PQi8IzZbciXvsDnIk5hhasbhOsTb4Y
7CJHfwOWgj8vBW+rjsXyipCHFrGeX3s6pbgLDWAXmejGgCRI+ISPAgMBAAE=
-----END RSA PUBLIC KEY-----

Comp2

Address = x.x.x.x
Subnet = 10.20.30.0/24
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAMJcxWlp8hU9C2LF+81NvCgUMcvkNdxXBQU088rRt8Thp6aWXl2o5J20
VOUdThaEeXs62Bf7Bt6Frs+LmpkBjn2hAmWUi+mfTTnz8uhFr6v2U3s4tt7lanpE
pjUsShXsNuIlLJlkKJlkjerwatpouixz30A4Eeh5/x1HM/Z3Ig7fOTF/AgMBAAE=
-----END RSA PUBLIC KEY-----


Is this right?                        mailto:kazurovsg at yandex.ru




More information about the tinc mailing list