4 ms·
> My home router is preconfigured to allow only 253 connections (lease time 1 day)... Why is your lease time so very, very long? Why not set it to something li
by simoncion 11y ago
> My home router is preconfigured to allow only 253 connections (lease time 1 day)...
Why is your lease time so very, very long? Why not set it to something like 60 or 30 minutes?
IIRC, devices will start renewing their leases long before they get to the expiry period, so it's not as if short leases do anything more than substantially increase what is almost certainly a minuscule amount of traffic on your LAN.
- colanderman 11y agoMy laptops are often asleep for more than 60 minutes at a time. When I open them up, I expect network availability pretty much immediately (I am rather impatient), and (preferably) my SSH sessions intact. If I set my DHCP server's lease time as you suggest, I would often have to wait several seconds for my laptop to reacquire an address after waking up if there was any packet loss in the DHCP handshake, and if I happened to get a different IP, my SSH sessions would die. Seeing as 99.9% of device-hours logged on my router are the same four devices, I have no reason not to have a long lease time (3 days, my router's default). It's not like I'm running a Starbucks.
- simoncion 11y ago> If I set my DHCP server's lease time as you suggest, I would often have to wait several seconds for my laptop to reacquire an address after waking up if there was any packet loss in the DHCP handshake... Odd. My non-systemd machine gets an address long before I'm able to unlock the lock screen... and I'm a fast typer. It's entirely possible that my machine is an outlier, tho. :) > ...and if I happened to get a different IP, my SSH sessions would die. You don't have "static leases" for all of your known devices that live in a range that's not served to unknown devices? Anyway. Here's hoping that I hear from pbhjpbhj. :)
- pbhjpbhj 11y agoAs it happens I only have a max of about 15 devices ever (when friends are over) and AFAICT no one is trying to DDoS my router. Those settings were the default and there doesn't seem any reason for me to change it - my point was that exhausting all the leases should be easy. Of course then power-cycling is easy too, but then exhausting all the leases again would be super-annoying for a neighbour who hadn't got a clue what was going on. I did try with Yersinia but couldn't get it working immediately; perhaps there's protection built in?