Community discussions

MikroTik App
 
User avatar
peterd
newbie
Topic Author
Posts: 46
Joined: Mon Nov 05, 2007 1:23 pm

Logging traffic when hotspot enabled issue ..

Thu Mar 10, 2011 5:39 pm

Hi there,

I'm currently working on a best way of logging tcp/udp traffic for hotspot users, and got a small issue, with the firewall rules ..

I can log traffic with those rules no problem, shows all the connections with "new" state:
 0   chain=forward action=log connection-state=new protocol=tcp src-address=192.168.1.0/24 log-prefix="" 

 1   chain=forward action=log connection-state=new protocol=udp src-address=192.168.1.0/24 log-prefix="" 
and getting something like that:
Image

It logs all the connections that the user is making.

after enabling the hotspot, and the filter table looking like this:

Image

Only sporadic traffic seems to be hitting the log rules, I have tried with other chains, but to no avail ..

Could anyone possibly point where I'm going wrong, thanks.

P.S.

mt setup:

net->ether1->bridge(ether ports)->hotspot user

PJD
 
User avatar
peterd
newbie
Topic Author
Posts: 46
Joined: Mon Nov 05, 2007 1:23 pm

Re: Logging traffic when hotspot enabled issue ..

Thu Mar 10, 2011 6:18 pm

thanks for looking, but found the issue in the meantime, for those interested ..
/ip hotspot user profile set default transparent-proxy=no
that solved the missing hotspot traffic issue ..

regards
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Logging traffic when hotspot enabled issue ..

Thu Mar 10, 2011 6:19 pm

Log in the prerouting chain, instead of in the forward chain.

Hotspots redirect traffic to themselves in destination NAT, between prerouting and forward/input. Therefore the traffic never makes it to the forward chain.

Or, as you posted, turn off the proxy.