connetctions_to_port
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
connetctions_to_port [2015/08/28 14:06] – luke7858 | connetctions_to_port [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
\\ | \\ | ||
Show static view of connections to port 80: | Show static view of connections to port 80: | ||
+ | \\ | ||
+ | \\ | ||
+ | ==== NEW AWESOME COMMAND ==== | ||
<sxh bash> | <sxh bash> | ||
- | netstat -plan|grep : | + | netstat -punt | grep ':80.*ESTAB' |
</ | </ | ||
- | \\ | + | Example output: |
<sxh bash> | <sxh bash> | ||
- | netstat -ant | egrep ":80|:443" | + | 6 x.x.x.x |
+ | 5 x.x.x.x Ireland | ||
+ | 2 x.x.x.x | ||
+ | 2 x.x.x.x "South Africa" | ||
+ | 2 x.x.x.x China | ||
+ | 1 x.x.x.x " | ||
+ | 1 x.x.x.x | ||
</ | </ | ||
\\ | \\ | ||
+ | \\ | ||
+ | Second Best command: | ||
<sxh bash> | <sxh bash> | ||
netstat -nap | awk ' | netstat -nap | awk ' | ||
</ | </ | ||
+ | \\ | ||
+ | <sxh bash> | ||
+ | netstat -plan|grep :80|awk {' | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | <sxh bash> | ||
+ | netstat -ant | egrep ": | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
Show a live view of current connections | Show a live view of current connections | ||
<sxh bash> | <sxh bash> | ||
while x=0; do clear; | while x=0; do clear; | ||
</ | </ | ||
- | ==Troubleshooting IP Connections == | + | \\ |
+ | ===Troubleshooting IP Connections | ||
Once you have this output you may want to toubleshoot the location. Is this a ddos? an dos? | Once you have this output you may want to toubleshoot the location. Is this a ddos? an dos? | ||
<sxh bash> | <sxh bash> |
connetctions_to_port.1440770771.txt.gz · Last modified: 2024/05/23 07:26 (external edit)