Hi, I can do the join but on the notebook I don't get the IP assigned.
How do I do that?
Best regards.

Michele


Il 17/05/24 17:08, Gagan Deep (pandafy) ha scritto:

Hello Michele,

By default, the ZeroTier configuration generated by OpenWISP flags the network as "private". This ensures that only authorised peers can join the network. OpenWISP automatically authorises managed devices using ZeroTier One API. For devices (i.e. Linux machine) that are not managed by OpenWISP, you will need to manually approve each peer that joins the ZeroTier network.

Here's a small guide on how you can connect your Linux machine to the ZeroTier network managed by OpenWISP:

 1. Get the ZeroTier network ID from the VPN details page on OpenWISP
    admin
    Screenshot from 2024-05-17 15-46-55.png
 2. Install ZeroTier <https://www.zerotier.com/download/> on your
    Linux machine
 3. Join the ZeroTier network using zerotier-cli
    <https://docs.zerotier.com/network-join/#from-the-command-line>
    /*zerotier-cli join <network-id> */
 4. Using the script below, authorise the Linux machine to connect to
    your ZeroTier network.

    You can retrieve the /*HOST*/, /*WEBHOOK_AUTHTOKEN*/ and
    /*NETWORK_ID*/ from the OpenWISP admin page of the ZeroTier VPN.

    Screenshot from 2024-05-17 20-26-31.jpg

    The NODE_ID for your Linux machine can be retrieved by running
    */zerotier-cli info/* command on your Linux machine. The output
    will contain
    /*200 info <node-id> 1.14.0 ONLINE*/

    Run this script on the VM where ZeroTier One is installed
    (typically the OpenWISP VM).
    #!/bin/bash
    # The hostname that you used in the OpenWISP for the ZeroTier.
    # If the hostname field includes a port, you need to add that too.
    HOST="yourhostname:9993"
    # The "Webhook AuthToken" that is present in the OpenWISP for the
    ZeroTier.
    WEBHOOK_AUTHTOKEN="zerotier_webook_authtoken"
    # The network ID which retrieved earlier for joining the network
    NETWORK_ID="zerotier_network_id"
    # The node ID for you Linux machine.
    # You can retrieve this using the command "zerotier-cli info" on
    # you Linux machine.
    NODE_ID="linux_machine_network_id"
    curl -X POST
    "http://$HOST/controller/network/${NETWORK_ID}/member/${NODE_ID}"; \
    -H "X-ZT1-Auth: $WEBHOOK_AUTHTOKEN" \
    -H "Content-Type: application/json" \
    -d '{"authorized": true}'

If you run into any problems, let us know.

Regards,
Gagan Deep
On Friday, May 17, 2024 at 3:39:58 AM UTC+5:30 [email protected] wrote:

    Hi,

    I have OpenWisp with zerotier, the routers connect without any
    problems.

    I also want to connect to the network from my notebook when I am
    not connected to a router with openwisp.

    How can I create a tunnel from my notebook with Linux as well?

    Thanks.

    Best regards,

    Michele

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/a4936b9a-b377-4879-adf4-19293b6150d0n%40googlegroups.com <https://groups.google.com/d/msgid/openwisp/a4936b9a-b377-4879-adf4-19293b6150d0n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) si 
precisa che le informazioni contenute in questo messaggio sono riservate e ad 
uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse 
pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non 
inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.

Privacy Information - This message, for the D. Lgs n. 196/2003 (Privacy Code), 
may contain confidential and/or privileged information. If you are not the 
addressee or authorized to receive this for the addressee, you must not use, 
copy, disclose or take any action based on this message or any information 
herein. If you have received this message in error, please advise the sender 
immediately by reply e-mail and delete this message. Thank you for your 
cooperation.

--
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/41952a51-3f0d-40d9-b90d-9b4ec8ef6dc5%40gmail.com.

Reply via email to