Use $INTERFACE in example tinc-up scripts.
[wiki] / examples / on-firewall.mdwn
index e2cce3f..e645168 100644 (file)
@@ -94,13 +94,13 @@ The network setup is as follows:
 
 >     firewall# cat /etc/tinc/vpn/tinc.conf
 >     Name = office
->     Device = /dev/tun
 >     ConnectTo = branch
+>     Interface = vpn
 >     
 >     firewall# cat /etc/tinc/vpn/tinc-up
 >     #!/bin/sh
 >     
->     ifconfig vpn 10.20.30.1 netmask 255.255.0.0
+>     ifconfig $INTERFACE 10.20.30.1 netmask 255.255.0.0
 >     
 >     firewall# ls /etc/tinc/vpn/hosts
 >     office  branch  employee_smith  employee_jones  ...