diff options
33 files changed, 0 insertions, 132 deletions
diff --git a/Makefile.am b/Makefile.am index eafd93d..3ab2332 100644 --- a/Makefile.am +++ b/Makefile.am @@ -52,7 +52,6 @@ bin_sudo_users_SCRIPTS = scripts/vyatta-identify-interface.pl bin_sudo_users_SCRIPTS += scripts/vyatta-delete-log-file.sh bin_sudo_users_SCRIPTS += scripts/vyatta-reboot.pl bin_sudo_users_SCRIPTS += scripts/vyatta-poweroff.pl -bin_sudo_users_SCRIPTS += scripts/vyatta-clear-conntrack all-local: ./gen-unpriv-commands.sh diff --git a/scripts/vyatta-clear-conntrack b/scripts/vyatta-clear-conntrack deleted file mode 100644 index 0979e4a..0000000 --- a/scripts/vyatta-clear-conntrack +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh -# -# Module: vyatta-clear-conntrack -# -# **** License **** -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# This code was originally developed by Vyatta, Inc. -# Portions created by Vyatta are Copyright (C) 2006-2009 Vyatta, Inc. -# All Rights Reserved. -# -# Author: Mohit Mehta -# Date: February 2010 -# Description: Script to flush all conntrack entries -# -# **** End License **** -# - -# picked up from install-system script -get_response () { - ldefault=$(echo "$1" | tr [:upper:] [:lower:]) - loptions=$(echo "$2" | tr [:upper:] [:lower:]) - - # get the response from the user - read myresponse - myresponse=$(echo "$myresponse" | tr [:upper:] [:lower:]) - - # Check to see if the user accepts the default - if [ -z "$myresponse" ]; then - echo -n $ldefault - # if we are passing in options to check, make sure response is a valid option - elif [ -n "$loptions" ]; then - for token in $loptions - do - if [ "$token" == "$myresponse" ]; then - echo -n "$myresponse" - return 0 - fi - done - return 1 - else - echo -n "$myresponse" - fi - - return 0 -} - -response='' -while [ -z "$response" ] -do - if [ "$VYATTA_PROCESS_CLIENT" == "gui2_rest" ]; then - response="y" - else - echo -ne "\nThis will clear all currently tracked and expected connections. Continue? (Y/N) [N]: " - response=$(get_response "N" "Y N") - fi - if [ "$response" == "n" ]; then - exit 1 - else - sudo /usr/sbin/conntrack -F >&/dev/null - sudo /usr/sbin/conntrack -F expect >&/dev/null - fi -done diff --git a/templates/reset/conntrack/node.def b/templates/reset/conntrack/node.def deleted file mode 100644 index ba59cff..0000000 --- a/templates/reset/conntrack/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Reset all currently tracked connections -run: sudo /opt/vyatta/bin/sudo-users/vyatta-clear-conntrack diff --git a/templates/reset/ip/arp/address/node.def b/templates/reset/ip/arp/address/node.def deleted file mode 100644 index cf31916..0000000 --- a/templates/reset/ip/arp/address/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset ARP cache for an IPv4 address diff --git a/templates/reset/ip/arp/address/node.tag/node.def b/templates/reset/ip/arp/address/node.tag/node.def deleted file mode 100644 index 8ac537c..0000000 --- a/templates/reset/ip/arp/address/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Reset ARP cache for an IPv4 address -allowed: echo -n '<x.x.x.x>' -run: sudo /sbin/ip neigh flush to "$5" diff --git a/templates/reset/ip/arp/interface/node.def b/templates/reset/ip/arp/interface/node.def deleted file mode 100644 index e6d79a2..0000000 --- a/templates/reset/ip/arp/interface/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset ARP cache for interface diff --git a/templates/reset/ip/arp/interface/node.tag/node.def b/templates/reset/ip/arp/interface/node.tag/node.def deleted file mode 100644 index bee6173..0000000 --- a/templates/reset/ip/arp/interface/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Reset ARP cache for interface -allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all -run: sudo /sbin/ip neigh flush dev "$5" diff --git a/templates/reset/ip/arp/node.def b/templates/reset/ip/arp/node.def deleted file mode 100644 index ebc0a37..0000000 --- a/templates/reset/ip/arp/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset Address Resolution Protocol (ARP) cache diff --git a/templates/reset/ip/node.def b/templates/reset/ip/node.def deleted file mode 100644 index 0f5e0e1..0000000 --- a/templates/reset/ip/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset Internet Protocol (IP) parameters diff --git a/templates/reset/ip/route/cache/node.def b/templates/reset/ip/route/cache/node.def deleted file mode 100644 index b97e0c9..0000000 --- a/templates/reset/ip/route/cache/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Flush the kernel route cache -run: sudo /sbin/ip route flush cache diff --git a/templates/reset/ip/route/cache/node.tag/node.def b/templates/reset/ip/route/cache/node.tag/node.def deleted file mode 100644 index 4af1915..0000000 --- a/templates/reset/ip/route/cache/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Flush the kernel route cache for a given route -allowed: echo -n '<x.x.x.x | x.x.x.x/x>' -run: sudo /sbin/ip route flush cache "$5" diff --git a/templates/reset/ip/route/node.def b/templates/reset/ip/route/node.def deleted file mode 100644 index a4336f1..0000000 --- a/templates/reset/ip/route/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset IP route diff --git a/templates/reset/ipv6/neighbors/address/node.def b/templates/reset/ipv6/neighbors/address/node.def deleted file mode 100644 index e163359..0000000 --- a/templates/reset/ipv6/neighbors/address/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset ND cache for an IPv6 address diff --git a/templates/reset/ipv6/neighbors/address/node.tag/node.def b/templates/reset/ipv6/neighbors/address/node.tag/node.def deleted file mode 100644 index 4aaec8a..0000000 --- a/templates/reset/ipv6/neighbors/address/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Clear ND cache for an IPv6 address -allowed: echo -n '<h:h:h:h:h:h:h:h>' -run: sudo /sbin/ip -f inet6 neigh flush to "$5" diff --git a/templates/reset/ipv6/neighbors/interface/node.def b/templates/reset/ipv6/neighbors/interface/node.def deleted file mode 100644 index c455aa1..0000000 --- a/templates/reset/ipv6/neighbors/interface/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset IPv6 ND cache for interface diff --git a/templates/reset/ipv6/neighbors/interface/node.tag/node.def b/templates/reset/ipv6/neighbors/interface/node.tag/node.def deleted file mode 100644 index 46a89a9..0000000 --- a/templates/reset/ipv6/neighbors/interface/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Reset IPv6 ND cache for interface -allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all -run: sudo /sbin/ip -f inet6 neigh flush dev "$5" diff --git a/templates/reset/ipv6/neighbors/node.def b/templates/reset/ipv6/neighbors/node.def deleted file mode 100644 index 138725d..0000000 --- a/templates/reset/ipv6/neighbors/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset IPv6 Neighbor Discovery (ND) cache diff --git a/templates/reset/ipv6/node.def b/templates/reset/ipv6/node.def deleted file mode 100644 index 5c80950..0000000 --- a/templates/reset/ipv6/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset Internet Protocol version 6 (IPv6) parameters diff --git a/templates/reset/ipv6/route/cache/node.def b/templates/reset/ipv6/route/cache/node.def deleted file mode 100644 index 7dee140..0000000 --- a/templates/reset/ipv6/route/cache/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Flush the kernel IPv6 route cache -run: sudo /sbin/ip -f inet6 route flush cache diff --git a/templates/reset/ipv6/route/cache/node.tag/node.def b/templates/reset/ipv6/route/cache/node.tag/node.def deleted file mode 100644 index af6a3db..0000000 --- a/templates/reset/ipv6/route/cache/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Flush the kernel IPv6 route cache for a given route -allowed: echo -n '<h:h:h:h:h:h:h:h | h:h:h:h:h:h:h:h/x>' -run: sudo /sbin/ip -f inet6 route flush cache "$5" diff --git a/templates/reset/ipv6/route/node.def b/templates/reset/ipv6/route/node.def deleted file mode 100644 index 72c83a8..0000000 --- a/templates/reset/ipv6/route/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset IPv6 route diff --git a/templates/reset/node.def b/templates/reset/node.def deleted file mode 100644 index 1d8c8a9..0000000 --- a/templates/reset/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Reset a service diff --git a/templates/show/ip/groups/node.def b/templates/show/ip/groups/node.def deleted file mode 100644 index 18fa8bc..0000000 --- a/templates/show/ip/groups/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show IP multicast group membership -run: netstat -gn4 diff --git a/templates/show/ip/route/cache/node.def b/templates/show/ip/route/cache/node.def deleted file mode 100644 index 098e724..0000000 --- a/templates/show/ip/route/cache/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show kernel route cache -run: ip -s route list cache diff --git a/templates/show/ip/route/cache/node.tag/node.def b/templates/show/ip/route/cache/node.tag/node.def deleted file mode 100644 index 2cb78d5..0000000 --- a/templates/show/ip/route/cache/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show kernel route cache for a given route -allowed: echo -n '<x.x.x.x | x.x.x.x/x>' -run: ip -s route list cache $5 diff --git a/templates/show/ip/route/forward/node.def b/templates/show/ip/route/forward/node.def deleted file mode 100644 index 8612ba7..0000000 --- a/templates/show/ip/route/forward/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show kernel route table -run: ip route list diff --git a/templates/show/ip/route/forward/node.tag/node.def b/templates/show/ip/route/forward/node.tag/node.def deleted file mode 100644 index e1ba954..0000000 --- a/templates/show/ip/route/forward/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show kernel route table for a given route -allowed: echo -n '<x.x.x.x | x.x.x.x/x>' -run: ip -s route list $5 diff --git a/templates/show/ipv6/groups/node.def b/templates/show/ipv6/groups/node.def deleted file mode 100644 index 80286e9..0000000 --- a/templates/show/ipv6/groups/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show IPv6 multicast group membership -run: netstat -gn6 diff --git a/templates/show/ipv6/neighbors/node.def b/templates/show/ipv6/neighbors/node.def deleted file mode 100644 index 184e8c1..0000000 --- a/templates/show/ipv6/neighbors/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show IPv6 Neighbor Discovery (ND) information -run: /bin/ip -f inet6 neigh list diff --git a/templates/show/ipv6/route/cache/node.def b/templates/show/ipv6/route/cache/node.def deleted file mode 100644 index 45604e8..0000000 --- a/templates/show/ipv6/route/cache/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show kernel IPv6 route cache -run: ip -s -f inet6 route list cache diff --git a/templates/show/ipv6/route/cache/node.tag/node.def b/templates/show/ipv6/route/cache/node.tag/node.def deleted file mode 100644 index 8386f1f..0000000 --- a/templates/show/ipv6/route/cache/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show kernel IPv6 route cache for a given route -allowed: echo -n '<h:h:h:h:h:h:h:h | h:h:h:h:h:h:h:h/x>' -run: ip -s -f inet6 route list cache $5 diff --git a/templates/show/ipv6/route/forward/node.def b/templates/show/ipv6/route/forward/node.def deleted file mode 100644 index cad0bb9..0000000 --- a/templates/show/ipv6/route/forward/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show kernel IPv6 route table -run: ip -f inet6 route list diff --git a/templates/show/ipv6/route/forward/node.tag/node.def b/templates/show/ipv6/route/forward/node.tag/node.def deleted file mode 100644 index e6b92e2..0000000 --- a/templates/show/ipv6/route/forward/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show kernel IPv6 route table for a given route -allowed: echo -n '<h:h:h:h:h:h:h:h | h:h:h:h:h:h:h:h/x>' -run: ip -s -f inet6 route list $5 |