All pastes #34170 Raw Edit

xs26

public shellscript v1 · immutable
#34170 ·published 2005-12-19 11:56 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="84.229.40.240"                # My IPv4 address        XSIPv4="195.28.165.254"                # XS26 PoP   #        XSIPv4="62.65.170.213"                # XS26 PoP           MYIPv6="3ffe:80ee:3728::/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:3728::/48"        IP1="3ffe:80ee:3728::1/48"        IP2="3ffe:80ee:3728::2/48"        IP3="3ffe:80ee:3728::3/48"        IP4="3ffe:80ee:3728::4/48"        IP5="3ffe:80ee:3728::7777:777/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        ifconfig $TUNLIF add $IP5        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