Hi there, I hope someone can assist me.
I am struggling quite a bit getting this operational, I get the following in my error log:
2016/05/30 12:48:35 - Info: Starting up sniffer service
2016/05/30 12:48:35 - Info: Mikrotik user: admin
2016/05/30 12:48:35 - Info: Mikrotik IP: 192.168.1.254
2016/05/30 12:48:35 - Info: Networks specified: 1
2016/05/30 12:48:35 - Info: Monitoring network: 192.168.1.0/255.255.255.0
2016/05/30 12:48:35 - Info: SnifferService Port: 80
2016/05/30 12:48:35 - Info: Service started
2016/05/30 12:48:35 - Error: Cannot get traffic: Connection Closed Gracefully.
2016/05/30 12:48:36 - Error: Cannot get traffic: Connection Closed Gracefully.
2016/05/30 12:48:44 - Error: Cannot get traffic: Connection Closed Gracefully.
2016/05/30 12:48:44 - Error: Cannot get traffic: Connection Closed Gracefully.
2016/05/30 12:48:46 - Error: Cannot get traffic: Socket Error #10054, Connection reset by peer.
2016/05/30 12:48:46 - Error: Cannot get traffic: Socket Error #10054, Connection reset by peer.
2016/05/30 12:48:46 - Error: Cannot get traffic: Connection Closed Gracefully.
2016/05/30 12:48:46 - Error: Cannot get traffic: Connection Closed Gracefully.
2016/05/30 12:48:47 - Info: Service stopped
This is my SnifferService.ini
[Settings]
#Required settings are uncommented
#Defaults are shown
#Capture packets from this network (ignore internal traffic)
#Comma-separated values are accepted. Specify a mask for each network even if they are the same.
Network=192.168.1.0
Mask=255.255.255.0
#Match everything BUT the above (only for special custom situations):
#InverseMatch=0
#Mikrotik Server
Mikrotik=192.168.1.254
MikrotikSSHUser=admin
MikrotikSSHPassword=**
#This is combined with the Mikrotik IP address to create the accounting URL:
AccountingPath=/accounting/ip.cgi
#Alternative service port to listen on
#ServicePort=80
#Convert static DNS names to uppercase
#UppercaseStatic=1
#Trim trailing text from DNS and DHCP names
#DeleteSuffix=.mycompany.com
#Clear values weekly (default) or monthly
#ClearSchedule=weekly
#Specify a different service name (for multiple services on one machine)
#ServiceName=Sniffer
#ServiceDisplayName=Sniffer
My sniffer.ini
[Settings]
#Location of SnifferService
SnifferService=localhost
#This line can be used to specify a file listing the ips (not required if service is configured with SSH)
#IPSource=
http://localhost/ip
#IPSource=c:\temp\ips.txt
#Incoming and outgoing max bandwith (not required, for display purposes only)
#LineCapacityInbit=1000000
#LineCapacityOutbit=512000
and on mikrotik I keep getitng the following :
user admin logged in from 192.168.1.3 via ssh
user admin logged out from 192.168.1.3 via ssh
I have connected to my mikrotik via cmd :
plink 192.168.1.254
saved cached credentials (or something like that)
and have allowed that.
My firewall is turned off same with my AV
If the service is stopped I can not telnet localhost 80
if the service is started i can telnet localhost 80
please let me know if you require any further information,
regards
K