[Dnsmasq-discuss] Configuration to kick off devices after a certain time

Elrippo elrippo at elrippoisland.net
Mon Jul 28 23:30:18 BST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hy rob0,

thanks for your fast answer!
I hoped not to get one like that :D
I am aware of doing some iptables rules for kicking of a subnet IP for a certain amount of time, but I just didn't want to start with iptables, especially for every IP on that subnet.
I'll give it a try ;)

Thanks again for your help, maybe i'll post a feature request for implementation, so this "lease kick off" hasn't to be done by a webserver like in hotels.

Kind regards,
Elrippo

On 28. Juli 2014 22:52:22 MESZ, /dev/rob0 <rob0 at gmx.co.uk> wrote:
>On Mon, Jul 28, 2014 at 08:45:05PM +0200, Elrippo wrote:
>> I have dnsmasq running on an Ubuntu 12.04 server with Ethernet
>> and wlan (hostapd) networks.
>> I have a wlan network with 3 subnets, where one subnet is used
>> for testing.
>> I would prefer an option where I can define that users, devices
>> are kicked off after 15min for an hour.
>> Is this, or some kind of, option implemented in dnsmasq?
>
>dnsmasq is a DHCP and DNS server.  As a DHCP server, it could give a
>lease valid for only 15 minutes, but no, there's no such feature to
>enforce an hour (nor other specified) penalty time between leases.
>What happens if a client reboots and forgets its lease in that
>interval?  In that case the only thing the server can do is deny a
>lease.  (Again: *if* such a feature existed.)
>
>Conversely, what about a renegade client which keeps the leased
>address beyond the valid period?  The DHCP server has no way to
>reclaim "stolen" leases.
>
>As a DNS server, it could refuse or hijack the client's queries
>during a penalty period, but there too, dnsmasq does not have a
>feature like that.
>
>I think the closest you will get to your goal is by implementing
>something in your firewall.  It won't be trivial to get it right
>there, either.  I would look at -m recent and maybe also -m set to
>begin with.
>--
>  http://rob0.nodns4.us/
>  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
>
>_______________________________________________
>Dnsmasq-discuss mailing list
>Dnsmasq-discuss at lists.thekelleys.org.uk
>http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

- --
We don't bubble you, we don't spoof you ;)
Keep your data encrypted!
Log you soon,
your Admin
elripp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ZTOlug37G70Y6fKSKtgs56QQe8+JF8xcR2go13lCgzgWA+5m+
vRyP7QwH5N3HKxg2KzrVOSH9MNK35lMM8WyiiI3cn6PWjD8/IK1SxXy/xJ7D4LR1
7sXTTCIW3qn2ySekqNDD/vRDdUOX2c1xxxKy/sFjCPbAEbwOvoDTCYaVgNYwiG8I
6sCJaAkksdzAGqlBRWMRV6ArRJCz9KVbRbrNULUSqZGikZ8XKSGGQTAtpXwFqika
/xdBfLqPZT/tDDHOWnBKj1pz9+4yXRReYU5k9V9NkNN/7W6VUrqMukC0dc1d/ItL
orHGfxLsmTt7kmgNWSh+v/WHHNmeiHptV6ZDFF7JM0POGX7bqU7T0f3PTmXcfknA
Pqs2sZ7sgSOtANt11KWHNb27RaCLDueGRHbjIZOy76RfzF/89EKG8f2fxAC9p2Iu
U3CWZuu15Y7l8oO04ErLvIm2Xy/zVogc2H3mofHp0w==
=0ytW
-----END PGP SIGNATURE-----




More information about the Dnsmasq-discuss mailing list