Community discussions

MikroTik App
 
shrek777
Member Candidate
Member Candidate
Topic Author
Posts: 264
Joined: Wed Jan 21, 2009 9:44 am

Mark non authorized user pppoe URGENT

Fri Feb 12, 2010 9:53 am

Hello
I want to mark non authorized users in pppoe, because i want to redirect them to web page where they can read that they need to pay to get to the internet.

If user have balance he can access internet if not i want to redirect him to webpage.

I am using mikrotik usermanager L6 4.5.
I have public IP for all users.

Please help me to figureout this

Thank you
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Mark non authorized user pppoe URGENT

Fri Feb 12, 2010 5:43 pm

Enable the web proxy. Add an access rule that denies all access with a redirect action pointing to your announcement page. Use the dst-nat chain to redirect the unauthorized clients to the proxy, make sure you exclude traffic going to the announcement page from being redirected that way.
 
shrek777
Member Candidate
Member Candidate
Topic Author
Posts: 264
Joined: Wed Jan 21, 2009 9:44 am

Re: Mark non authorized user pppoe URGENT

Fri Feb 12, 2010 7:08 pm

Hello
Thank you for helping, how i can do this ----> redirect the unauthorized clients to the proxy??

Thank you
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Mark non authorized user pppoe URGENT

Fri Feb 12, 2010 7:27 pm

Look up the transparent proxy examples on the wiki.
 
shrek777
Member Candidate
Member Candidate
Topic Author
Posts: 264
Joined: Wed Jan 21, 2009 9:44 am

Re: Mark non authorized user pppoe URGENT

Fri Feb 12, 2010 9:37 pm

I know how to redirect, but i want to know how i can choose authorized and non authorized, this is my problem
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Mark non authorized user pppoe URGENT

Fri Feb 12, 2010 9:45 pm

Assign unauthorized clients addresses in a predictable range, or put them on an address-list.
 
shrek777
Member Candidate
Member Candidate
Topic Author
Posts: 264
Joined: Wed Jan 21, 2009 9:44 am

Re: Mark non authorized user pppoe URGENT

Sat Feb 13, 2010 8:00 am

But when client is unauthorized in pppoe he doesnot have ip, yes? how i can make access list if clients dont have ip address
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Mark non authorized user pppoe URGENT

Sat Feb 13, 2010 8:23 am

You can't redirect a client if he doesn't have an IP address yet. How is the web server going to talk to the client without an IP address on the client to talk to?
 
shrek777
Member Candidate
Member Candidate
Topic Author
Posts: 264
Joined: Wed Jan 21, 2009 9:44 am

Re: Mark non authorized user pppoe URGENT

Sun Feb 14, 2010 9:01 am

But how i can give pppoe user ip if he doesnot authorized yet?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Mark non authorized user pppoe URGENT

Sun Feb 14, 2010 6:11 pm

If 'not authorized' means that their credentials will not work and they can't log in then you cannot, and you cannot redirect them to any web page as a result.

Other people leave the credentials of users without payment intact but redirect to a web page as described above and block all other traffic.

Who is online

Users browsing this forum: Ahrefs [Bot], anav, Bing [Bot], bschapendonk, Google [Bot], Network5, Philippe57, qatar2022, satepson and 108 guests