Community discussions

MikroTik App
 
PTPStudio
newbie
Topic Author
Posts: 25
Joined: Wed Feb 12, 2014 4:56 pm

Redirecting traffic

Wed Feb 12, 2014 5:11 pm

I have RB951G. I need for some local IPs block internet acces with costum browser message. "They are block because do not pay fee or something like that".
How this can be setup in mikrotik 5.26?
 
tania
newbie
Posts: 39
Joined: Fri Feb 07, 2014 10:15 am

Re: Redirecting traffic

Sat Feb 15, 2014 7:33 am

 
PTPStudio
newbie
Topic Author
Posts: 25
Joined: Wed Feb 12, 2014 4:56 pm

Re: Redirecting traffic

Sat Feb 15, 2014 9:01 pm

Can You tell me how to build virtual or webserver within mikrotik to store page to redirect?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Redirecting traffic

Sat Feb 15, 2014 9:28 pm

You don't have a server on your localnet?

You can use the proxy to do what you want, but you need a server and page to redirect your clients to.
 
PTPStudio
newbie
Topic Author
Posts: 25
Joined: Wed Feb 12, 2014 4:56 pm

Re: Redirecting traffic

Sun Feb 16, 2014 8:14 pm

You don't have a server on your localnet?

You can use the proxy to do what you want, but you need a server and page to redirect your clients to.
How to setup redirecting using proxy?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Redirecting traffic

Sun Feb 16, 2014 9:05 pm

It is pretty easy. If the web server is 192.168.0.2 with the "you need to pay" message on a payme.html page, and the client you want to redirect is 192.168.0.8, then after enabling the transparent proxy:
/ip proxy access
add src-address=192.168.0.8 action=deny redirect-to="192.168.0.2/payme.html"
If you need an example of how to set up a transparent proxy, here is the stuff:
http://wiki.mikrotik.com/wiki/Manual:IP ... on_example

Insure you enable the proxy.
/ip proxy
set enabled=yes
BTW, the server does not need to be on the same localnet, or even on your router. It can be on the internet with a public ip and it will redirect ok.
 
PTPStudio
newbie
Topic Author
Posts: 25
Joined: Wed Feb 12, 2014 4:56 pm

Re: Redirecting traffic

Mon Feb 17, 2014 6:03 am

It is pretty easy. If the web server is 192.168.0.2 with the "you need to pay" message on a payme.html page, and the client you want to redirect is 192.168.0.8, then after enabling the transparent proxy:
/ip proxy access
add src-address=192.168.0.8 action=deny redirect-to="192.168.0.2/payme.html"
If you need an example of how to set up a transparent proxy, here is the stuff:
http://wiki.mikrotik.com/wiki/Manual:IP ... on_example

Insure you enable the proxy.
/ip proxy
set enabled=yes
BTW, the server does not need to be on the same localnet, or even on your router. It can be on the internet with a public ip and it will redirect ok.
OK great Thnks

Who is online

Users browsing this forum: No registered users and 87 guests