Skip to content

[Support] 'src_port' column question #4

Description

@MikhailKasimov

Hello!

  • Reading snippet from README.md:
proto dst_port dst_ip src_ip first_seen last_seen count
TCP 1080 192.165.63.181 222.186.56.107 1446188056 1446188056 1
TCP 1080 192.165.63.181 64.125.239.78 1446191096 1446191096 1
TCP 1081 192.165.63.181 111.248.100.185 1446175412 1446175412 1
TCP 1081 192.165.63.181 111.248.102.150 1446183374 1446183374 1
TCP 1081 192.165.63.181 36.225.254.129 1446170512 1446170512 1
...
...

where proto (e.g. in first entry this is TCP) represents the protocol that has been 
used by initiator coming from src_ip (e.g. in first entry this is 222.186.56.107) 
toward our <dst_ip:dst_port> (e.g. in first entry this is 192.165.63.181:1080) service, 
first_seen represents the time of (that day's first) connection attempt represented
in Unix timestamp format (e.g. in first entry this is 1446188056, 
which stands for Fri, 30 Oct 2015 06:54:16 GMT), last_seen represents (that day's last)
connection attempt (e.g. in first entry it's the same as the first_seen value), 
while the count holds a total number of connection attempts.

have a question: why src_port parameter isn't in use?

For example: I initiate ftp connection onto some ftp server in terminal and then do ls command.

tsusen displays some incoming connection on TCP, which seems not to be related to current ftp session.

ftp_conn

Q: How can I have info about src_port to be displayed in tsusen, like it is displayed in Maltrail app?

  • Here is an informative screenshot in README.md with multiple connections to different ports, e.g. TCP 22 (ssh).

http://i.imgur.com/EOAAWb2.png

Q: Does this list relate to port list:

# Reference: https://sixohthree.com/media/2003/06/26/lock_your_doors/portscan.txt
MISC_PORTS = { 17: "qotd", 53: "dns", 135: "dcom-rpc", 502: "modbus", 623: "ipmi", 1433: "mssql", 1723: "pptp", 1900: "upnp", 3128: "squid", 3389: "rdesktop", 5351: "nat-pmp", 5357: "wsdapi", 5631: "pc-anywhere", 5800: "vnc", 5900: "vnc", 5901: "vnc-1", 5902: "vnc-2", 5903: "vnc-3", 6379: "redis", 7547: "cwmp", 8118: "privoxy", 8338: "maltrail", 8339: "tsusen", 8443: "https-alt", 9200: "wap-wsp", 11211: "memcached", 17185: "vxworks", 27017: "mongo", 53413: "netis" }

from /tsusen/core/settings.py file?

And how can it be managed (e.g. to display ssh connection attempts from Internet only, from local network sources only)?

Thanks!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions