Community discussions

MikroTik App
 
antkamidiv
just joined
Topic Author
Posts: 24
Joined: Fri Jun 22, 2012 12:22 pm
Contact:

DHCP firewall block need HELP

Fri Aug 10, 2012 3:16 pm

Hi everyone!!!

I don't understand a mikrotik's firewall behaviour.

I have two rules in the input chain:
1. /ip firewall filter add chain=input protocol=tcp dst-port=8291 action=accept
2. /ip firewall filter add chain=input action=drop

There are no any other rules in firewall.

My PC gets ip address from mikrotik's dhcp server. Why? The second rule blocks everything including udp port 67.
May be I misunderstand something. Could you explain me this behaviour of the firewall?

Thx in advance...
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: DHCP firewall block need HELP

Fri Aug 10, 2012 5:29 pm

That is because DHCP is handled before it ever hits the firewall, so the firewall cannot block it from happening. It can only prevent DHCP from flowing over it. If you only want certain devices to get DHCP leases, change the DHCP pool to "static-only", and manually setup the leases.
 
antkamidiv
just joined
Topic Author
Posts: 24
Joined: Fri Jun 22, 2012 12:22 pm
Contact:

Re: DHCP firewall block need HELP

Fri Aug 10, 2012 5:56 pm

Thank you buddy!!! :D

What about official documents which describe this feature?