net-iptun revision 36e852a172cba914383d7341c988128b2c667fbd
32N/A# The contents of this file are subject to the terms of the 919N/A# Common Development and Distribution License (the "License"). 919N/A# You may not use this file except in compliance with the License. 919N/A# See the License for the specific language governing permissions 919N/A# and limitations under the License. 919N/A# When distributing Covered Code, include this CDDL HEADER in each 919N/A# If applicable, add the following below this CDDL HEADER, with the 919N/A# fields enclosed by brackets "[]" replaced with your own identifying 919N/A# information: Portions Copyright [yyyy] [name of copyright owner] 32N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 32N/A# Use is subject to license terms. 32N/A# This service configures IP tunnel links and IP interfaces over IP 911N/A# addresses being available. 970N/A# WARNING: you may wish to turn OFF forwarding if you haven't already, because 970N/A# of various possible security vulnerabilities when configuring tunnels for 970N/A# Virtual Private Network (VPN) construction. 32N/A# be in either DNS (and DNS is used) or in /etc/hosts, because this file is 1339N/A# executed before NIS is started. 32N/A# 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 }"