Skip to content

Commit 334517c

Browse files
authored
Update 09.md
Clearer, esp. in light of next text - thanks u/grow_ops!
1 parent 2f90df4 commit 334517c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

09.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ First we'll look at a couple of ways of determining what ports are open on your
1313
* `ss` - this, "socket status", is a standard utility - replacing the older `netstat`
1414
* `nmap` - this "port scanner" won't normally be installed by default
1515

16-
There are a wide range of options that can be used with *ss*, but first try: *ss -ltp*
16+
There are a wide range of options that can be used with *ss*, but first try: *ss -ltpn*
1717

1818
The output lines show which ports are open on which interfaces:
1919

2020
sudo ss -ltp
2121
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
22-
LISTEN 0 4096 127.0.0.53%lo:domain 0.0.0.0:* users:(("systemd-resolve",pid=364,fd=13))
23-
LISTEN 0 128 0.0.0.0:ssh 0.0.0.0:* users:(("sshd",pid=625,fd=3))
24-
LISTEN 0 128 [::]:ssh [::]:* users:(("sshd",pid=625,fd=4))
25-
LISTEN 0 511 *:http *:* users:(("apache2",pid=106630,fd=4),("apache2",pid=106629,fd=4),("apache2",pid=106627,fd=4))
22+
LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=364,fd=13))
23+
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=625,fd=3))
24+
LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=625,fd=4))
25+
LISTEN 0 511 *:80 *:* users:(("apache2",pid=106630,fd=4),("apache2",pid=106629,fd=4),("apache2",pid=106627,fd=4))
2626

2727
The network notation can be a little confusing, but the lines above show ports 80 and 22 open "to the world" on all local IP addresses - and port 53 (DNS) open only on a special local address.
2828

0 commit comments

Comments
 (0)