Community discussions

MikroTik App
 
kamel2k10
just joined
Topic Author
Posts: 14
Joined: Thu Jan 26, 2012 6:36 pm

block certain user from using facebook and open it for other

Wed Feb 01, 2012 7:17 pm

Hello Everybody

I use a RB750GL RouterOS 5v.
I want to block acertain group of users from using facebook olso i want to allow others to use it to>

I used the webproxy to block it but it blocked everyone.
this is what I did

enabled proxy transparent and set the access rule.
/ip proxy access
add dst-host=www.facebook.com action=deny
a friend here sent me this:
make a new access list rule with the src-address of the customer that needs access, then specify the address of the page, and rule 'allow'. the generic rule will block all people, but this one rule will make an exception for specific IP.

I deployed it as here:
Image

the ip I want allow is 3
and I want to block from 192.168.1.20 to 192.168.1.90

please support
Thanks in advance
 
MRMISSY
newbie
Posts: 44
Joined: Sun Mar 07, 2010 3:26 pm

Re: block certain user from using facebook and open it for o

Wed Feb 01, 2012 8:16 pm

try this

create a profile with address-list where the Facebook is blocked then add user to this profile
please follow this

/ip hotspot user profile
add address-list=facebook idle-timeout=none keepalive-timeout=2m name=blocked \
shared-users=1 status-autorefresh=1m transparent-proxy=no

/ip firewall nat
add action=redirect chain=dstnat comment="" disabled=no dst-address-type="" \
protocol=tcp src-address-list=facebook to-ports=9999

/ip proxy
set port=8080,9999

/ip proxy access
add action=deny comment="" disabled=no dst-host=www.facebook.com local-port=9999

here is example user with 22 name and pass added to the profile
/ ip hotspot user add name=22 password=22 profile=blocked
 
kamel2k10
just joined
Topic Author
Posts: 14
Joined: Thu Jan 26, 2012 6:36 pm

Re: block certain user from using facebook and open it for o

Wed Feb 01, 2012 8:54 pm


/ip firewall nat
add action=redirect chain=dstnat comment="" disabled=no dst-address-type="" \
protocol=tcp src-address-list=facebook to-ports=9999
before i say it work or not
where i should find it
dst-address-type="" \

Thanks in advance
 
MRMISSY
newbie
Posts: 44
Joined: Sun Mar 07, 2010 3:26 pm

Re: block certain user from using facebook and open it for o

Thu Feb 02, 2012 2:46 am


/ip firewall nat
add action=redirect chain=dstnat comment="" disabled=no dst-address-type="" \
protocol=tcp src-address-list=facebook to-ports=9999
before i say it work or not
where i should find it
dst-address-type="" \

Thanks in advance
I did not got you
dst-address-type is empty
as simple as that
 
kamel2k10
just joined
Topic Author
Posts: 14
Joined: Thu Jan 26, 2012 6:36 pm

Re: block certain user from using facebook and open it for o

Thu Feb 02, 2012 10:50 am


/ip firewall nat
add action=redirect chain=dstnat comment="" disabled=no dst-address-type="" \
protocol=tcp src-address-list=facebook to-ports=9999
before i say it work or not
where i should find it
dst-address-type="" \

Thanks in advance
I did not got you
dst-address-type is empty
as simple as that
thanks but it did not work too
 
kamel2k10
just joined
Topic Author
Posts: 14
Joined: Thu Jan 26, 2012 6:36 pm

Re: block certain user from using facebook and open it for o

Thu Feb 02, 2012 10:50 am


/ip firewall nat
add action=redirect chain=dstnat comment="" disabled=no dst-address-type="" \
protocol=tcp src-address-list=facebook to-ports=9999
before i say it work or not
where i should find it
dst-address-type="" \

Thanks in advance
I did not got you
dst-address-type is empty
as simple as that
thanks but it did not work too
 
User avatar
arbabnazar
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Tue May 03, 2011 1:37 pm

Re: block certain user from using facebook and open it for o

Thu Feb 02, 2012 7:37 pm

I did it before and i will tell you what i did, may be that will help you!

1. i created a layer-7 protocol rule........(you can find the regex for facebook very easily on the net)
2. then i created the firewall rule to block all the user
3. then i specified that allow those user to access the facebook.


still if you need any help/configuration, just tell me, i will send you all my configuration through mail...
 
kamel2k10
just joined
Topic Author
Posts: 14
Joined: Thu Jan 26, 2012 6:36 pm

Re: block certain user from using facebook and open it for o

Sun Feb 05, 2012 10:45 am

I did it before and i will tell you what i did, may be that will help you!

1. i created a layer-7 protocol rule........(you can find the regex for facebook very easily on the net)
2. then i created the firewall rule to block all the user
3. then i specified that allow those user to access the facebook.


still if you need any help/configuration, just tell me, i will send you all my configuration through mail...
Thanks for your reply

plz I am a kind of beginner so plz if you can detail the firewall rules allow and block.
i created the layer7 protocol
but the firewall rules i failed doing it

thanks again
 
User avatar
arbabnazar
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Tue May 03, 2011 1:37 pm

Re: block certain user from using facebook and open it for o

Sun Feb 05, 2012 11:42 am

no problem, can you tell me your email so that i will send you the complete step by step procedure.

or wait couple of days, i will post here.
 
kamel2k10
just joined
Topic Author
Posts: 14
Joined: Thu Jan 26, 2012 6:36 pm

Re: block certain user from using facebook and open it for o

Sun Feb 05, 2012 11:54 am

no problem, can you tell me your email so that i will send you the complete step by step procedure.

or wait couple of days, i will post here.
sorry I am in a deep prblm coz of it

this is my mails
kamel.pcs@gmail.com
kamel.mohamed@live.com

thanks
 
kamel2k10
just joined
Topic Author
Posts: 14
Joined: Thu Jan 26, 2012 6:36 pm

Re: block certain user from using facebook and open it for o

Sun Feb 05, 2012 4:27 pm

thank you all for help

but i found a way to block for every single ip address not using user

in src address type the ip
and in dst host type the website
and select deny

only the ip you add will be blocked from using the website
 
User avatar
arbabnazar
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Tue May 03, 2011 1:37 pm

Re: block certain user from using facebook and open it for o

Sun Feb 05, 2012 6:42 pm

well done...............

do one more thing, just go to the advance tab of this rule that you created and select the layer7 protocol that you created and play little bit more, meanwhile i will send you the complete configuration.
 
kamel2k10
just joined
Topic Author
Posts: 14
Joined: Thu Jan 26, 2012 6:36 pm

Re: block certain user from using facebook and open it for o

Thu Feb 09, 2012 1:37 pm

waiting for you

thanks for your help
 
kahn
just joined
Posts: 2
Joined: Wed Feb 29, 2012 2:42 pm

Re: block certain user from using facebook and open it for o

Wed Feb 29, 2012 2:45 pm

arbabnazar...thanks for your support dude, can you send it to me also? your guide.

verywellwisher_2000@yahoo.com

TIA
 
kennyolutola
just joined
Posts: 17
Joined: Mon Apr 27, 2009 11:08 am
Location: Nigeria

Re: block certain user from using facebook and open it for o

Thu Mar 22, 2012 5:47 pm

Can someone please forward this complete complete configuration to me too. I have same problem, meanwhile, I am trying what isaw in the thread for now.


kolutola@gmail.com
 
mbruck
just joined
Posts: 6
Joined: Mon Oct 24, 2011 4:47 pm

Re: block certain user from using facebook and open it for o

Tue Mar 27, 2012 3:10 am

Hi !

I'm very interrested for this guide too. arbabnazar, or someone please forward that guide to me:

mladen.bruck@avrbit.com

Thank you !
 
User avatar
arbabnazar
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Tue May 03, 2011 1:37 pm

Re: block certain user from using facebook and open it for o

Tue Mar 27, 2012 10:47 am

sorry for late reply, I will post it on public forum and will share it with all of you.
 
User avatar
arbabnazar
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Tue May 03, 2011 1:37 pm

Re: block certain user from using facebook and open it for o

Wed May 30, 2012 8:02 pm

here is the link for your problem..........sorry for late reply.......

http://rbgeek.wordpress.com/2012/05/29/ ... s-layer-7/
 
Riajul74
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

Re: block certain user from using facebook and open it for o

Thu Feb 21, 2013 12:30 pm

here is the link for your problem..........sorry for late reply.......

http://rbgeek.wordpress.com/2012/05/29/ ... s-layer-7/


Hello,
i came into this tropic when you already solved and you have shown good instruction.

but i am problem with my user. i want to block specific user based. my office have 150 employee. for everyone have hotspot access. any one some time sit on one computer, some time another computer. he log on his hotspot user, and he get access.

so i want some guys facebook access, some not. sorry to say i am not too much expart , so please give me step by step configuration wll be very helpful. my email is
riajul74@hotmail.com
 
gabsbriel
just joined
Posts: 1
Joined: Mon Jan 26, 2015 7:04 pm

Re: block certain user from using facebook and open it for o

Thu Aug 27, 2015 3:01 pm

sorry for late reply, I will post it on public forum and will share it with all of you.

Hi arbab nazar
I tried this solve in RB951UI with Winbox 5.25, it is not working to me , i can block facebook but i can´t allow for some ips. Is it way only working in Winbox 3.30?
 
Prabesh
just joined
Posts: 1
Joined: Sun Dec 29, 2019 8:38 am

Re: block certain user from using facebook and open it for o

Sun Dec 29, 2019 8:42 am

I did it before and i will tell you what i did, may be that will help you!

1. i created a layer-7 protocol rule........(you can find the regex for facebook very easily on the net)
2. then i created the firewall rule to block all the user
3. then i specified that allow those user to access the facebook.


still if you need any help/configuration, just tell me, i will send you all my configuration through mail...
Send me the configuration through mail

Who is online

Users browsing this forum: lurumoney and 18 guests