# Allow SSH on WAN

**URL:** <https://forum.openwrt.org/t/allow-ssh-on-wan/74995>\
**Category:** Network and Wireless Configuration\
**Created:** [September 23, 2020, 4:00pm UTC](https://forum.openwrt.org/t/allow-ssh-on-wan/74995 "2020-09-23T16:00:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xifi-kif](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xifi-kif/32/7933_2.png) [@xifi-kif](https://forum.openwrt.org/u/xifi-kif)\
**Post date:** [September 23, 2020, 4:00pm UTC](https://forum.openwrt.org/t/allow-ssh-on-wan/74995/1 "2020-09-23T16:00:23Z")

</div>

Hello,

I have a Netgear R6220 running OpenWrt 19.07.4 just installed with default configuration. I'd like to allow ssh on wan port. When I go in luci in `system -> administration -> ssh access` no matter what interface I select, it always deny my access.

 ![Immagine 2020-09-23 175708](https://forum.openwrt.org/uploads/default/original/3X/d/4/d46811b4ec30950cb71677c194607afd7d6b8a39.png)

Do I miss some other configuration somewhere else?

Note that this is a testing envoirenment, I'm on LAN, this router's wan is basically my lan private IP.

_Please stay in topic: this is not a topic about how is safe or why I should allow SSH over WAN port, jsut about how to do it. Thank you_

---

<div class="post-metadata">

**Author:** ![krazeh](https://forum.openwrt.org/user_avatar/forum.openwrt.org/krazeh/32/21639_2.png) [@krazeh](https://forum.openwrt.org/u/krazeh)\
**Post date:** [September 23, 2020, 4:03pm UTC](https://forum.openwrt.org/t/allow-ssh-on-wan/74995/2 "2020-09-23T16:03:15Z")

</div>

You'll have to open the port in the firewall as well.

---

<div class="post-metadata">

**Author:** ![mk24](https://forum.openwrt.org/letter_avatar/mk24/32/5_5575768a8748004e209b776fc1b2916d.png) [@mk24](https://forum.openwrt.org/u/mk24)\
**Post date:** [September 23, 2020, 4:26pm UTC](https://forum.openwrt.org/t/allow-ssh-on-wan/74995/3 "2020-09-23T16:26:08Z")

</div>

By default dropbear is set to listen to port 22 on all interfaces, so you don't have to change anything there. But the default firewall blocks it on the wan zone so you need to go to the firewall "Open ports on router" source: wan, dest\_port: 22, and proto tcp.

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [October 3, 2020, 4:26pm UTC](https://forum.openwrt.org/t/allow-ssh-on-wan/74995/4 "2020-10-03T16:26:14Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
