Community discussions

MikroTik App
 
RedandBlack
just joined
Topic Author
Posts: 1
Joined: Tue Nov 23, 2010 8:50 pm

User redirection and Stop internet services

Tue Nov 23, 2010 9:04 pm

I hope someone will help me! I want to setup my mikrotik router, so after 30 days have gone my pppoe's client to stop his internet and redirect him to my internal web page to remind him to do his payment and the page to stay until he does the payment.

Please show me how to do this!!!! Step by Step.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26376
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: User redirection and Stop internet services

Wed Nov 24, 2010 10:59 am

you don't even need usermanager to do this. all you need is configure transparent proxy:
[admin@MikroTik] > ip proxy set enabled=yes port=8080

[admin@MikroTik] > ip firewall nat print 
Flags: X - disabled, I - invalid, D - dynamic 
 0   ;;; default configuration
     chain=srcnat action=masquerade out-interface=ether1-gateway 

 1   chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-port=80 

and then make two access list rules (in my case they are generic, in your case, you will need a specific IP address there for the non-paying customer:

[admin@MikroTik] > ip proxy access print detail 
Flags: X - disabled 
 0   dst-host=www.mikrotik.com action=allow hits=14 

 1   action=deny redirect-to="www.mikrotik.com" hits=44
The first rule allows access to your error page, the second rule blocks all access and redirects to the specified error page.

Who is online

Users browsing this forum: No registered users and 7 guests