OpenWrt Forum Archive

Topic: LuCI remote management (Not on port 80)

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I'm going crazy trying to make LuCI remote management on port 23412
I don't want change uhttpd options (on LAN I prefer port 80) so I'm trying to do with 'Redirections'
Please someone can help me?
Thanks wink

With

config 'redirect'
        option 'name' 'remote_http'
        option 'src' 'wan'
        option 'proto' 'tcpudp'
        option 'src_dport' '23412'
        option 'dest_ip' '192.168.1.1' # This is router IP
        option 'dest_port' '80'
        option 'target' 'DNAT'
        option 'dest' 'lan'

Doesn't work... sad

(Last edited by Crazy on 15 Jul 2012, 14:32)

Remove dest_ip

Many thanks Jow!
Now is perfect smile

Hello guys!
I've been following the tutorials here, but I still can not get remote access either through port 80 or 443. If you can help me, some instruction on something I did not see? Below my settings.

Model: TP-Link TL-WR1043N/ND v1
Firmware: OpenWrt Chaos Calmer 15.05.1

/etc/config/firewal

config zone
        option input 'ACCEPT'
        option output 'ACCEPT'
        option name 'wan_pppoe'
        option network 'WAN'
        option forward 'ACCEPT'
        option masq '1'
        option mtu_fix '1'

config forwarding
        option dest 'lan'
        option src 'wan_pppoe'

config forwarding
        option dest 'wan_pppoe'
        option src 'lan'

config rule
        option target 'ACCEPT'
        option proto 'tcp udp'
        option src 'wan_pppoe'
        option enabled '0'

config rule
        option name 'luci-wan'
        option target 'ACCEPT'
        option proto 'tcp'
        option dest_port '443 80'
        option src 'wan_pppoe'

config redirect
        option _name 'luci-wan-redirect'
        option src 'wan_pppoe'
        option proto 'tcp'
        option dest 'lan'
        option src_dport '4443'
        option dest_port '443'


config redirect
        option _name 'luci-wan-redirect'
        option src 'wan_pppoe'
        option proto 'tcp'
        option dest 'lan'
        option src_dport '8088'
        option dest_port '80'

(Last edited by elias13jr on 17 Feb 2017, 04:18)

Why not just SSH in to the router, edit the config file for uhttpd ?

opkg install nano
nano /etc/config/uhttpd

Change:

list listen_http '0.0.0.0:80'
        list listen_http '[::]:80'
        list listen_https '0.0.0.0:443'
        list listen_https '[::]:443'

To:

list listen_http '0.0.0.0:8080'
        list listen_http '[::]:8080'
        list listen_https '0.0.0.0:443'
        list listen_https '[::]:443'

/etc/init.d/uhttpd restart

Cheers smile

Hi, thanks for answering!
I already have SSH access, I'm not quite as skilled with the command line. Releasing luci's web access would make remote settings easier. However, solving this problem will make me understand how openwrt works, if I messed up while setting up or if something is messing up my network or my version of openwrt. I tried to use it with standard ports, would it be feasible to change it? I'll try, thanks

(Last edited by elias13jr on 21 Feb 2017, 23:29)

The discussion might have continued from here.