# After enabling the firewall. SSH is blocked

**URL:** <https://community.ovhcloud.com/t/after-enabling-the-firewall-ssh-is-blocked/9043>\
**Category:** Bare Metal et VPS\
**Created:** [March 21, 2023, 8:20am UTC](https://community.ovhcloud.com/t/after-enabling-the-firewall-ssh-is-blocked/9043 "2023-03-21T08:20:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucA](https://community.ovhcloud.com/letter_avatar/luca/32/6_22734026db12803ebb3e059622ac3534.png) [@LucA](https://community.ovhcloud.com/u/LucA)\
**Post date:** [March 21, 2023, 8:20am UTC](https://community.ovhcloud.com/t/after-enabling-the-firewall-ssh-is-blocked/9043/1 "2023-03-21T08:20:45Z")

</div>

!image|690x136  
  
After I enabling the firewall. Neither port 22 nor 80 can be accessed. Does anyone know the reason? Thanks.

---

<div class="post-metadata">

**Author:** ![StevenSlt](https://community.ovhcloud.com/letter_avatar/stevenslt/32/6_22734026db12803ebb3e059622ac3534.png) [@StevenSlt](https://community.ovhcloud.com/u/StevenSlt)\
**Post date:** [May 2, 2023, 1:59pm UTC](https://community.ovhcloud.com/t/after-enabling-the-firewall-ssh-is-blocked/9043/2 "2023-05-02T13:59:49Z")

</div>

Hello,  
Can you try your configuration by reversing the values of "source port" and "destination port"?  
  
[https://help.ovhcloud.com/csm/en-ie-dedicated-servers-firewall-network?id=kb\_article\_view&sysparm\_article=KB0043450](https://help.ovhcloud.com/csm/en-ie-dedicated-servers-firewall-network?id=kb_article_view&sysparm_article=KB0043450)

---

<div class="post-metadata">

**Author:** ![StavrosK](https://community.ovhcloud.com/letter_avatar/stavrosk/32/6_22734026db12803ebb3e059622ac3534.png) [@StavrosK](https://community.ovhcloud.com/u/StavrosK)\
**Post date:** [June 26, 2023, 7:24am UTC](https://community.ovhcloud.com/t/after-enabling-the-firewall-ssh-is-blocked/9043/3 "2023-06-26T07:24:07Z")

</div>

The ports you set at Source Ports you have to set them at Destination Ports.
