OurNet Club

OurNet.Club - P2P overlay network


Network: Main | Sign Up / Sign In | FAQ | Get Support

How to connect OurNet using Tinc on Linux (Debian based)

Run from the superuser:
apt install tinc
mkdir -p /etc/tinc/ournet/hosts


Download the keys and configs from the OurNet Dashboard and put them accordingly:
tinc.conf -> /etc/tinc/ournet/tinc.conf
rsa_priv.key -> /etc/tinc/ournet/rsa_priv.key
server_01 -> /etc/tinc/ournet/hosts/server_01
server_02 -> /etc/tinc/ournet/hosts/server_02
server_03 -> /etc/tinc/ournet/hosts/server_03


Make tinc-up and tinc-down files in /etc/tinc/ournet/

tinc-up:
#!/bin/sh
ip tuntap add dev tap0 mode tap
ip link set tap0 up
ip addr add 10.41.XX.XX/16 dev tap0
INSTEAD OF 10.41.XX.XX USE YOUR IP ADDRESS FROM THE DASHBOARD

tinc-down:
#!/bin/sh
ip addr del 10.41.XX.XX/16 dev tap0
ip link set tap0 down
ip tuntap del dev tap0 mode tap
INSTEAD OF 10.41.XX.XX USE YOUR IP ADDRESS FROM THE DASHBOARD

Make them executable:
chmod +x /etc/tinc/ournet/tinc-up
chmod +x /etc/tinc/ournet/tinc-down


Run the tinc:

tincd -n ournet -D &


Make sure the IP address has been assigned to your tap0 interface:
ip a|grep -A4 tap


Should looks like that, where right of "inet" is your IP address:
40: tap0:  mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/ether e2:38:3f:69:e1:b3 brd ff:ff:ff:ff:ff:ff
    inet 10.41.XX.XX/16 scope global tap0
       valid_lft forever preferred_lft forever


If there no IP address, but tincd is running, you can assign it manually:
ip a a 10.41.XX.XX/16 dev tap0
INSTEAD OF 10.41.XX.XX USE YOUR IP ADDRESS FROM THE DASHBOARD

if you want to stop the Tinc, use the following:
killall tincd
or
ps aux |grep tincd
find the process id of tincd and then kill:
kill -9 123456
INSTEAD OF 123456 PUT THE REAL PROCCESS ID FORM THE ps aux |grep tincd COMMAND

You can also setup autostart scripts as you wish or use systemd units to run tinc.

GDPR & Cookies Policy:
We do not use cookies and do not store your personal data other than the email addresses required by the registration. We do not sell or share your data with third-party persons or companies. All the logged IP addresses are obfuscated with the irreversible hash function.

Abuse Policy
We are subject to the laws of the European Union and upon receipt of a complaint, we will be forced to take actions aimed at eliminating the violation, up to and including revoking the network access key.

OurNet.club © 2026 | Contact | Abuse
Web1.0 Hosting