Community discussions

MikroTik App
 
hytanium
Member Candidate
Member Candidate
Topic Author
Posts: 201
Joined: Thu Jan 18, 2007 9:10 pm

Stop all P2P / UDP except port 53

Thu Feb 28, 2008 11:13 pm

In another post I mentioned that I am exeriancing extreme ping times on my RB333 but only on my SR9 cards with 32 clients. All wireless parameters are good but I can't solve this issue. Is there a way for my to block all P2P or UDP traffic except for port 53. Will doing this block messenger too?

I would like to do this on a specific AP for a test only on WLAN2 (Which is the SR9 card). I would like to do this with some sort of QUEUE on the AP itself. The only reason I'm asking is my network expert is at the Poland MUM.

Any help is appreciated. BTW. All my clients run a P2P Queue, but I'm suspecting some sort of an issue with the queues since I mass upgraded my clients and AP to 3.2.

Thanks in advance!
 
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location: Western Cape, South Africa
Contact:

Re: Stop all P2P / UDP except port 53

Sun Jul 06, 2008 6:36 pm

To block ALL P2P:
/ip firewall filter> /ip firewall filter add action=drop p2p=all-p2p chain=forward

To block all udp except port 53:
/ip firewall filter add action=drop protocol=udp port=!53 chain=forward
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Stop all P2P / UDP except port 53

Sat Jul 30, 2016 12:27 pm

My core router is getting 70Mbps UDP traffic. 

Is it bad ?

And I just applied this, 

/ip firewall filter add action=drop protocol=udp port=!53 chain=forward
 
pe1chl
Forum Guru
Forum Guru
Posts: 10221
Joined: Mon Jun 08, 2015 12:09 pm

Re: Stop all P2P / UDP except port 53

Sat Jul 30, 2016 12:54 pm

Yes, very bad!
You are probably being used as a DDoS reflector because of inappropriate firewalling of your internal DNS resolver.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Stop all P2P / UDP except port 53

Sat Jul 30, 2016 1:03 pm

Yes, very bad!
You are probably being used as a DDoS reflector because of inappropriate firewalling of your internal DNS resolver.
But my DNS is only open for my own internal network, means my 5 blocks of /22 , not for outside world. 
 
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location: Western Cape, South Africa
Contact:

Re: Stop all P2P / UDP except port 53

Sun Jul 31, 2016 5:12 am

If your router is enabled for DNS ("Allow remote requests"), your router is vulnerable for DOS attacks from all sides, UNLESS you have a deliberate firewall rule to drop all TCP and UDP pot 53 traffic on your external interface(s).

On all my routers, especially ones exposed to the Internet, I have two firewall,filter rules, one to block UDP:53 and one for TCP:53.

I would go further and advise you block all ports, except ones you really want. You could accomplish this by creating ALLOW rules for all the valid ports, and finally a REJECT ALL INBOUND (NOTE: for the external interface) traffic.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Stop all P2P / UDP except port 53

Sun Jul 31, 2016 5:14 am

If your router is enabled for DNS ("Allow remote requests"), your router is vulnerable for DOS attacks from all sides, UNLESS you have a deliberate firewall rule to drop all TCP and UDP pot 53 traffic on your external interface(s).

On all my routers, especially ones exposed to the Internet, I have two firewall,filter rules, one to block UDP:53 and one for TCP:53.

I would go further and advise you block all ports, except ones you really want. You could accomplish this by creating ALLOW rules for all the valid ports, and finally a REJECT ALL INBOUND (NOTE: for the external interface) traffic.
I did yesterday and almost 100+ tickets started coming in asking for internet blocked, website not working, game not working, IPSEC not working, bla bla.
 
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location: Western Cape, South Africa
Contact:

Re: Stop all P2P / UDP except port 53

Sun Jul 31, 2016 5:17 am

Did you block chain:INPUT and in-interface:<your external interface>? Make sure you don't apply these rules on your internal interfaces.

You're welcome to post your firewall, filter rules so we could have a look
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Stop all P2P / UDP except port 53

Sun Jul 31, 2016 12:15 pm

Did you block chain:INPUT and in-interface:<your external interface>? Make sure you don't apply these rules on your internal interfaces.

You're welcome to post your firewall, filter rules so we could have a look
My network is :
3 upstreams, so 3 border routers > Then 2 core router in VRRP > Then PPPoE routers. 
So where shall it be ?

Who is online

Users browsing this forum: Bing [Bot], jstaw and 38 guests