Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
35
rated 0 times [  35] [ 0]  / answers: 1 / hits: 105357  / 2 Years ago, mon, december 6, 2021, 9:27:42

On Ubuntu, how do I get a list of network connections my computer has made in the last few days? Is there a easy way to do this?


More From » networking

 Answers
1

You can't get ended connections unless you were logging them.
To get the current connections:



# sudo netstat -tupn


This will show the current opened source and destination ports with IPs.



To get more details about the contents of the connections, install tcpdump if it's not installed and run:



# sudo tcpdump -X -i eth0 


And you can run that in the background and write the output to a file.


[#32922] Wednesday, December 8, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oleard

Total Points: 344
Total Questions: 105
Total Answers: 113

Location: Bonaire
Member since Tue, Sep 20, 2022
2 Years ago
oleard questions
Mon, Sep 26, 22, 18:21, 2 Years ago
Mon, Nov 1, 21, 21:27, 3 Years ago
Sat, May 7, 22, 20:47, 2 Years ago
Sun, Oct 2, 22, 01:10, 2 Years ago
;