DHCP Lease Delete Button - $30
-
Seems to be working well on my pf box.ย Much appreciated, thx.
-
will this patch work on 1.2.3
-
will this patch work on 1.2.3
The file I posted is for 1.2.2/1.2.3, yes. However, the code tree for 1.2.3 is restricted from general committing so I could only commit the patch to HEAD. When I get the other issues straightened out I will submit the patches for consideration for 1.2.3. The fix is the same for both branches.
-
i tried it in 1.2.3 and it didn't change anything
-
The choice to delete will only appear for offline leases.
I suppose that could be changed, but that seemed the safest course of action.
-
The choice to delete will only appear for offline leases.
I suppose that could be changed, but that seemed the safest course of action.
Hmm, so if an active IP was deleted, and the user still had the DHCP address, i assume the DHCP server could possibly give out the same address to someone else, creating an IP conflict.
For troubleshooting purposes, it might be nice to be able to delete both, maybe a little note in the gui to explain deleting active leases.
When i can get the 1.2.3 release of this, i'll send over the bounty.
THANKS!
-
Hmm, so if an active IP was deleted, and the user still had the DHCP address, i assume the DHCP server could possibly give out the same address to someone else, creating an IP conflict.
For troubleshooting purposes, it might be nice to be able to delete both, maybe a little note in the gui to explain deleting active leases.
When i can get the 1.2.3 release of this, i'll send over the bounty.
THANKS!
Actually, the DHCP server should test (via ping I believe) if an IP is active before it hands out a lease. I haven't tested it, but I'm not sure what would happen if the host in question blocks ping.
I think there are supposed to be safeguards in place to ensure that it doesn't hand out conflicting IPs, but I'm not sure how robust they are, hence my erring on the side of caution.
Attached is a version of the file that allows deleting active leases, give it a go and see what happens.
This file has not changed between 1.2.2 and 1.2.3, so the same file will work on both.
-
It works great here, though i notice my client will receive the same IP, no matter how many times i delete the lease and do a renew on my client.
I was under the impression that dhcpd saves all DHCP leases given, so if a client leaves and returns a month later, he'll receive the same IP. I don't really mind that, but it would be nice if the delete button would make it, so the client receives another IP the next time he renews, (or the same ip by chance)
-
This would appear to be a complete bounty.ย Has the bounty been paid so I can classify this as a completed bounty?
-
Your Windows client cant speak to other OSs will try and get the last IP that it had.
-Seth
-
@submicron:
This would appear to be a complete bounty.ย Has the bounty been paid so I can classify this as a completed bounty?
We are in the process now,ย should be completed by the end of the day.
-
Your Windows client cant speak to other OSs will try and get the last IP that it had.
-Seth
Ahhh so this is a feature of windows, rather then pfSense.
Thanks,
Adam -
It should be complete now.
As Seth mentioned, a DHCP client can express a preference for an IP. It may not get it, but it can try.
I'm not sure, but you can try to see if forcing an "ifconfig /release *" then "ifconfig /renew *" from the command prompt will make it pull a new IP after deleting the lease.
-
This is completed, please close thread
-
This bounty has been completed and paid.ย Thank you!