Use $INTERFACE in example tinc-up scripts.
[wiki] / examples / firewall.mdwn
index dee8c5e..2a97952 100644 (file)
@@ -76,13 +76,12 @@ masquerading firewall example.
 
 >     host# cat /etc/tinc/vpn/tinc.conf
 >     Name = atwork
->     Device = /dev/tun
 >     ConnectTo = home
 >     
 >     host# cat /etc/tinc/vpn/tinc-up
 >     #!/bin/sh
 >     
->     ifconfig vpn 192.168.10.20 netmask 255.255.0.0
+>     ifconfig $INTERFACE 192.168.10.20 netmask 255.255.0.0
 >     
 >     host# ls /etc/tinc/vpn/hosts
 >     atwork  home