ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/VPN/sniper.sh
Revision: 830
Committed: 2006-07-07T03:54:34-07:00 (19 years ago) by douglas
Content type: text/x-sh
File size: 327 byte(s)
Log Message:
...

File Contents

# User Rev Content
1 douglas 830 #!/usr/local/bin/bash
2     # Sniper
3     #
4     # Douglas Thrift
5     #
6     # $Id$
7    
8     for host in `/usr/sbin/arp -a | sed -Ee \
9     's/^.* \(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\) .* permanent published \(proxy only\) .*$/\1/
10     t
11     d'`; do
12     if ! /sbin/ping -c 4 "$host" >/dev/null 2>&1; then
13     /usr/sbin/arp -d "$host" pub >/dev/null 2>&1
14     fi
15     done

Properties

Name Value
svn:executable *
svn:keywords Id