<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Gus:<br>
    <br>
    Can you give me an example of <netname>.<br>
    <br>
    My eth0 device is assigned a public ip address, but I will not use
    tinc to secure traffic over that interface.<br>
    <br>
    There will be an eth1 device that has a externally visible IP
    Address.  It is on this eth1 device that I want<br>
    the virtual tun0 device to route its traffic.<br>
    <br>
    Maybe under Ubuntu, I will have a different device name tun0?  (I
    only tested tinc on centos6 earlier)<br>
    <br>
    Thanks,<br>
    <br>
    md<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 3/1/2016 5:37 AM, Guus Sliepen
      wrote:<br>
    </div>
    <blockquote cite="mid:20160301113705.GH3784@sliepen.org" type="cite">
      <pre wrap="">On Tue, Mar 01, 2016 at 04:31:13AM -0600, <a class="moz-txt-link-abbreviated" href="mailto:md@rpzdesign.com">md@rpzdesign.com</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Where do I get information about the details of not needing a tinc-up script
anymore?  (/etc/network/interfaces)
</pre>
      </blockquote>
      <pre wrap="">
You can just use the normal /etc/network/interfaces way of configuring
the interface, like this:

iface vpn inet manual
        address 192.168.1.1
        netmask 255.255.255.0
        tinc-net <netname>

</pre>
      <blockquote type="cite">
        <pre wrap="">Also, after that interface comes up and is ready, only THEN do I want to run
other software.
</pre>
      </blockquote>
      <pre wrap="">
During boot, all services that require the network is online are started
AFTER all auto interfaces in /etc/network/interfaces have been brought
up.

</pre>
      <blockquote type="cite">
        <pre wrap="">What piece of data can I monitor programmatically (C++, python, etc) to know
when the interface is up and running ok?

What I want to void is having to execute an ifconfig command and then parse
the output in a program.
</pre>
      </blockquote>
      <pre wrap="">
There's /sys/class/net/<interface>/operstate, which should exist and
contain "up" when the interface is up. Otherwise, there's the netlink
interface, but I've never worked with that myself.

But be warned, whether an interface is up still doesn't mean that your
network is actually working. For example, you'd want to mount a NFS
share if the interface is up AND if the NFS server itself is up and
reachable. If you can instead make your services more resilient to
changes in the network state, that would be better.

</pre>
      <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>