# TRB140: how to enable remote (WAN) WebUI from ssh access

**URL:** <https://community.teltonika.lt/t/trb140-how-to-enable-remote-wan-webui-from-ssh-access/1946>\
**Category:** Networking Solutions\
**Created:** [September 21, 2023, 12:52pm UTC](https://community.teltonika.lt/t/trb140-how-to-enable-remote-wan-webui-from-ssh-access/1946 "2023-09-21T12:52:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkovacs9999](https://community.teltonika.lt/letter_avatar_proxy/v4/letter/g/e8c25b/32.png) [@gkovacs9999](https://community.teltonika.lt/u/gkovacs9999)\
**Post date:** [September 21, 2023, 12:52pm UTC](https://community.teltonika.lt/t/trb140-how-to-enable-remote-wan-webui-from-ssh-access/1946/1 "2023-09-21T12:52:50Z")

</div>

Hello,

I have a TRB140. Is it possible to enable remote (4G) WebUI from ssh access? Before deployment, I forgot to enable WebUI access from 4G, is ot possible to enable it from SSH (luckily I have enabled that).

---

<div class="post-metadata">

**Author:** ![gkovacs9999](https://community.teltonika.lt/letter_avatar_proxy/v4/letter/g/e8c25b/32.png) [@gkovacs9999](https://community.teltonika.lt/u/gkovacs9999)\
**Post date:** [September 21, 2023, 3:55pm UTC](https://community.teltonika.lt/t/trb140-how-to-enable-remote-wan-webui-from-ssh-access/1946/2 "2023-09-21T15:55:24Z")

</div>

For those who stumble here, this is the solution:

1. First you need to allow the server to be accesed from the wan port:

```auto
uci set uhttpd.main._httpWanAccess='1'
uci commit uhttpd

```

1. You need to restart the www server of the router:

```auto
/etc/init.d/uhttpd restart

```

1. You need to find the firewall rule that controls access to port 80 from WAN:

```auto
uci show | grep fire | grep "'80'"

```

response:

```auto
firewall.16.dest_port='80'

```

1. If you got this as reponse, let’s check the complete rule:

```auto
uci show | grep firewall.16 

```

and you got this response:

```auto
firewall.16=rule
firewall.16.dest_port='80'
firewall.16.proto='tcp'
firewall.16.name='Enable_HTTP_WAN'
firewall.16.target='ACCEPT'
firewall.16.src='wan'
firewall.16.enabled='0'

```

1. The last line tells you that the firewall rule is disabled (essentially the route is banned), so let’s enable it:

```auto
uci set firewall.16.enabled='1'
uci commit firewall

```

1. We have to restart the firewall:

```auto
/etc/init.d/firewall restart

```

And that’s it!

Note: this solution may work for all RUT-s and TRB-s, as long as you fine the correct firewall rule…

---

<div class="post-metadata">

**Author:** ![system](https://community.teltonika.lt/user_avatar/community.teltonika.lt/system/32/15707_2.png) [@system](https://community.teltonika.lt/u/system)\
**Post date:** [October 6, 2023, 12:53pm UTC](https://community.teltonika.lt/t/trb140-how-to-enable-remote-wan-webui-from-ssh-access/1946/3 "2023-10-06T12:53:50Z")

</div>

Closed on October 6, 2023, 12:53pm UTC

This topic was automatically closed after 15 days. New replies are no longer allowed.
