which pgm is accessing the net?

rikona rikona at sonic.net
Tue Jan 5 19:31:45 UTC 2021


On Tue, 5 Jan 2021 09:27:16 +0000
Hans via ubuntu-users <ubuntu-users at lists.ubuntu.com> wrote:

> And, try: “lsof -i -n -P” to see current open connections (and its
> PID)
> 
> 
> From: "Mike Marchywka"
> <marchywka at hotmail.com<mailto:marchywka at hotmail.com>> Date: Tuesday,
> 5 January 2021 at 09:47:02 To: "Ubuntu user technical support, not
> for general discussions"
> <ubuntu-users at lists.ubuntu.com<mailto:ubuntu-users at lists.ubuntu.com>>
> Subject: Re: which pgm is accessing the net?
> 
> I didn't follow the whole thread but the easiest thing to do is
> see if the alerting software had a pid available or a host/port etc.
> You can find the connections with this,
> 
> netstat -anp

Many thanks to all for the suggestions re how to do this!! They give me
the info to see who's doing what. :-) Next task is to see which IPs
belong to google.

In the meantime I figured out how to get the firewall to block the
entire googlevideo.com domain, but just for the Ubuntu box, not all
the LAN devices. It's also easy to temporarily pause these rules if I do
need to watch a YouTube video. :-) I'm beginning to like the Firewalla
firewall - nice. I'd recommend it to folks interested.

So far, blocking that domain does not seem to have caused any major
problems - just less junk on the screens. I am still interested in
knowing which web sites were causing the problems, now that I have the
info to check that out.

Thanks for the help...

> ________________________________________
> From: ubuntu-users <ubuntu-users-bounces at lists.ubuntu.com> on behalf
> of Mark Widdicombe <markwiddicombe at gmail.com> Sent: Tuesday, January
> 5, 2021 2:28 AM To: Ubuntu user technical support, not for general
> discussions Subject: Re: which pgm is accessing the net?
> 
> 
> Is there a way to find out exactly which pgm is accessing the net,
> preferably with the net address it's using, and giving me the pgm pid?
> If not, what's the best way to figure this out?
> 
> nethogs. Install and run in terminal.
> --




More information about the ubuntu-users mailing list