Community discussions

MikroTik App
 
Montana
Member Candidate
Member Candidate
Topic Author
Posts: 196
Joined: Tue Jun 29, 2004 6:24 am
Location: Moscow Idaho

How to stop customers from changing IP addresses?

Tue Jul 24, 2007 7:38 am

I have a static IP assignment for each customer on our network. I find that on occasion by accident or on purpose the customer's change their IP address. Is there a way to lock in that IP address and the mac so that if the customer makes changes to something else that it would not work? Also if I only had 20 customers on the /24 network is there a way to block the unused IP addresses or send the offenders to a warning page it they are out of the IP range that they were assigned.
Thanks
 
User avatar
balimore
Forum Veteran
Forum Veteran
Posts: 884
Joined: Mon Apr 10, 2006 3:38 am

Re: How to stop customers from changing IP addresses?

Tue Jul 24, 2007 7:50 am

----
yes,
add your client ip's and mac's address on '/ip arp' submenu than set your interface arp=reply-only

regards
Hasbullah.com
----
I have a static IP assignment for each customer on our network. I find that on occasion by accident or on purpose the customer's change their IP address. Is there a way to lock in that IP address and the mac so that if the customer makes changes to something else that it would not work? Also if I only had 20 customers on the /24 network is there a way to block the unused IP addresses or send the offenders to a warning page it they are out of the IP range that they were assigned.
Thanks
 
plcoomer
newbie
Posts: 38
Joined: Fri Nov 18, 2005 3:41 pm
Location: Fort Worth, Texas, USA
Contact:

Re: How to stop customers from changing IP addresses?

Wed Jul 25, 2007 12:04 am

There's another way also... first only SOME customers are capable of doing it. I would attack only those who have shown the ability to hop IP's.

In the fire wall create a new rule for the IP hopper Go to the advanced tab and input their MAC address. Then go to Action tab and "Jump" to "Customer Name"

Now go to the
"Customer Name" chain you just created and creat 2 rules.
1. Source address = correct IP address then on the Action Tab Accept.
2. Action Tab Drop.


The result is that the only traffic that will pass is a match of his IP and MAC.
All else is dropped.
 
dapsyra
just joined
Posts: 7
Joined: Thu May 25, 2006 6:23 pm

Re: How to stop customers from changing IP addresses?

Wed Jul 25, 2007 5:58 pm

There is jet another way.

/ ip firewall filter
add chain=forward action=drop src-address=x.x.x.x \
src-mac-address=!yy:yy:yy:yy:yy:yy comment="" disabled=no


/ ip firewall filter
add chain=forward action=drop src-address=!x.x.x.x \
src-mac-address=yy:yy:yy:yy:yy:yy comment="" disabled=no


(Observe the ! before the src-mac-address and src-address values respectively)

This rule will drop his packets once he change his IP or MAC. Note that this rule will breakdown if he change both IP and MAC