Page 1 of 1
Monitor Users Web activity
Posted: Fri Mar 17, 2017 4:45 pm
by Basharlb
Hello.
I bought my first Mikrotik rb1100 and installed it in a small office. I was wondering how can I monitor all the users Web activity ( in what websites are they visiting, how many times they are visiting a website and for how long etc..). Should I be using the hotspot config .
Also how can I block certain websites for certain users and allow theme for others.
Would appriciate the advise and a step by step guide since I'm new to mikrotik.
Cheers.
Re: Monitor Users Web activity
Posted: Sat Mar 18, 2017 12:12 am
by katit
I just went through this setup myself. If you complete newbie - it might be too much to handle.
But in a nutshell - it is done via Logging capabilities of Mikrotik. And there is 2 ways to approach. And you don't get any kind of "reporting" with stats, etc out of Mikrotik. Mikrotik has all the tools to help you collect data. Visualizing/analyzing/reporting is on you (other software)
1. Reverse proxy. Enable reverse proxy(millions of tutorials) and log data. It will give you all HTTP (unsecured) traffic. You will be able to see exact URLs.
It's nice because you can tell from URL what it is.
It's bad because SSL (HTTPS) will not be there. And more and more sites use HTTPS
2. Forward packets to "Log" on firewall level. This will give you IP from and IP to info. So it's very detailed. ALL activity will be captured.
It's nice because every single packet is captured
It's bad because:
a. You need to lookup IPs. For internal addresses it's easy (I assume you know which PC uses which IP)
b. You need to lookup IPs. For external addresses pretty much impossible. You can use DNS lookups but it will give you s1.amazonses.com instead of
www.someinterestingsite.com. There will be a LOT of IPs.
Re: Monitor Users Web activity
Posted: Mon Mar 20, 2017 1:50 pm
by Jotne
If you do not need the full url, you can logg DNS request, and you then see all site requested.
Re: Monitor Users Web activity
Posted: Wed Sep 26, 2018 12:25 pm
by Thor187
Alright, so how do you go about getting https traffic?
All I want is:
src-address/hotspot username | dst-address/website | timestamp
Re: Monitor Users Web activity
Posted: Mon Feb 11, 2019 10:33 am
by Thor187
Surely there must be a way to track https URLs. not for one moment can I imagine that https URLs are untraceable.
Mac | dst url
That should be possible?
Re: Monitor Users Web activity
Posted: Mon Feb 11, 2019 12:59 pm
by sebastia
Can't be done, unless you play "man-in-the-middle" with wildcard certificate, so that you can decrypt the traffic.
That's because for any request / response flowing over the connection, a ssl socket is setup and used for communication. So all you CAN see is the dns / ip of other side, not the url, not the traffic.
edit: corrected language
Re: Monitor Users Web activity
Posted: Mon Feb 11, 2019 6:57 pm
by Jotne
We do use
https://www.forcepoint.com/ as a man in the middle to examine all urls at our work.
To make this to work all computers need a digital certificate from forcepoint at our PC.
This is not some you can do if you does not have control over the equipment.
Re: Monitor Users Web activity
Posted: Mon Feb 18, 2019 11:46 am
by reinerotto
This you can do yourself, using squid proxy. However, it needs quite some expertise for correct setup.
However: Does forcepoint work with _ALL_ domains ? (facebook, google ...)
Just thinking about pinned certs ...
Re: Monitor Users Web activity
Posted: Fri Aug 30, 2019 6:14 am
by whupper
What about SNI? Don't most clients advertise the hostname via SNI outside of the TLS envelope? It maps to tls-host in Mikrotik, doesn't it? Is there a way to monitor that?
Re: Monitor Users Web activity
Posted: Sun Sep 01, 2019 6:48 am
by reinerotto
Using squid: YES.
I did that for "Parental Control" , for a commercial product.
Re: Monitor Users Web activity
Posted: Sun Sep 01, 2019 8:18 am
by AhmadITmanager
please i am facing a problem of controlling AD users after radius integration between windows server and mikrotikso i need to transfer users to user manager how can i do that please
Re: Monitor Users Web activity
Posted: Sun Sep 01, 2019 8:39 am
by Jotne
However: Does forcepoint work with _ALL_ domains ? (facebook, google ...)
Yes it does.
But there are some domains that are white listed like banking etc.
Also if you try to install an App on your computer that do releay on HTTPS, it will not work without being white listed.
Eks Ultrasurf ++