Community discussions

MikroTik App
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 5:49 am

I was checking Comcast website and I see they have blocked all those ports. 
https://customer.xfinity.com/help-and-s ... ked-ports/

Shall, we simply add rule for each port and block them ?
And should it be done at the border or core or PPPoE router ?


add chain=forward protocol=tcp dst-port=0 action=drop
add chain=forward protocol=udpdst-port=68 action=drop


And so on... 

But how to block? I mean, in microtik firewall it doesnt allow to enter range or tcp/udpboth at once. 

[table][tr][td]135-139[/td]
[td]TCP/UDP[/td]
[/tr]
[/table]
 
pe1chl
Forum Guru
Forum Guru
Posts: 10233
Joined: Mon Jun 08, 2015 12:09 pm

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 10:31 am

It is your own decision what ports you block to protect your customer and yourself.
You CAN block port ranges in MikroTik routers, but not protocol ranges.
So you need a separate rule for UDP and TCP each with the range.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 10:34 am

It is your own decision what ports you block to protect your customer and yourself.
You CAN block port ranges in MikroTik routers, but not protocol ranges.
So you need a separate rule for UDP and TCP each with the range.
So so if its 135-139, 
So, create 2 rule each of TCP and UDP for 135, 136,137,138,139
 
Trema
newbie
Posts: 37
Joined: Tue May 20, 2014 10:21 am
Location: The Netherlands

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 11:05 am

Dutch ISP XS4ALL offers its customers customizable firewall settings. Customers can choose the level of protection they want through their support portal. This ranges from Level 0 (all ports open) to Level 4, where all the ports that are susceptible to abuse are blocked (i.e. 25, 53, 136, 137, 139, etc.).
https://www.xs4all.nl/service/diensten/ ... ng-aan.htm (Click at "Actief beveiligde poorten bij XS4ALL" (near the bottom of the page) for a detailed overview.)
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 11:07 am

Dutch ISP XS4ALL offers its customers customizable firewall settings. Customers can choose the level of protection they want through their support portal. This ranges from Level 0 (all ports open) to Level 4, where all the ports that are susceptible to abuse are blocked (i.e. 25, 53, 136, 137, 139, etc.).
https://www.xs4all.nl/service/diensten/ ... ng-aan.htm (Click at "Actief beveiligde poorten bij XS4ALL" (near the bottom of the page) for a detailed overview.)
Blocking port 53 ?
DNS will stop working. 
 
pe1chl
Forum Guru
Forum Guru
Posts: 10233
Joined: Mon Jun 08, 2015 12:09 pm

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 11:09 am

It is your own decision what ports you block to protect your customer and yourself.
You CAN block port ranges in MikroTik routers, but not protocol ranges.
So you need a separate rule for UDP and TCP each with the range.
So so if its 135-139, 
So, create 2 rule each of TCP and UDP for 135, 136,137,138,139
I don't understand what you mean.
You create one rule for UDP for 135-139 (possibly more like 135-139,445) and one rule for TCP with the
same or a different portlist.
 
Trema
newbie
Posts: 37
Joined: Tue May 20, 2014 10:21 am
Location: The Netherlands

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 11:16 am

Dutch ISP XS4ALL offers its customers customizable firewall settings. Customers can choose the level of protection they want through their support portal. This ranges from Level 0 (all ports open) to Level 4, where all the ports that are susceptible to abuse are blocked (i.e. 25, 53, 136, 137, 139, etc.).
https://www.xs4all.nl/service/diensten/ ... ng-aan.htm (Click at "Actief beveiligde poorten bij XS4ALL" (near the bottom of the page) for a detailed overview.)
Blocking port 53 ?
DNS will stop working. 
Of course they allow the use of their own DNS-servers. (This obstructs malware that diverts DNS-requests to DNS-servers operated by the bad guys.)
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 11:17 am

Dutch ISP XS4ALL offers its customers customizable firewall settings. Customers can choose the level of protection they want through their support portal. This ranges from Level 0 (all ports open) to Level 4, where all the ports that are susceptible to abuse are blocked (i.e. 25, 53, 136, 137, 139, etc.).
https://www.xs4all.nl/service/diensten/ ... ng-aan.htm (Click at "Actief beveiligde poorten bij XS4ALL" (near the bottom of the page) for a detailed overview.)
Blocking port 53 ?
DNS will stop working. 
Of course they allow the use of their own DNS-servers. (This obstructs malware that diverts DNS-requests to DNS-servers operated by the bad guys.)
I see, 
so in address list allow they only keep the DNS IP of their DNS server. 
so, everything else is blocked. Means, even if someone tries to put Google DNS, he cannot access internet. 
 
Trema
newbie
Posts: 37
Joined: Tue May 20, 2014 10:21 am
Location: The Netherlands

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 11:23 am

Blocking port 53 ?
DNS will stop working. 
Of course they allow the use of their own DNS-servers. (This obstructs malware that diverts DNS-requests to DNS-servers operated by the bad guys.)
I see, 
so in address list allow they only keep the DNS IP of their DNS server. 
so, everything else is blocked. Means, even if someone tries to put Google DNS, he cannot access internet. 
That is correct. But they leave this choice up to the customer.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 11:30 am

Of course they allow the use of their own DNS-servers. (This obstructs malware that diverts DNS-requests to DNS-servers operated by the bad guys.)
I see, 
so in address list allow they only keep the DNS IP of their DNS server. 
so, everything else is blocked. Means, even if someone tries to put Google DNS, he cannot access internet. 
That is correct. But they leave this choice up to the customer.
Okay, the website is in dutch, no english :(
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2880
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 2:15 pm

Soamz, Trema

PLEASE DO NOT CITE POST UNDER CITED POST !!!

Most of us could follow posts stream without these citations.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 2:29 pm

Okay KISS!
 
R1CH
Forum Guru
Forum Guru
Posts: 1101
Joined: Sun Oct 01, 2006 11:44 pm

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 2:32 pm

Please remember if you block any ports > 1024, you should make sure you do them for inbound connections only. Otherwise if a client picks a local ephemeral port number that happens to match a blocked port, suddenly things stop working.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 2:41 pm

Please remember if you block any ports > 1024, you should make sure you do them for inbound connections only. Otherwise if a client picks a local ephemeral port number that happens to match a blocked port, suddenly things stop working.
Good info. 
Is there a one stop wiki for what ports should be blocked ?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10233
Joined: Mon Jun 08, 2015 12:09 pm

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 3:23 pm

There is no general advice about that because it depends on your intentions.
Do you want to guard your own network, to guard your customer, your ISP's reputation, or all?
Do you want to guard against abusers from the internet, from your customers, or both?
What OS is your typical customer running?
Anyway, the thread started with an existing policy that explains some things.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 3:33 pm

There is no general advice about that because it depends on your intentions.
Do you want to guard your own network, to guard your customer, your ISP's reputation, or all?
Do you want to guard against abusers from the internet, from your customers, or both?
What OS is your typical customer running?
Anyway, the thread started with an existing policy that explains some things.
95% customers on windows, thats the reason of spamming, as mostly use pirated softwares and infected malware. 
 
pe1chl
Forum Guru
Forum Guru
Posts: 10233
Joined: Mon Jun 08, 2015 12:09 pm

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 4:14 pm

Yes but you need to decide what you want to guard against.
You need to be careful.  When you implement measures to prevent your customers
from being infected in a certain way, and this fails (if only due to advances in attacks),
your customers may claim that you have failed in protecting them.
So it may be better to only guard your own network and reputation.
(protection against use of customer as DDOS reflector, against customer doing spamming
resulting in your network being listed on SPAM blocklist, etc)
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 4:16 pm

Yes but you need to decide what you want to guard against.
You need to be careful.  When you implement measures to prevent your customers
from being infected in a certain way, and this fails (if only due to advances in attacks),
your customers may claim that you have failed in protecting them.
So it may be better to only guard your own network and reputation.
(protection against use of customer as DDOS reflector, against customer doing spamming
resulting in your network being listed on SPAM blocklist, etc)
Need to stop doing the social work for the customers and start restricting them. 
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2880
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 4:55 pm

Forum users answering you are doing social work for you. Should we restrict you ? :-)

BTW.... my finger is hurting me as I have to scroll 3 meters of thread as you quote ... quote ... quote ... almost all previuos answers.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: Shall we block all those ports if a ISP ?

Tue Jun 28, 2016 5:00 pm

I mean, I kept port 25 open and got my 2000 IP blocked and now dead :(

Who is online

Users browsing this forum: dinosgb, djvabe, glushkoo, lostb1t and 129 guests