Questions tagged [netstat]

netstat is a tool for viewing active network connections, listeners and sockets.

netstat is a tool for viewing active network connections, listeners and sockets.

322 questions
0
votes
2 answers

Check number of connections to webserver port 80 AND 443

As the title says how would one check the number of open connections to a webserver on port 80 and 443? I'm currently using this oneliner to get the number of open connections per ipaddress from port 80: netstat -tn 2>/dev/null | grep :80 | …
Baklap4
  • 127
  • 2
  • 13
0
votes
2 answers

Port Scanning Large Sets of Targets

1)How would you check to see if a list of ~10000 IPs if they have port 80 open? 2)How would you go about the same scenario but with a port range? 3)How would you check a list of 10000 IPs to see which of their ports is open?
Mona Jalal
  • 433
  • 2
  • 5
  • 13
0
votes
1 answer

How to find webserver running on server and find why do some web apps respond and some don't?

I didn't configure this server so I don't know what is running or where things are running. The server is some sort of rack server (1U or 2U Dell running in our datacenter) running Centos. So we have webapps running on our server. One is Jenkins…
Classified
  • 163
  • 2
  • 6
0
votes
1 answer

Netcat - socket in time_wait when echoing and piping, but not when invoked directly

I'm testing an application using netcat (nc) and I'm getting very low throughput on network connections. When I ran netstat -tnpo I see numerous TCP sessions in TIME_WAIT. I'm sending data to my application via a bash script as indicated…
AnthonyK
  • 240
  • 2
  • 6
0
votes
2 answers

Matching an IP address to a hostname when both are available but cannot be resolved

I am an administrator on a server that accepts RDP connections. When the client connects I know the client's computer name. Using netstat I can determine which connections have been established for RDP. The ping command and variants only work if I…
Dodzi Dzakuma
  • 169
  • 2
  • 8
0
votes
1 answer

How to Terminate specific TCP sessions without tcpkill

I found lot of TCP connections(listed through netstat) from my Linux server to windows server. I want to kill those sessions without tcpkill cmd how can I ? Please advise ..
poorna
  • 11
  • 1
  • 2
0
votes
0 answers

netstat -r on debian give abnormal output

after looking for stuff with Debian "netstat" and try list stuff with "nestat -r" my main Server out a Long list of unkown Hosts ( mostly hacked IP´s by looking on abuseDB ) here a small example for the Output ( cut ) ild.static.gvt - …
VBnoob
  • 121
  • 1
  • 2
0
votes
0 answers

Monitor outgoing web traffic sources on CentOS

I received a report today that a server I manage (Centos + Apache) is launching a bruteforce attack against wordpress websites: hacked-joomla/brobot The requests sent look like this: x.x.x.x - - [15/Nov/2015:19:37:14 +0100] "POST wp-login.php…
0
votes
2 answers

netstat on unix server shows strange connections

netstat is showing a lot of unknown connections from different strange places. are they just attempt to establish connection? or is my server compromised? I've removed my local addresses from the log below: STREAM CONNECTED 8353 …
user12145
  • 1,115
  • 6
  • 28
  • 47
0
votes
1 answer

SSH Tunnel not working

I have a number of SSH tunnels set up between our company's server (hosts website) and our customer's servers (hosts database). For all sites but one the connection is relatively stable however one site is persistently causing problems. I was…
EamonnMcElroy
  • 31
  • 1
  • 7
0
votes
1 answer

Concurrent connections per IP

I need to make a few changes to a firewall configuration, but before I do I'd like to see the number of concurrent Apache connections per IP. This command produces a nice list: #netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort…
0
votes
2 answers

Print last column containing spaces and special characters

I need a full path/command thats been execued to start a process thats exposed on the network - listens on tcp/udp . I did manage to get all of that using below "one liner": netstat -nlp46|tail -n +3 | while IFS=" " read -r -a line; do…
Pavel K
  • 78
  • 6
0
votes
0 answers

No connection available in pool. netstat RecvQ shows high number

In our servers there is one particular dependency (java jar), which makes a total of 1024 connection to various remote servers (the library works as a service discovery). Intermittently, it is observed that all the connection in the connection pool…
Pratyush
  • 101
  • 3
0
votes
2 answers

Nginx not running with no error message (ubuntu 14.04 lts)

I am trying to start my nginx server. When I type $> /etc/init.d/nginx start, I have a message appearing "Starting nginx: Ok", and then nothing happens. When I type sudo lsof -nP -i | grep LISTEN, I didnt have a message with nginx(port 80) My…
0
votes
1 answer

Simulation of TX/RX Drop

I'm trying to get the "TX/RX Drop" values to increase. I've tried dropping packets using both iperf and iptables but the statistics aren't increasing even when packets are being dropped. Is there a way of getting these values to increase? Thanks.
supmethods
  • 287
  • 4
  • 16