#!/bin/bash #Remember that this configuration file (/etc/tunnel.conf) needs to be #updated on both the tunnel client and tunnel server. Except in bizzare #routing approaches, the client:/etc/tunnel.conf and #server:/etc/tunnel.conf should be identical. case "$1" in test) TunnelServerIP="127.0.0.3" ClientPermanentIP="127.0.0.2" ClientCandidateIFs="dummy" ;; #wls) #A unique short name for this configuration. # TunnelServerIP="1.2.3.4" #The IP of the machine willing to tunnel packets for you. # ClientPermanentIP="1.2.3.6" #The IP on the TunnelServer's network that we'll be stealing. # ClientCandidateIFs="ppp" #A list of interfaces which, if up, the client should tunnel through. # ;; *) echo "Unknown or missing tunnel name \"$1\", exiting." >>/dev/stderr exit 1 ;; esac