Community discussions

MikroTik App
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

drop all dns request from Internet to my network

Wed Nov 22, 2017 9:02 pm

hello all

my network 82.15.xx.0/24

i have need drop all DNS request from Internet to my network !


that's mean :

Internet ( udp 53 Request ) -----> 82.15.xx.0/24 ---Drop
82.15.xx.0/24 -----> Internet ( udp 53 Request ) ---Allow


thanks
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: drop all dns request from Internet to my network

Thu Nov 23, 2017 9:28 am

You have to drop all unwanted incoming packets from Internet generally.
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: drop all dns request from Internet to my network

Thu Nov 23, 2017 3:11 pm

You have to drop all unwanted incoming packets from Internet generally.
how to detect unwanted incoming packets in firewall ?
are you means : connections state ?
 
tangram
Member Candidate
Member Candidate
Posts: 132
Joined: Wed Nov 16, 2016 9:55 pm

Re: drop all dns request from Internet to my network

Thu Nov 23, 2017 4:41 pm

drop input chain with dst port 53 protocol udp on outside interface.

and the generic approach drop input chain in outside interface not established.
 
User avatar
amt
Long time Member
Long time Member
Posts: 529
Joined: Fri Jan 16, 2015 2:05 pm

Re: drop all dns request from Internet to my network

Thu Nov 23, 2017 4:49 pm

for raw table;
/ip firewall raw
add action=drop chain=prerouting dst-port=53 in-interface=WAN protocol=tcp
add action=drop chain=prerouting dst-port=53 in-interface=WAN protocol=udp
for filter;
/ip firewall filter
add action=reject chain=input comment=DNS dst-port=53 protocol=udp reject-with=icmp-port-unreachable
add action=reject chain=input comment=DNS dst-port=53 protocol=tcp reject-with=icmp-port-unreachable
Or
/ip firewall filter
add action=drop chain=input comment=DNS dst-port=53 protocol=udp
add action=drop chain=input comment=DNS dst-port=53 protocol=tcp
add action=drop chain=foward comment=DNS dst-port=53 protocol=udp
add action=drop chain=foward comment=DNS dst-port=53 protocol=tcp
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: drop all dns request from Internet to my network

Thu Nov 23, 2017 7:15 pm

Dropping port 53 is really insufficient. Get inspiration from documentation:
https://wiki.mikrotik.com/wiki/Manual:I ... c_examples

Who is online

Users browsing this forum: Bing [Bot] and 35 guests