Community discussions

MikroTik App
 
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location: Dhaka
Contact:

daily 4 hours or monthly 120 hours package for client

Tue Jul 21, 2009 9:27 pm

hi
i want to create new package for our client who want to use internet in cheap price.
suppose
1. one package that can use 6 hours within 24 hours but
2. another package that can only use 4hours within from 8AM to 8PM
please help me
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: daily 4 hours or monthly 120 hours package for client

Wed Jul 22, 2009 3:57 pm

 
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location: Dhaka
Contact:

Re: daily 4 hours or monthly 120 hours package for client

Sat Jul 25, 2009 12:44 am

i have done my ppp server and installed user manager in the same server. i can log in from client pc but i can not limit the time usage in a day like 4 hour or 6 hour. i am not sure that my user manager or radious is working. please help me.
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: daily 4 hours or monthly 120 hours package for client

Sat Jul 25, 2009 2:32 am

i can not limit the time usage in a day like 4 hour or 6 hour
Create credits. Assign those credits to users.

Again, i refer you to: http://wiki.mikrotik.com/wiki/User_Manager

Reade the section "Concepts explained" to learn about credits..
 
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location: Dhaka
Contact:

Re: daily 4 hours or monthly 120 hours package for client

Sat Jul 25, 2009 9:40 am

i have done that but there is no change of uses when i use internet from client. i think it is not working or communicating with ppp.
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: daily 4 hours or monthly 120 hours package for client

Sat Jul 25, 2009 7:23 pm

If you can connect as a ppoe client, it's because the database in /ppp secret or the one in usermanager has approved the connection.

If you do not have any information in /ppp secret and you can connect it means your usermanager database is working. If it is working but not accepting credits, it's either not properly configured or it's broken - perhaps a routeros upgrade will fix it.

If you have already specified users under /ppp secret, then that database overrides your usermanager database and your credits assigned will not work. Remove or disable the /ppp secret database to allow usermanager take charge.
 
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location: Dhaka
Contact:

Re: daily 4 hours or monthly 120 hours package for client

Sat Jul 25, 2009 7:29 pm

if i disable the ppp secret then client pc can not connect.
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: daily 4 hours or monthly 120 hours package for client

Sun Jul 26, 2009 12:12 am

That means you have not properly setup user manager.

1. Install user manager
I assume you have done this. Also make sure the user manager package is the same version as routeros that you have installed.
/system package print

2. Create 1st subscriber
/tool user-manager customer> add login="admin" password="password" permissions=owner

3. Add router information
Since user manager and pppoe server are on the same router, ip-address=127.0.0.1 and shared secret must match with secret in step4.
/tool user-manager router> add name="myrouterboard" ip-address=127.0.0.1 shared-secret=123456 customer="admin"

4. Setup pppoe to use radius authentication
Local address=ip address of pppoe server. If you have created an ip pool, then specify such instead. Of course service-name must match in client configuration.
/interface pppoe-server server add interface=pppoeinterface service-name=jwelebd one-session-per-host=yes disabled=no
/ppp aaa set use-radius=yes
/ppp profile set default local-address=x.x.x.x
/radius add service=ppp address=127.0.0.1 secret=123456

5. Add pppoe client information
You may do this using the web interface (http://routeripaddress/userman) or:
/tool user-manager user add username=test password=test subscriber=jwelebd
 
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location: Dhaka
Contact:

Re: daily 4 hours or monthly 120 hours package for client

Sun Jul 26, 2009 10:19 pm

Thanks for your reply. But I found it from another web site and now time limit is working. But I have not fully setup what i need. I will let u know if i have any problem. Thanks again.
 
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location: Dhaka
Contact:

Re: daily 4 hours or monthly 120 hours package for client

Tue Jul 28, 2009 11:12 pm

I want to set my own company logo in the user page where a user can see his usage report.
How can i do it? or I want to keep secrecy of server that my customer can not see it is built with mikrotik or any other os.
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: daily 4 hours or monthly 120 hours package for client

Wed Jul 29, 2009 2:54 am

That privilege is reserved for distributors.
 
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location: Dhaka
Contact:

Re: daily 4 hours or monthly 120 hours package for client

Thu Jul 30, 2009 4:12 pm

i have done that server. but now the problem is that, i have assign 10.0.10.1 for the server and client gets the ip from this network. but when i use any one ip from that range i can use internet without using any username or password. how can i prevent this to use internet within this ip range without username and pass?