Community discussions

MikroTik App
 
InfoSolTech
just joined
Topic Author
Posts: 17
Joined: Thu Aug 06, 2009 6:31 am

Firewall Filter

Wed Mar 09, 2011 10:54 pm

Hi there,
please help me with Firewall filtering in which i can bound a specific ip with specific mac only..
If anyone of them changes, the connection is rejected.

like i want to allow 192.168.4.39 with 00:1A:5D:60:71:93 MAC only, so if any other mac tries to use this ip OR the mac tries to use other ip..their connection is blocked...


Thank you very much. Hope i get the answer soon
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Firewall Filter

Wed Mar 09, 2011 11:06 pm

You can specify the Source MAC address in a filter rule that will accept that IP and MAC combination and then another rule that will drop everything else. If you want that for each IP, that will be a lot of rules to make though.

What exactly is it you are trying to accomplish with that rule? With what you are asking, I believe you are just making more work for yourself. You are not really adding any security to anything and it really doesn't give you any extra functionality that I can see.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Firewall Filter

Thu Mar 10, 2011 1:09 am

just use arp=reply-only on the interface, and create static ARP entries
 
InfoSolTech
just joined
Topic Author
Posts: 17
Joined: Thu Aug 06, 2009 6:31 am

Re: Firewall Filter

Thu Mar 10, 2011 6:58 am

Yes I dont ve any problem to make entry again every user.

Please send me the Code which allow specific ip to be used by a specific mac only.. and if any1 of them changed, internet stops working.


And except the entries, other requests are also blocked.

I need it urgently..

Would be great full to you..
 
InfoSolTech
just joined
Topic Author
Posts: 17
Joined: Thu Aug 06, 2009 6:31 am

Re: Firewall Filter

Thu Mar 10, 2011 8:16 am

OR ... my requirement can be fulfilled by setting speeds limits on MAC address. What ever IP they use i dont ve any problem.
As my users start changing their IP addresses to get out of the limitations.

Secondly.. all the entries made in firewall should be allowed to use the service while all other unknown addresses are blocked.


Thanks
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Firewall Filter

Thu Mar 10, 2011 8:10 pm

so what's with ARP mode? why don't you like it?
 
InfoSolTech
just joined
Topic Author
Posts: 17
Joined: Thu Aug 06, 2009 6:31 am

Re: Firewall Filter

Thu Mar 10, 2011 8:23 pm

hmm .. i dont ve any problem to use that.. please tell me how i work for that.. ?

secondly ... unknown ip's should be blocked... which are not listen in dhcp or firewall.. wht to do for them..
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Firewall Filter

Fri Mar 11, 2011 2:05 am

if you use static ARP table (reply-only), then the only entries working will be static entries (plus DHCP addresses, if you check 'Add ARP for Leases' in DHCP Server)

so make your ARP entries static and then set ARP to 'reply-only' for your LAN interface
 
usmany
Member Candidate
Member Candidate
Posts: 144
Joined: Sun Dec 20, 2009 3:20 pm
Location: Nigeria
Contact:

Re: Firewall Filter

Mon Mar 14, 2011 12:12 pm

Hi there,
please help me with Firewall filtering in which i can bound a specific ip with specific mac only..
If anyone of them changes, the connection is rejected.

like i want to allow 192.168.4.39 with 00:1A:5D:60:71:93 MAC only, so if any other mac tries to use this ip OR the mac tries to use other ip..their connection is blocked...


Thank you very much. Hope i get the answer soon
Why not try this:

/ip dhcp-server lease
add address=192.168.4.39 client-id=1:0:1A:5D:60:71:93 comment="" disabled=no \
mac-address=00:1A:5D:60:71:93 server=dhcp1 use-src-mac=yes

I am sure above will assign you ip address to that same mac not to any system anymore