single host with two different ports

Rob Townley rob.townley at gmail.com
Wed Dec 23 21:01:53 CET 2009


On Wed, Dec 23, 2009 at 1:10 PM, Guus Sliepen <guus at tinc-vpn.org> wrote:
> On Tue, Dec 22, 2009 at 04:54:59PM +0100, Guus Sliepen wrote:
>
>> > How does one specify two different ports in the same host file?  When
>> > lapops are hardwired versus when mobile on a totally different lan.
>> >
>> > address0 71.17.72.27
>> > address1 192.168.2.27
>> > port0 22755
>> > port1 655
>>
>> That's unfortunately not supported by tinc (yet).
>
> But now it is! The latest revision from git allows you to put this in a host
> config file:
>
> Address = 71.17.72.27 22755
> Address = 192.168.2.27 655
>
> Symbolic names will also work of course, "Address = example.org https" will
> connect to 192.0.32.10 port 443.
>

Great work GUUS!!!

> As for support for SRV records: unfortunately there is no easy way to do it,
> this will probably require an external library (libruli seems a candidate), but
> this may bring in its own dependencies and porting issues.
>
> There also seem to be problems with DNS servers that drop requests for SRV
> records, which causes queries to take a long time to time out.  So one wouldn't
> want to enable this by default, unless we do asynchronous DNS lookups, which
> requires substantial changes to tinc.
>
> So, I'll not add SRV support in tinc 1.0.x. Support for KEY records will
> probably share the same problems as for SRV records. Of course, if someone else
> wants to work on it I'll be happy to merge workable patches.

i was hoping to start on it but i messed up my dev machine when trying
to make cross compiling via mingw work.  The example directions on the
website are pretty clear, but i still messed it up.   But i guess i
need to set up the machine to get the latest git repo so that i can
have multiple ports per host file.

Since the person installing tinc would also be the bind / pdns
installer, then i don't see SRV lookups as much of a problem.  It
would be a tinc net only dns server.

Thanks You Guus





>
> --
> Met vriendelijke groet / with kind regards,
>     Guus Sliepen <guus at tinc-vpn.org>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAksyaxUACgkQAxLow12M2nsXGACeKqzdnQsmnQqmenG0Jc5cxQRr
> OaAAoJJ1525vAQ6dHamaWZmJ/vVd2F8j
> =khTw
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> tinc mailing list
> tinc at tinc-vpn.org
> http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
>
>


More information about the tinc mailing list