user manager and DHCP

Hi, I have setup everything according to the wiki http://wiki.mikrotik.com/wiki/User_Manager/DHCP_Example

I do receive the lease from user manager but there is no data count in user manager to see each lease’s usage. I want to monitor each user’s internet usage.

Thanx

DHCP is not an accounting tool

Ok, but what do MT mean when they say usermanager with DHCP? What other ways can you suggest to do the accounting of data use of ADSL connection? Also something that doesn’t reset counters when RB750 is reboot.

Thanx

RADIUS does accounting of users. If you need to watch an entire circuit, use a monitoring system (such as The Dude, or any other one).

Exactly! So mine does receive IPs from the userman, but doesn’t do accounting of each ip?

The RADIUS portion of User Manager does accounting, not the DHCP server portion - which isn’t part of User Manager at all, it’s part of the standard RouterOS that User Manager runs on top of.

I agree, but see this topic

Quick start
User Manager and HotSpot
User Manager and PPP servers
User Manager and DHCP
User Manager and Wireless
User Manager and RouterOS user

http://wiki.mikrotik.com/wiki/User_Manager/DHCP_Example

If I understand correctly, by using radius and userman with DHCP you can do accounting per IP? Or why else would you use userman to give out IPs instead of DHCP-server module in MTik?

Let’s phrase it like this.

Why do you feel that you should be doing accounting by IP address when you’re using User Manager, which is going to allow you to do accounting by user account - which is better as the same user account might get different DHCP leases on different days?

You get the same IP, since you add the ip and MAC add to userman and this way each PC gets the same IP everytime.

What other way is there except hotspot to use userman to do accounting?

My setup: 15 pcs on a network with fileserver (non domain) and MTIk 750 gateway with ADSL PPPOE and NAT/firewall. Here in SA we still pay per gig ADSL or bundles. not everyone can afford uncapped yet. This way we can monitor who eats up all the ADSL data per month.

skype name: dlourens - this might be better

Now I understand. You’re not using User Manager for anything but DHCP.

User Manager doesn’t do accounting for DHCP via RADIUS. You can make a feature request, but that’s about.

You could look at “/ip accounting” or “/ip traffic-flow”, both have wiki manuals.

use Hotspot. it’s for accounting

Been there, done that.

The hotspot is the default gateway/NAT/ADSL PPPOE/Firewall.

The thing is, there is a windows 2003 fileserver. The hotspot causes windows 7 to show invalid network maps en then after a retry or two the mapped drive or network fileserver share works!

This causes alot of problems for the users.

add the server to wallet-garden

or disable ‘universal NAT’ if you don’t need it

I have done the walled garden too. I have ip range 192.168.1.0/24 so both the server and router is on the same subnet, I have even added the server to new subnet 192.168.2.0/24 on another port and configured it accordingly, still the same.

  1. Can I disable uni.Nat, and have the users authenticate by IP (transparent auth)?
  2. Will the userman/radius account each ip if I add the specific ip to walled garden?

yes, all traffic is accounted, AFAIR

simply set address-pool=none in your Hotspot and recheck