Community discussions

MikroTik App
 
mankomal
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Fri Nov 24, 2006 8:56 am

Hotspot Username based URL log

Thu Mar 28, 2013 11:15 am

hello

I have been trying to search for this and was not able to find any topic so far.
Is it possible to log URL traffic hotspot username based instead of their IP addresses

14:07:16 web-proxy,account 192.168.200.102 GET http://bg2.v4.a.dl.ws.microsoft.com/dl/ ... WTJ8wZA%3d action=allow cache=MISS
14:07:16 web-proxy,account 192.168.200.250 GET http://r6---sn-ci5gup-qxae.c.pack.googl ... direct=yes action=allow cache=MISS
14:07:16 web-proxy,account 192.168.200.216 GET http://crl.microsoft.com/pki/crl/produc ... gnPCA2.crl action=allow cache=MISS

so that these IPs turn into username like xyz, abc etc etc that are listed on Hotspot

thanks in advance
 
mankomal
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Fri Nov 24, 2006 8:56 am

Re: Hotspot Username based URL log

Fri Mar 29, 2013 7:53 am

really want this .. can somebody not help
or is it not possible in MT
 
kraker
Frequent Visitor
Frequent Visitor
Posts: 89
Joined: Thu Aug 02, 2012 9:34 am

Re: Hotspot Username based URL log

Tue Apr 02, 2013 9:50 am

possible.

firstly you should determine the where to save your log file.remote device or same hotspot rb.if same rb you have to upgrade your memory cache like microsd.

if remote: system--logging---actions---remote=== set your remote syslog device ip.(ex. dude in windows)
system--logging---rules=== add new rule here.( add firewall to remote)

than:
ip---firewall ---select protocol--tcp and udp (depends on you normally tcp)--- chain forward----connection state new---action log.

thats it. than you should see the tcp connections in log part ....
 
saostad
just joined
Posts: 1
Joined: Mon May 21, 2012 3:57 pm

Re: Hotspot Username based URL log

Fri Jun 21, 2013 11:22 am

are you do it ?
is this config log visited websites URL with hotspot user name ?
 
jmorganhome
just joined
Posts: 2
Joined: Sun Aug 04, 2013 8:54 pm

Re: Hotspot Username based URL log

Sun Aug 11, 2013 11:32 pm

Hi,

Apology first, as I am a bit new to all this.

I have set up a web proxy on port 80 to 8080 and done the system-logging steps as detailed above.

Now it looks like I am logging all traffic through the proxy, but I am also getting bucketfuls of other stuff.

The traffic I want to see is prefixed GET and the other stuff is prefixed POST.

My LAN IP is 192.168.88.1
My comp is on 192.168.88.252

Logging is set up like this:
Enabled: Y
Topics: web-proxy
! debug
Prefix: wpx
Action: memory

I'm getting a log full of these (2 or 3 every second):
Time: Aug/11/2013 21:33:01
Buffer: Memory
Topics: web-proxy account
Message: wpx: 192.168.88.252 POST http://192.168.88.1/jsproxy action=allow cache=MISS

I simply can't get rid of them, and I only get them from my IP, not from other IPs on the same subnet.

If anyone could point me in the right direction, I'd be very grateful.

Thank you in advance,


John.
 
User avatar
dash
newbie
Posts: 37
Joined: Tue Apr 28, 2015 12:05 pm

Re: Hotspot Username based URL log

Mon Feb 08, 2016 1:32 am

Not sure if you know... Your logging config (Topics: web-proxy ! debug Prefix: wpx) does not log just the traffic marked with the wpx prefix. It will furthermore add this prefix to every log entry...

You could use a log parser script (examples around here in the Forums) to filter for GET and POST and just write those to the syslog server.

While typing this i just noticed that this post is 3 years old. Nevertheless, this were my 2 cents...
 
jmorganhome
just joined
Posts: 2
Joined: Sun Aug 04, 2013 8:54 pm

Re: Hotspot Username based URL log

Fri Feb 19, 2016 2:07 pm

With thanks to Dash for the recent response to my enquiry.

I had actually sourced an alternative solution, but I am now thinking of going back to the Mikrotik option. I will start reading up on your suggestion.

Thank you again.

Who is online

Users browsing this forum: Bing [Bot], holvoetn, mblfone, nescafe2002, ysha and 61 guests