Community discussions

MikroTik App
 
netboyzin
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Thu Mar 21, 2013 3:42 pm

Marking Unauthenticated traffic in a Hotspot

Sat Jun 21, 2014 10:04 am

Is there any way to distinguish Unauthenticated traffic in a hotspot ?

Abhishek
 
User avatar
Kreacher
Member
Member
Posts: 359
Joined: Wed Sep 25, 2013 3:58 pm
Location: Hogwarts

Re: Marking Unauthenticated traffic in a Hotspot

Sat Jun 21, 2014 11:38 pm

Is there any way to distinguish Unauthenticated traffic in a hotspot ?

Abhishek
Can you please come a little bit more closer or clear about what you are talking?
 
netboyzin
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Thu Mar 21, 2013 3:42 pm

Re: Marking Unauthenticated traffic in a Hotspot

Tue Jun 24, 2014 8:47 am

Hi
Trying to describe it.

I am running a hotspot . The external AAA is supplying Mikrotik-Group Attribute by which I am creating dynamic address-lists on which we are making different treatment in the Hotspot. The basic code is as follows for one Package-

Hotspot User Profile -> BZKGROUP ( Mikrotik-Group Attribute Supplied by the AAA )  -> BZK ( Address List )
/ip firewall mangle 
add chain=prerouting dst-address-list=BZK  action=mark-connection new-connection-mark=BZKNORMALDOWN passthrough=yes 

add chain=prerouting action=mark-packet new-packet-mark=BZK_NORMAL_DOWN connection-mark=BZKNORMALDOWN passthrough=no

add chain=prerouting  src-address-list=BZK action=mark-connection new-connection-mark=BZKNORMALUP passthrough=yes 

add chain=prerouting action=mark-packet new-packet-mark=BZK_NORMAL_UP connection-mark=BZKNORMALUP passthrough=no

/queue type

add kind=pcq pcq-classifier=dst-address pcq-rate=1M 	name=PCQ_BZK_NORMAL_DOWN
add kind=pcq pcq-classifier=src-address pcq-rate=1M 	name=PCQ_BZK_NORMAL_UP

/queue tree
add name=TOTAL_DOWNLOAD parent=ether2 max-limit=1024M
add name=BZK_NORMAL_DOWNLOAD parent=TOTAL_DOWNLOAD packet-mark=BZK_NORMAL_DOWN queue=PCQ_BZK_NORMAL_DOWN

add name=TOTAL_UPLOAD parent=ether1 max-limit=1024M
add name=BZK_NORMAL_UPLOAD parent=TOTAL_UPLOAD packet-mark=BZK_NORMAL_UP queue=PCQ_BZK_NORMAL_UP
There are more or less thirty of these packages.

In my case download traffic is getting perfectly restricted by the above rule, but I could not account for the upload traffic. The traffic shown in the Upload Queue tree is much much less than what is shown in the Interface Upload .
I am not sure if there is any wrong in the above code , that is why I was asking if there is any way to measure unauthenticated traffic in the hotspot , since if authenticated traffic is not Uploading so much traffic maybe there is some chance for the unauthenticated traffic to do the leakage.

Any help is welcome.

Abhishek
 
mo1seev
just joined
Posts: 4
Joined: Fri Nov 13, 2015 4:54 pm

Re: Marking Unauthenticated traffic in a Hotspot

Sat Nov 14, 2015 5:08 pm

Hello! You managed to find a solution to the problem?