Community discussions

MUM Europe 2020
 
JNK
just joined
Topic Author
Posts: 8
Joined: Tue Feb 10, 2015 5:00 pm

Feature Request: Add non-static DHCP clients to address-list

Sat Mar 14, 2015 10:17 am

Static Leases can be added dynamically to address-lists in the lease-definition. That is a great feature, as this address-list can be used in firewall-rules to block traffic from unassigned IP-addresses.

Dynamic-Leases from the pool cannot be added, it would be nice to have that feature too. Maybe it can be done with the lease-script, but it would be easier if the DHCP server could do this directly.

Best Regards,

Jan
 
santa
newbie
Posts: 43
Joined: Sun Jul 06, 2014 10:53 pm
Location: POLAND, Gdansk

Re: Feature Request: Add non-static DHCP clients to address-list

Mon Mar 16, 2015 4:14 pm

+1 :)

Very good idea, it would be useful.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1840
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Feature Request: Add non-static DHCP clients to address-list

Mon Mar 30, 2015 10:01 pm

Agreed it would be nice but here is how I do it in lease-script.
:if ($leaseBound = "1" ) do={
/ip firewall address-list add address=$leaseActIP list=DHCP
:log info "Lease $leaseActIP added to AList"

} else={
/ip firewall address-list remove numbers=[find where address=$leaseActIP]
:log info "Removing Lease $leaseActIP from AList"
}
C.Brown

cbrown[at]ravenrocknetworks.com
MTCNA - MTCRE - MTCWE - MTCTCE
MTCSE - TRAINER-0179
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 2950
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Feature Request: Add non-static DHCP clients to address-list

Tue Mar 31, 2015 1:01 am

Already exist lease time script on dhcp-server options (ROS 6.27).
IS possible to add the ip to one address-list for the same time of the lease.
I'm Italian, not English. Sorry for my imperfect grammar.

Who is online

Users browsing this forum: Kevo, slv and 153 guests