Community discussions

MikroTik App
 
suporteitanet
just joined
Topic Author
Posts: 19
Joined: Fri Sep 20, 2013 4:01 pm

Log all connections in Rsyslog

Tue Jun 24, 2014 3:57 pm

Hi,
I need keep the log of all connections make by our customers (we are a ISP) , because the police of my country want is .
At this moment I'm using this below code to catch all connections , but I'm just starting to work with firewall , and I'm not sure if it its the correct way.
Additional informations:

Authentication = hotspot
syslog daemon= Rsyslog

The firewall rule is right? Is correct chain and correct connection type?
:
ip firewall filter add chain=forward connection-state=new action=log 

{
:global prefix;
:foreach i in=[/ip address find] do={:if ([:typeof [:find [/ip address get $i network] "xxx.xxx.xxx.xxx"]]!="nil") do={:set prefix [/ip address get $i address]}};
:tostr prefix;

/sys logging action add name=RSYSLOG target=remote remote=xxx.xxx.xxx.xxx remote-port=514 bsd-syslog=yes syslog-facility=daemon
/sys logging add topics=system,info action=RSYSLOG   prefix=$prefix
/sys logging add topics=warning,system action=RSYSLOG   prefix=$prefix
/sys logging add topics=critical,system action=RSYSLOG   prefix=$prefix
/sys logging add topics=info,interface action=RSYSLOG   prefix=$prefix
/sys logging add topics=warning,interface action=RSYSLOG   prefix=$prefix
/sys logging add topics=hotspot,info action=RSYSLOG   prefix=$prefix
/sys logging add topics=firewall action=RSYSLOG   prefix=$prefix
/sys logging add topics=critical,interface action=RSYSLOG   prefix=$prefix

}


Thanks in advance.
You do not have the required permissions to view the files attached to this post.
 
User avatar
rickfrey
Trainer
Trainer
Posts: 609
Joined: Sun Feb 14, 2010 11:41 pm
Location: Van, Texas
Contact:

Re: Log all connections in Rsyslog

Tue Jun 24, 2014 6:55 pm

Have you looked into Traffic Flow? It is a built in feature that parses that info the to a Traffic Flow collector. There are several pieces of software on the market that you can use to collect the Traffic Flow information and it meets all of the regulations relating to this.
 
suporteitanet
just joined
Topic Author
Posts: 19
Joined: Fri Sep 20, 2013 4:01 pm

Re: Log all connections in Rsyslog

Tue Jun 24, 2014 8:48 pm

Have you looked into Traffic Flow? It is a built in feature that parses that info the to a Traffic Flow collector. There are several pieces of software on the market that you can use to collect the Traffic Flow information and it meets all of the regulations relating to this.

Ntop can collect the Traffic Flow information?
 
suporteitanet
just joined
Topic Author
Posts: 19
Joined: Fri Sep 20, 2013 4:01 pm

Re: Log all connections in Rsyslog

Tue Jun 24, 2014 11:00 pm

http://www.readyradius.com

Can log all Users URL's visited.

You can setup a 24/7 Logging Report. Every URL, every user visits is recorded, date stamped and then a report is created every 24 hours and automatically emailed to you.

Data Logged:
Users Session ID
Mac ID
Log Time ( of URL )
URL Visited
HotSpot
Nas Device

Other URL Configure options are available
 
User avatar
rickfrey
Trainer
Trainer
Posts: 609
Joined: Sun Feb 14, 2010 11:41 pm
Location: Van, Texas
Contact:

Re: Log all connections in Rsyslog

Tue Jun 24, 2014 11:00 pm

Ntop can collect the Traffic Flow information?
I haven't used that one specifically. If you google "Net Flow" you will find several programs that will handle it. Some are free like the one from Solar Winds and some are pretty pricey, but there quite a few to choose from.

Who is online

Users browsing this forum: kormenator and 180 guests