First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

GUI required? Use on headless Ubuntu Server via SSH?

  • retag add tags

My initial use would be determining what, if anything, is coming in to the server on one of its ethernet interfaces from my Mac on the same LAN subnet. There's a router and a switch between the Mac and the server. I'm trying to set up the server as a web proxy for the Mac.

brec's avatar
18
brec
asked 2022-06-09 21:42:17 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Use tshark, the command line client.

grahamb's avatar
23.8k
grahamb
answered 2022-06-09 21:57:25 +0000
edit flag offensive 0 remove flag delete link

Comments

(If I shouldn't turn this into a "newbie's questions" thread beyond the scope of my original question, please let me know.)

What's the most expedient way to access/read the pcapng files that tshark writes?

brec's avatar brec (2022-06-09 23:24:19 +0000) edit

Got it -- tcpdump

brec's avatar brec (2022-06-09 23:32:55 +0000) edit

tcpdump is also useful but doesn't have some of the filtering capabilities that tshark has. Use whatever's appropriate for you.

To examine the captures, transfer them to another host that can run Wireshark.

grahamb's avatar grahamb (2022-06-10 05:55:33 +0000) edit

I meant tcpdump only for examining the tshark pcapng file output, after Ctrl-C-ing out of tshark.

brec's avatar brec (2022-06-10 11:07:17 +0000) edit

tcpdump dissects much less traffic than tshark, but if it meets your needs it's good enough. Arguably you could also use tcpdump to make the captures.

grahamb's avatar grahamb (2022-06-10 11:42:28 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer