tincvpn_setup
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tincvpn_setup [2017/05/13 11:02] – neoon | tincvpn_setup [2021/11/25 22:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| **Server 1 & 2** | **Server 1 & 2** | ||
| - | apt-get install tinc | + | apt-get install tinc && |
| - | | + | |
| - | Add myVPN into / | + | Add |
| + | | ||
| + | into / | ||
| ## This file contains all names of the networks to be started on system startup. | ## This file contains all names of the networks to be started on system startup. | ||
| Line 32: | Line 33: | ||
| **Server 1 & 2** | **Server 1 & 2** | ||
| - | mkdir / | + | mkdir / |
| - | | + | |
| | | ||
| **Server 1** | **Server 1** | ||
| Line 52: | Line 52: | ||
| Enter... Enter... | Enter... Enter... | ||
| + | This generates/ | ||
| + | |||
| + | Public Key: / | ||
| + | Private Key: / | ||
| + | |||
| + | **Server 1** | ||
| + | Add into / | ||
| + | #!/bin/sh | ||
| + | ifconfig $INTERFACE 10.0.0.1 netmask 255.255.255.0 | ||
| + | |||
| + | **Server 2** | ||
| + | Add into / | ||
| + | #!/bin/sh | ||
| + | ifconfig $INTERFACE 10.0.0.2 netmask 255.255.255.0 | ||
| + | |||
| + | **Server 1 & 2** | ||
| + | Add into / | ||
| + | #!/bin/sh | ||
| + | ifconfig $INTERFACE down | ||
| + | |||
| + | We need to make the scripts executable | ||
| + | |||
| + | chmod 755 / | ||
| | | ||
| + | **Server 1** We need to copy the Public keys now, you can use tons of methods for that\\ | ||
| + | For Server 1 we need to copy / | ||
| + | **Server 2**\\ | ||
| + | For Server 2 we need to copy / | ||
| + | |||
| + | **Finish**\\ | ||
| + | Since Tinc is in nets.boot you can just reboot your boxes or sudo service tinc start. \\ | ||
| + | |||
| + | For Debian 10 you can use: | ||
| + | systemctl enable tinc@myVPN | ||
| + | systemctl start tinc@myVPN | ||
| + | |||
| + | If you have issues, you can debug if tinc is able to open a connection to the other server with | ||
| + | sudo tincd -n myVPN -D -d3 | ||
| + | | ||
| + | **You need to enable TUN/TAP for OVZ** | ||
tincvpn_setup.1494673360.txt.gz · Last modified: 2021/11/25 22:43 (external edit)
