net-iptun revision 2b24ab6b3865caeede9eeb9db6b83e1d89dcd1ea
# See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # This service configures IP tunnel links and IP interfaces over IP # addresses being available. # WARNING: you may wish to turn OFF forwarding if you haven't already, because # of various possible security vulnerabilities when configuring tunnels for # Virtual Private Network (VPN) construction. # Also, if names are used in the /etc/hostname*.* files, those names have to # be in either DNS (and DNS is used) or in /etc/hosts, because this file is # executed before NIS or NIS+ is started. # get_tunnel_links: print the names of the tunnel links currently configured # plumb_tunnel <intf_name> <net_type> <intf_file> # First, bring up tunnel links # Get the list of IP tunnel interfaces we'll need to configure. These # are comprised of IP interfaces over the tunnels we've just brought # up in the above dladm command, and the implicit tunnels named "ip.*" # that we'll also create for backward compatibility. When we build # the list of implicit tunnels, we have to make sure that they're not # different kinds of links that are simply named "ip.*". # Set 6to4 Relay Router communication support policy and, if # applicable, the destination Relay Router IPv4 address. See # ACCEPT6TO4RELAY and RELAY6TO4ADDR. If ACCEPT6TO4RELAY=NO, the # default value in the kernel will be used. # Take down the IP tunnel links echo "Usage: $0 { start | stop }"