[Dnsmasq-discuss] how to set static arp entry according to dhcp request?

richardvoigt at gmail.com richardvoigt at gmail.com
Thu May 27 23:52:22 BST 2010


What happens if dnsmasq receives (a potentially spoofed) DHCP RELEASE
for a host not in its lease table?  Will it call the helper script
with 'del'?

Maybe add some checks to prevent rogue nodes from knocking your
routers and servers out of the ARP table.

On Thu, May 27, 2010 at 5:19 PM, Ferenc Wagner <wferi at niif.hu> wrote:
> Darren Hoo <darren.hoo at gmail.com> writes:
>
>> if [ ${1} = del ] ; then
>>          ${ARP} -d $3
>> fi
>>
>> if [ ${1} = old ] || [ ${1} = add ] ; then
>>          ${ARP} -s $3 $2
>> fi
>
> Why not
>
> case ${1} in
>      del) ${ARP} -d $3;;
>  old|add) ${ARP} -s $3 $2;;
> esac
>
> instead?
> --
> Cheers,
> Feri.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>



More information about the Dnsmasq-discuss mailing list