diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2010-06-03 19:42:45 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2012-01-05 17:31:15 +0000 |
commit | 8ef5ada23888ba41cf9f87e81392eff60c767fd8 (patch) | |
tree | 37148c774aefa5f9c71168e046bd41f24931d830 /contrib | |
parent | 316e2730acfc439c6bb12beb7c286daffb3cac4e (diff) | |
download | dnsmasq-8ef5ada23888ba41cf9f87e81392eff60c767fd8.tar.gz |
import of dnsmasq-2.53.tar.gzv2.53
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Solaris10/README-sparc | 8 | ||||
-rw-r--r-- | contrib/Solaris10/create_package | 2 | ||||
-rw-r--r-- | contrib/static-arp/static-arp | 35 |
3 files changed, 44 insertions, 1 deletions
diff --git a/contrib/Solaris10/README-sparc b/contrib/Solaris10/README-sparc new file mode 100644 index 0000000..327b65c --- /dev/null +++ b/contrib/Solaris10/README-sparc @@ -0,0 +1,8 @@ +Hi Simon, + +I just wanted to let you know that I have built a Solaris .pkg install package of your dnsmasq utility for people to use. Feel free to point them in my direction if you have people who want this sort of thing. + +http://ejesconsulting.wordpress.com/2010/05/12/gnu-dnsmasq-for-opensolaris-sparc/ + +Thanks +-evan diff --git a/contrib/Solaris10/create_package b/contrib/Solaris10/create_package index fd3fc84..acfa2a1 100644 --- a/contrib/Solaris10/create_package +++ b/contrib/Solaris10/create_package @@ -6,7 +6,7 @@ # BIN_DIR="/usr/sbin" CONF_DIR="/etc" -MAN_DIR="/usr/man/man8" +MAN_DIR="/usr/share/man/man8" PACKAGE_NAME="dnsmasq" diff --git a/contrib/static-arp/static-arp b/contrib/static-arp/static-arp new file mode 100644 index 0000000..82115b7 --- /dev/null +++ b/contrib/static-arp/static-arp @@ -0,0 +1,35 @@ +#!/bin/sh + +# Contributed by Darren Hoo <darren.hoo@gmail.com> + +# If you use dnsmasq as DHCP server on a router, you may have +# met with attackers trying ARP Poison Routing (APR) on your +# local area network. This script will setup a 'permanent' entry +# in the router's ARP table upon each DHCP transaction so as to +# make the attacker's efforts less successful. + +# Usage: +# edit /etc/dnsmasq.conf and specify the path of this script +# to dhcp-script, for example: +# dhcp-script=/usr/sbin/static-arp + +# if $1 is add or old, update the static arp table entry. +# if $1 is del, then delete the entry from the table +# if $1 is init which is called by dnsmasq at startup, it's ignored + +ARP=/usr/sbin/arp + +# Arguments. +# $1 is action (add, del, old) +# $2 is MAC +# $3 is address +# $4 is hostname (optional, may be unset) + +if [ ${1} = del ] ; then + ${ARP} -d $3 +fi + +if [ ${1} = old ] || [ ${1} = add ] ; then + ${ARP} -s $3 $2 +fi + |