User Manager/PPP Example: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 27: | Line 27: | ||
'secret' is equal to User Manager router secret. | 'secret' is equal to User Manager router secret. | ||
'y.y.y.y' is the User Manager router address. | 'y.y.y.y' is the User Manager router address. | ||
* Note, first local | * Note, first local PPP database is consulted, then User Manager database. | ||
=== PPP client configuration === | === PPP client configuration === | ||
Line 34: | Line 34: | ||
/ interface pppoe-client add interface=ether1 user=MikroTik password=MikroTik service-name=MikroTik allow=pap,chap | / interface pppoe-client add interface=ether1 user=MikroTik password=MikroTik service-name=MikroTik allow=pap,chap | ||
== User Manager configuration == | == User Manager configuration == |
Revision as of 09:14, 2 November 2006
Introduction
User Manager might be used as remote authentication, authorization and accounting server for PPP clients Note, only PAP and CHAP authentication methods supported by User Manager now. Let's consider configuration steps for PPP and User Manager routers.
PPP configuration
We consider PPPoE server <-> PPPoE client configuration example, when PPPoE server uses remote User Manager database for PPPoE clients authentication, authorization and accounting. Both PPPoE server and PPPoE client are MikroTik routers, any other PPPoE client might be used instead.
TODO
PPP server configuration
- First, add PPPoE server to the local interface, remember that User Manager server only supports PAP and CHAP authentication methods:
/ interface pppoe-server server add interface=ether1 service-name=MikroTik one-session-per-host=yes disabled=no authentication=chap,pap
- Specify to use User Manager for PPPoE clients:
/ ppp aaa set use-radius=yes
- Set IP address of the PPPoE server, IP address might not be assigned to the interface of PPPoE server. Moreover static IP address is not recommended to use static IP addresses or DHCP on the same interfaces as PPPoE for security reasons. Non-PPPoE clients will not connect to the outer networks.
/ ppp set default local-address=192.168.0.1
- Add radius client to consult User Manager for PPP service.
/ radius add service=ppp address=y.y.y.y secret=123456
'secret' is equal to User Manager router secret. 'y.y.y.y' is the User Manager router address.
- Note, first local PPP database is consulted, then User Manager database.
PPP client configuration
- Add PPPoE client to the interface
/ interface pppoe-client add interface=ether1 user=MikroTik password=MikroTik service-name=MikroTik allow=pap,chap
User Manager configuration
- First, you need to download and install User Manager package;
- Create User Manager subscriber;
/ tool user-manager customer add login="MikroTik" password="qwerty" permissions=owner
- Add PPP server information to router list,
/ tool user-manager router add subscriber=MikroTik ip-address=x.x.x.x shared-secret=123456
'x.x.x.x' is the address of the PPPoE-server router, 'shared-secret' should match on both User Manager and PPPoE-server routers.
- Add PPPoE client information,
/ tool user-manager user add username=demo password=demo subscriber=MikroTik ip-address=192.168.0.2
TODO