Enjoy Slackware 15.0!
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
howtos:network_services:tinc [2014/03/12 14:05 (UTC)] tonberry spelling |
howtos:network_services:tinc [2022/06/08 12:25 (UTC)] (current) tonberry [Installation] pointed to SlackBuild |
||
---|---|---|---|
Line 17: | Line 17: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | |||
+ | === Compile using SlackBuild === | ||
+ | * Tinc is now apparently maintained as [[https:// | ||
+ | |||
+ | === Compile from source === | ||
* Download sources from http:// | * Download sources from http:// | ||
Line 65: | Line 70: | ||
#!/bin/sh | #!/bin/sh | ||
ip addr add 192.168.1.1/ | ip addr add 192.168.1.1/ | ||
+ | ip route add 192.168.1.0/ | ||
ip link set vpnNIC up | ip link set vpnNIC up | ||
+ | </ | ||
+ | |||
+ | * Create tinc-down script that deconfigures VPN interface when VPN shuts down. Make the file executable too. | ||
+ | |||
+ | <file - tinc-down> | ||
+ | #!/bin/sh | ||
+ | ip link set vpnNIC down | ||
+ | ip route del 192.168.1.0/ | ||
+ | ip addr del 192.168.1.1/ | ||
</ | </ | ||
Line 112: | Line 127: | ||
There are a few differences in Windows configuration. | There are a few differences in Windows configuration. | ||
- | * You still generate initial configuration files, but place them in into where Tinc is installed, which should be something like C:\Program Files\tinc\< | + | * You still generate initial configuration files, but place them into where Tinc is installed, which should be something like C:\Program Files\tinc\< |
* In tinc.conf, omit Interface directive, because Tinc daemon will then automatically select TUN/TAP device and directive may do more harm than good. Especially if Tinc service starts and fails immediately, | * In tinc.conf, omit Interface directive, because Tinc daemon will then automatically select TUN/TAP device and directive may do more harm than good. Especially if Tinc service starts and fails immediately, | ||
Line 138: | Line 153: | ||
===== RC script ===== | ===== RC script ===== | ||
- | Here is some script to start all VPNs on boot. | + | Here is some script to start all VPNs on boot. Note that stop command differs between 1.0 and 1.1 (prerelease) branches; 1.0 calls tinc**d**, 1.1 calls tinc (no d). |
<code bash> | <code bash> |