Community discussions

MikroTik App
 
cheater29
just joined
Topic Author
Posts: 3
Joined: Tue Jan 27, 2015 5:03 am

How to redirect the user after you block the site with Mikrotik firewall filter

Wed Jul 29, 2015 11:14 am

Hi i want to show the user an error message with html. When they enter a website that been block by the admin. For example facebook; if the user try to visit facebook it will direct them to a html page that say *content has been block, please contact your administrator*

The reason i m using firewall filter to block the certain website and instead of using web proxy to block is because i wanted the block to be individual.

So my question is. How to redirect the user after you block the site with Mikrotik Firewall filter. Can it be done ?
 
User avatar
mjz
just joined
Posts: 13
Joined: Mon Jan 05, 2015 11:17 am
Location: Iran
Contact:

Re: How to redirect the user after you block the site with Mikrotik firewall filter

Wed Jul 29, 2015 1:09 pm

hey .
u don't need to use firewall !
you want to block facebook.com . use dst nat and redirect the ip address of website to your HTML page IP .
put a dst nat rule in your nat table . use your subnet target as src add and facebook ip as des add . then go to the action tab and choose dst nat . put your warning page's IP in " to addresses " .

this is working on paper ! try it out and give me your result ...
There's a hunger still unsatisfied ...
Pink Floyd

MTCNA ===> DONE
MTCWE ===> DONE
MTCRE ===> DONE
MTCTCE ===> DONE
MTCUME ===> ------
MTCINE ===> ------
 
janda
just joined
Posts: 1
Joined: Mon Jan 11, 2021 4:42 pm

Re: How to redirect the user after you block the site with Mikrotik firewall filter

Mon Jan 11, 2021 4:45 pm

Hi, is this working?

can i store basic html page under files on microtic?

i just want to inform user, site is blocked, by firewall rule/adress list

Who is online

Users browsing this forum: leosedf, sindy and 247 guests