tinc -n VPNNAME init master where VPNNAME is the name of the network you want.Note that if you're using powershell, you need to prepend the commands with. Proceed with the instructions for either the server (first node), or clients. Optionally, if you want to set DNS servers - netsh interface ipv4 add dnsserver "tinc" address=DNSSERVER index=1. netsh interface ip set address "tinc" static VPNIP 255.255.255.0 (replace IP here and in the following commands with the ip you want for this device, i.e.netsh interface set interface name = "CREATEDINTERFACE" newname = "tinc" where CREATEDINTERFACE is the name of the interface that was created (i.e.Locate the network adapter that was just created.ģ.1.Note that you need to do all of this in an elevated command prompt (or an elevated powershell). On systemd: systemctl enable Windows machines On systemd: systemctl start To start the daemon on system startup.ĥ.1. ![]() You will probably want to do this while connecting your first client to see if it connects okay. You will need to stop any previously running daemons though ( killall tincd). To start the daemon in debug mode, you can use the following command - sudo tincd -n VPNNAME -D -d3. You obviously want to start the server's daemon first.Ĥ.1. If you want to push your own DNS servers, you'll also need to add echo -n "nameserver DNSSERVER" | /sbin/resolvconf -a "$INTERFACE" to tinc-up (where DNSSERVER is your nameserver's IP address), and /sbin/resolvconf -d "$INTERFACE" to tinc-down. chmod +x /usr/local/etc/tinc/VPNNAME/tinc-down /usr/local/etc/tinc/VPNNAME/tinc-upģ.1.Replace IP with the address you want for this device. Create and copy the following to /usr/local/etc/tinc/VPNNAME/tinc-down.Copy the following to /usr/local/etc/tinc/VPNNAME/tinc-up.(You might not need to do this because it can auto-assign an IP it seems). sudo tinc -n VPNNAME add subnet IP where IP is the IP of this node.sudo tincd -n VPNNAME where VPNNAME is the name of your network.To get an invite URL, see the server section. It will ask you for your publically accessable hostname and will generate an URL that you will need to connect your clients to the network. To add a new client to the network you need to run sudo tinc -n VPNNAME invite CLIENTNAME.sudo tinc -n VPNNAME add subnet IP (replace IP here and in the following commands with the ip you want for this device, i.e.sudo tinc -n VPNNAME init server (replace VPNNAME here and in the following commands with the name you want).Think of this as the first machine that will get your network going. Technically there is no real distinction between the two with tincd. Otherwise, go to the clients section below it. If this is the first machine in the network, go to the "On the server" section. Create and copy the following to net %iĮxecReload=/usr/local/sbin/tincd -n %i -kHUP.Create and copy the following to /lib/systemd/system/rvice.If you use iptables: iptables -I INPUT -p udp -dport 655 -m state -state NEW -j ACCEPT. This is recommended for all the clients, and is required for the server.ġ.2. Now go to the section that corresponds to your platform. Make sure to install install everything it offers. tar -xf -one-top-level -strip-components=1Ģ.2. ![]() Download the latest tinc 1.1 source package ( current: wget -O ) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |