Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howtos:network_services:tinc [2014/03/12 14:05 (UTC)]
tonberry spelling
howtos:network_services:tinc [2019/03/25 10:36 (UTC)]
tonberry modified tinc-up and added tinc-down
Line 65: Line 65:
 #!/bin/sh #!/bin/sh
 ip addr add 192.168.1.1/​24 dev vpnNIC ip addr add 192.168.1.1/​24 dev vpnNIC
 +ip route add 192.168.1.0/​24 dev vpnNIC
 ip link set vpnNIC up ip link set vpnNIC up
 +</​file>​
 +
 +  * 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/​24 dev vpnNIC
 +ip addr del 192.168.1.1/​24 dev vpnNIC
 </​file>​ </​file>​
  

In Other Languages
QR Code
QR Code howtos:network_services:tinc (generated for current page)