# What does 22/tcp allow anywhere mean?

**URL:** <https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218>\
**Category:** Uncategorized\
**Created:** [January 27, 2022, 3:22am UTC](https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218 "2022-01-27T03:22:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dustyj](https://forums.jeff.pro/letter_avatar_proxy/v4/letter/d/82dd89/32.png) [@dustyj](https://forums.jeff.pro/u/dustyj)\
**Post date:** [January 27, 2022, 3:22am UTC](https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218/1 "2022-01-27T03:22:55Z")

</div>

Question about ufw,  
I have enabled my fire wall. When I check the status I see that it’s active. But then I see  
To Action From  
22/tcp ALLOW anywhere  
22/tcp (v6)ALLOW anywhere (v6)

Does this mean my port 22 is open and what does (v6) mean? This has me a little worried please help!

---

<div class="post-metadata">

**Author:** ![ckehoe31](https://forums.jeff.pro/letter_avatar_proxy/v4/letter/c/c4cdca/32.png) [@ckehoe31](https://forums.jeff.pro/u/ckehoe31)\
**Post date:** [January 28, 2022, 2:10am UTC](https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218/2 "2022-01-28T02:10:04Z")

</div>

Yes port 22 is open and allowing SSH traffic  
v6 is for Internet Protocol version six or IPv6  
The line above it is for IPv4

---

<div class="post-metadata">

**Author:** ![vasileios](https://forums.jeff.pro/user_avatar/forums.jeff.pro/vasileios/32/32_2.png) [@vasileios](https://forums.jeff.pro/u/vasileios)\
**Post date:** [January 28, 2022, 9:42pm UTC](https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218/3 "2022-01-28T21:42:13Z")

</div>

Hey @dustyj!  
What @ckehoe31 mentioned is correct.  
Does this **ufw** rule exist on your local system or your VPS (Virtual Private Server)?

---

<div class="post-metadata">

**Author:** ![dustyj](https://forums.jeff.pro/letter_avatar_proxy/v4/letter/d/82dd89/32.png) [@dustyj](https://forums.jeff.pro/u/dustyj)\
**Post date:** [January 28, 2022, 11:50pm UTC](https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218/4 "2022-01-28T23:50:34Z")

</div>

Hi Vasileios,

It believe it’s on my local since I have not set up a VPS yet. Should I have set up the server first?

Thank You

---

<div class="post-metadata">

**Author:** ![vasileios](https://forums.jeff.pro/user_avatar/forums.jeff.pro/vasileios/32/32_2.png) [@vasileios](https://forums.jeff.pro/u/vasileios)\
**Post date:** [February 1, 2022, 5:02am UTC](https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218/5 "2022-02-01T05:02:04Z")

</div>

Then it’s best that you keep the SSH port closed on your local system, to avoid anyone logging in and taking control of your system. First, you’ll need to check the list of ports that are active. The terminal command to do so is:

```auto
sudo ufw status numbered

```

Glance at the numbered list it will give you and notice which number includes the open port 22. Then execute:

```auto
sudo ufw delete number

```

Replace number with the actual digit of the rule you see for port 22.  
That’s it. 🙂

---

<div class="post-metadata">

**Author:** ![dustyj](https://forums.jeff.pro/letter_avatar_proxy/v4/letter/d/82dd89/32.png) [@dustyj](https://forums.jeff.pro/u/dustyj)\
**Post date:** [February 1, 2022, 8:49pm UTC](https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218/6 "2022-02-01T20:49:19Z")

</div>

Thank You! I was thinking I should get a VPS and was thinking about digital ocean what do you think is a safe and well operating VPS service? I watched the class that Will did on installing a VPS. When I add this should close the port still. I did change the settings to not allow incoming from that port.

Thank You Again

Jan

---

<div class="post-metadata">

**Author:** ![vasileios](https://forums.jeff.pro/user_avatar/forums.jeff.pro/vasileios/32/32_2.png) [@vasileios](https://forums.jeff.pro/u/vasileios)\
**Post date:** [February 2, 2022, 7:55am UTC](https://forums.jeff.pro/t/what-does-22-tcp-allow-anywhere-mean/2218/7 "2022-02-02T07:55:38Z")

</div>

Hey Jan,  
You’re very welcome!  
Digital Ocean is a good one, though I haven’t personally used it. I tried Linode and Kamatera, though the latter has a very peculiar customer support, so I dumped it.
