> Is there some trick/utility for figuring out which process is
> attached to a Listen on Linux?
don't think it comes by default with any distribution, so you'll have
to install it.
BSD has fstat.
BSD has fstat.
Bernie Cosell Fantasy Farm Fibers
--> Too many people, too few sheep <--
Give fuser a shot, eg. "fuser -vn tcp 80". Fuser tends to be moreQuote:> Is there some trick/utility for figuring out which process is
> attached to a Listen on Linux? In older days you could do a fair
> bit of poking around within the kernel structures [now accessed by
> things like /proc these days, yes?] but I'm not sure how to tie a
> listen on a port to which process will be woken-up when a request
> comes in.
-- Nic B. -- email "sky" at "wibble dot net" --
-- UN*X Programmer, IHUG (NZ) Ltd. ------------
-- #include <stddisclaimer.h> -----------------
: > Is there some trick/utility for figuring out which process is
: > attached to a Listen on Linux?
: In Linux it's probably the easiest to use lsof. Unfortunately, I
: don't think it comes by default with any distribution, so you'll have
: to install it.
: BSD has fstat.
"socklist" - part of the procinfo suite on a modern Linux installation.
The information you want is scattered around in the /proc filesystem,
socklist only cross-indexes it nicely.
Here's my network setup. DSL to router, router to linux box running
RH 7, serving as firewall. Mixed windows and linux network behind the
firewall. firewall is ipchains.
Late this afternoon, for no apparent reason, machines behind the
firewall can't access the web. I can ping the internet and I can run
a windows news client behind the firewall with no problem. Only thing
not going through seems to be www.
Here's where it's weird. There is one web site I can reach from
behind the firewall. Charles Schwab. I don't know if this is because
it's a "secure" site or not.
I'm not a network guru and I don't have a clue where to start. I run
tcpdump on the firewall and it looks like www traffic is not going
through because of some error in routing. I see messages about udp
error host or port unreachable, tos 0xc0.
Web access has been fine for months and this just started on it's own
late in the afternoon. I can get other traffic past the firewall, not
web traffic, except the schwab site as mentioned. Any suggestions on
how to troubleshoot this problem would really be appreciated.