Is it possible to monitor the visited websites with each user or IP using Mikrotik device and Freeradius server

Ammar Qasem picture Ammar Qasem · May 25, 2017 · Viewed 11.6k times · Source

I'm using Mikrotik device to make a Hotspot service and using Freeradius running on Centos server ( running on different server ) for AAA ( Authentication , Authorization and Accounting )

Now, What i need is to log every single website that certain user visited ( monitoring web surfing )

actually, I i don't know if it is possible with Freeradius or using Mikrotik services

Answer

Benoit PHILIPPON picture Benoit PHILIPPON · May 25, 2017

This can be done with a web proxy.
You can use either integrated mikrotik proxy feature by enabling proxy (https://wiki.mikrotik.com/wiki/Manual:IP/Proxy#Transparent_proxy_configuration_example) and log proxy activity (https://wiki.mikrotik.com/wiki/Manual:System/Log#Example:Webproxy_logging).

You can use also proxy program like Squid on your CentOS box to save CPU and storage resources on your Mikrotik router.

Another option, you can also use a program called "conntrack" on your CentOS to, as the name says, keep track of all connections. This can include any connections, not only HTTP requests. Of course, all internet traffic must pass through the CentOS box.