Use $INTERFACE in example tinc-up scripts.
[wiki] / examples / masquerading-firewall.mdwn
index 63377c1..75d6f75 100644 (file)
@@ -72,13 +72,12 @@ The network setup is as follows:
 
 >     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