Users to PPPoE and Hotspot

Hello,

How can I make users to login into PPPoe and Hotspot only. All the users are via Usermanager. I mean, is there anyway to allow a user to log into only via PPPoE not in hotspot. And the other user via hotspot not in PPPoE.

You should be able to specify what servcies their username can access. (hotspot, pptp, pppoe, etc)

How to specify services for username.

You are able to specify the services in radius. But the point is what ever you specify for each radius server and you can separate services in the user manager easily.
Radius.png
When you are creating a user you can specify the services by choose the correct profile
UM.png

How can I specify the service via profile. I have assigned different profiles for hotspot and pppoe. But hotspot user can login into pppoe, pppoe users can login into hotspot. And mikrotik doesn’t support the two raduis client with same ip or if you used another ip other than 127.0.0.1, radius server don’t respond.

Hmmmmm… So I will try what you say and hope to find any solution. before I tried for login and PPPoE and it works I think.

I think It’s need to experts comes and take a look on it. :frowning:

I have figured it out..

Add radius clients with two ip address

  1. 127.0.0.1 ----- service - hotspot shared sectet–xxxx (as you like)
  2. Your Mikrotik Router IP (aaa.bbb.ccc.ddd)----- service --ppp shared secret-yyyy (as you like)

Then, login to UM
Go to customers

Create two customers
One for hotspot (eg. hotspotadmin)
One for pppoe (eg. pppadmin)

then go to routers,
Create two routers

  1. Name-Hotspot (or anything you like) ------IP address- 127.0.0.1—shared secret=xxxx (as in the radius client) owner-hotspotadmin
  2. Name-PPPOE(or anything you like) ------IP address- (aaa.bbb.ccc.ddd)—shared secret=xxxx (as in the radius client) owner -pppadmin

Now, create the users…
For ppp users, use the owner-pppadmn
For hotspot users, use the owner-hotspotadmin

Nice job, I will try it.

The field “Name” which identify any “PPP → Profile” and “Hotspot → User Profile” matches de “Group Name” field in Usermanager.

When any usermanager user has this field filled and tries to login via any service (PPPoE or Hotspot in this case) the Mikrotik Box tries to match it with its “Profile Name” for the current service.