Community discussions

MikroTik App
 
Riajul74
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

Block all website except skype/massenger using layer 7

Fri Jul 12, 2013 5:47 pm

Hello guys,

i want to block all website access for user but want to give skype/msn or any other messenger access.

i can easily block website using following rule on layer 7


/ip firewall layer7-protocol

add name="BlockAll Website" regexp="^.+(.).*\$"

/ip firewall filter
add action=drop chain=forward comment="blocking rule" disabled=no layer7-protocol="BlockAll Website" src-address-list=BlockedGroup

and giving access for them with following rule

/ip firewall layer7-protocol
add name="Only access" regexp="^.+(yahoo.com|skype.com|teamviewer.com).*\$"

/ip firewall filter
add chain=forward comment="For BlockedGroup" disabled=no layer7-protocol="Only access" src-address-list=BlockedGroup

my this rule working very nice. but problem its being block skype and other massenger. i want to continue this rule but want to give access skype and other massenger. i tried with this rule

/ip firewall filter
add chain=forward comment="port access" dst-port=80,443 protocol=tcp src-address-list=BlockedGroup

but this one making open all website and port.

can anybody please help me about this. its very needed to me please.
 
Riajul74
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

Re: Block all website except skype/massenger using layer 7

Sat Jul 13, 2013 1:40 pm

Hello guys,

i want to block all website access for user but want to give skype/msn or any other messenger access.

i can easily block website using following rule on layer 7


/ip firewall layer7-protocol

add name="BlockAll Website" regexp="^.+(.).*\$"

/ip firewall filter
add action=drop chain=forward comment="blocking rule" disabled=no layer7-protocol="BlockAll Website" src-address-list=BlockedGroup

and giving access for them with following rule

/ip firewall layer7-protocol
add name="Only access" regexp="^.+(yahoo.com|skype.com|teamviewer.com).*\$"

/ip firewall filter
add chain=forward comment="For BlockedGroup" disabled=no layer7-protocol="Only access" src-address-list=BlockedGroup

my this rule working very nice. but problem its being block skype and other massenger. i want to continue this rule but want to give access skype and other massenger. i tried with this rule

/ip firewall filter
add chain=forward comment="port access" dst-port=80,443 protocol=tcp src-address-list=BlockedGroup

but this one making open all website and port.

can anybody please help me about this. its very needed to me please.
none here to help me :(
 
User avatar
dreamrider
newbie
Posts: 26
Joined: Mon Mar 30, 2009 11:13 pm

Re: Block all website except skype/massenger using layer 7

Tue Jul 30, 2013 7:21 am

All what I know is - TeamViewer & Skype we can't block in any way. Such rules do not exist. No sense to make exceptions for those softs.
My question is - how to block one entire country using Layer-7 protocol (IP's list exist)? It's possible?
 
User avatar
Dashka
just joined
Posts: 12
Joined: Fri Apr 06, 2012 6:14 am
Location: Ulaanbaatar

Re: Block all website except skype/massenger using layer 7

Wed Jan 15, 2014 4:48 am

Hello guys,

i want to block all website access for user but want to give skype/msn or any other messenger access.

i can easily block website using following rule on layer 7


/ip firewall layer7-protocol

add name="BlockAll Website" regexp="^.+(.).*\$"

/ip firewall filter
add action=drop chain=forward comment="blocking rule" disabled=no layer7-protocol="BlockAll Website" src-address-list=BlockedGroup

and giving access for them with following rule

/ip firewall layer7-protocol
add name="Only access" regexp="^.+(yahoo.com|skype.com|teamviewer.com).*\$"

/ip firewall filter
add chain=forward comment="For BlockedGroup" disabled=no layer7-protocol="Only access" src-address-list=BlockedGroup

my this rule working very nice. but problem its being block skype and other massenger. i want to continue this rule but want to give access skype and other massenger. i tried with this rule

/ip firewall filter
add chain=forward comment="port access" dst-port=80,443 protocol=tcp src-address-list=BlockedGroup

but this one making open all website and port.

can anybody please help me about this. its very needed to me please.
HI i can't done same as this things..... Is it only access group from filter rule action is accept?
and of course drop rule located below of accept rule right?

Thanks
Dashdorj

Who is online

Users browsing this forum: billybee, net4gyh and 111 guests