Community discussions

MikroTik App
 
moradkarama
newbie
Topic Author
Posts: 26
Joined: Wed Mar 27, 2013 9:27 pm

how i can stop download mp4 in mikrotik

Sat Feb 28, 2015 10:59 pm

helow everyone
i want to stop downloading some extension like mp3,mp4,3gp in my network
i tried all rules in firewall , layer7 , mangle but i can't
please help
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: how i can stop download mp4 in mikrotik

Sat Feb 28, 2015 11:21 pm

For example:
/ip firewall filter
add chain=forward action=drop dst-port=80 protocol=tcp place-before=0 content=".mp4" out-interace=WAN
This will drop all outgoing HTTP requests containing ".mp4". You can fine-tune it to your needs and to consume less router CPU.
 
moradkarama
newbie
Topic Author
Posts: 26
Joined: Wed Mar 27, 2013 9:27 pm

Re: how i can stop download mp4 in mikrotik

Sun Mar 01, 2015 1:59 pm

[admin@MikroTik] > /ip firewall filter
[admin@MikroTik] /ip firewall filter> add chain=forward action=drop dst-port=80 pr
otocol=tcp place-before=0 content=".mp4" out-interace=WAN
expected end of command (line 1 column 86)

this shown , nothing happend
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: how i can stop download mp4 in mikrotik

Sun Mar 01, 2015 10:24 pm

expected end of command (line 1 column 86)
this shown , nothing happend
Replace WAN with name of your WAN interface in parameter out-interace=WAN.
What version of RouterOS you have?
 
moradkarama
newbie
Topic Author
Posts: 26
Joined: Wed Mar 27, 2013 9:27 pm

Re: how i can stop download mp4 in mikrotik

Mon Mar 02, 2015 12:22 pm

5.24
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: how i can stop download mp4 in mikrotik

Mon Mar 02, 2015 8:28 pm

I've tested this with 6.26 and it works as expected.
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: how i can stop download mp4 in mikrotik

Tue Mar 03, 2015 12:33 am

But remember that it only works for HTTP and not HTTPS!
 
InoX
Forum Guru
Forum Guru
Posts: 1966
Joined: Tue Jan 09, 2007 6:44 pm

Re: how i can stop download mp4 in mikrotik

Tue Mar 03, 2015 12:43 am

I think he is stuck at WAN renaming...
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: how i can stop download mp4 in mikrotik

Tue Mar 03, 2015 7:33 pm

I think he is stuck at WAN renaming...
:D

Maybe in 5.24 there is different syntax? He should update.

Who is online

Users browsing this forum: k6ccc and 38 guests