All pastes #37065 Raw Edit

for TiM0R- xs26

public shellscript v1 · immutable
#37065 ·published 2006-01-17 12:48 UTC
rendered paste body
# Linux#!/bin/sh## XS26 Linux /etc/init.d/xs26 tunnel script# Enables you to easilly start/stop your tunnel## By Tako B. 'ArcAngel' van Gaalen / arcangel@xs26.netPATH=/bin:/usr/bin:/sbin:/usr/sbinTUNLIF="xs26-0" # interface used for the tunnel - default should be okcase "$1" in  start)        echo -n "Starting ipv6 tunnel: xs26"        # Modify following values        #        MYIPv4="217.132.41.148"                # My IPv4 address        XSIPv4="153.19.188.4"                # XS26 PoP           MYIPv6="3ffe:80ee:375b::/48"  # Choose any IPv6 address from the range                                        # you've got from XS26                                        # you've got from XS26        # Additional IP addresses        # Don't forget to uncomment below for each extra IP address        ##       IP0="3ffe:80ee:375b::/48"        IP1="3ffe:80ee:375b::1/48"        IP2="3ffe:80ee:375b::2/48"        IP3="3ffe:80ee:375b::3/48"        IP4="3ffe:80ee:375b::4/48"        # Do NOT modify this!        #        iptunnel add $TUNLIF mode sit local $MYIPv4 remote $XSIPv4 ttl 64        ifconfig $TUNLIF up        route -A inet6 add 2000::/3 dev $TUNLIF        ifconfig $TUNLIF add $MYIPv6        # Add here your additional IP addresses        ##       ifconfig $TUNLIF add $IP0        ifconfig $TUNLIF add $IP1        ifconfig $TUNLIF add $IP2        ifconfig $TUNLIF add $IP3        ifconfig $TUNLIF add $IP4        echo "."        ;;  stop)        echo -n "Stopping ipv6 tunnel: xs26"                ifconfig $TUNLIF down                iptunnel del $TUNLIF                echo "."        ;;  force-reload|restart)        $0 stop        $0 start        ;;  *)        echo "Usage: /etc/init.d/xs26 {start|stop|restart|force-reload}"        exit 1esacexit 0