Community discussions

MikroTik App
 
amdcool2
just joined
Topic Author
Posts: 2
Joined: Thu Mar 31, 2022 6:03 am

How to disable and enable ip address in IP Binding?

Thu Mar 31, 2022 6:24 am

Hi to All,

I would like to ask on how to make a script in scheduler to disable and enable on specific ip address/mac address with allowed time.
See below :

IP Address/ Mac address = disable from 10pm - 8am
IP Address/ Mac address = enable from 8:01am - 9:59pm.

I appreciate much for any response.

Thank you,
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: How to disable and enable ip address in IP Binding?

Thu Mar 31, 2022 1:26 pm

 
amdcool2
just joined
Topic Author
Posts: 2
Joined: Thu Mar 31, 2022 6:03 am

Re: How to disable and enable ip address in IP Binding?

Thu Mar 31, 2022 4:54 pm

Thank you Sir,

But i need other suggestion.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How to disable and enable ip address in IP Binding?

Thu Mar 31, 2022 8:10 pm

Try to explain better what you want...

For example, you wrote about HotSpot?
 
gotsprings
Forum Guru
Forum Guru
Posts: 2102
Joined: Mon May 14, 2012 9:30 pm

Re: How to disable and enable ip address in IP Binding?

Mon Apr 11, 2022 12:00 am

So you want a client device to have a specific IP address then block it's internet access?

That's easily done with a DHCP reservation and a firewall filter rule that uses the time settings.
 
RickyReyesmatrina
just joined
Posts: 3
Joined: Fri Apr 01, 2022 10:18 am

Re: How to disable and enable ip address in IP Binding?

Wed Apr 13, 2022 2:56 pm

This works less and less as ISP’s have sticky IP’s due to really long DHCP lease times. Remember- devices update DHCP information based on its expiration. so disconnecting for a day does nothing. Lease updates usually halpen once the lease is reaching 90% if its time. (ex: super long ISP lease is 10 weeks, it would take 9 weeks before getting a new (or same) reservation, etc.)

I do not understand why people still suggest 24hr/xx min trick, what is this 10 years ago? Everything is MAC auth’d now. Don’t try MAC spoofing either, in most cases it is useless and MACs that are not authorized wont connect. For example, we do this with VOIP lines at my datacenter.

tl;dr: you need to ride it out because nobody in your ISP has the power to change this and waiting 24hrs / xx mins will do nothing.

As for OPs observations of network that is basic WAN-LAN networking. You can actually change your entire network from 192.168.0.0/16 to 172.16.0.0/16 or 10.0.0.0/8. These are all private LAN ranges.
 
gotsprings
Forum Guru
Forum Guru
Posts: 2102
Joined: Mon May 14, 2012 9:30 pm

Re: How to disable and enable ip address in IP Binding?

Thu Apr 28, 2022 11:44 am

With private Mac address becoming the standard...

You need to start using ACLs or killing entire interfaces.

Who is online

Users browsing this forum: marcelofares and 29 guests