Hi,
I installed luci, cannot access gui from outside.
I am not sure of luci config.
Here are some config details , that I am using.
I verified ping/wifi works on the host correctly.
(network)
When you say you cannot access from outside, are you talking about from the internet or on your LAN?
Opening the router such that LuCI can be reached on the WAN (Internet) side is very strongly discouraged -- it opens the router up to brute-force login attempts, and the web server (uhttpd) is not security hardened -- it is a light-weight web server for embedded devices, not intended to be used on the internet.
That said, if your OpenWrt WAN is behind an existing router where you have a trusted LAN (so the OpenWrt WAN is connected to your normal LAN), you probably don't have to worry about the security consideration I mentioned above. If this is the case, all you need to do is open port 80 to the WAN using the traffic rules.
Meanwhile, why is your wireless bridged to the WAN?
yes, i have router w/wifi, i have other devices (pc, mobile and raspberry pi) connecting to this wifi.
I want to access luci on the LAN created by router.
Regards.
Should be relatively easy... first verify that LuCI is running in general by connecting to the LAN created by the Raspberry Pi (you want to verify that LuCI works so you don't chase your tail). If so, just add a traffic rule like this:
config rule
option target 'ACCEPT'
option proto 'tcp'
option dest_port '80'
option name 'LuCi-from-WAN'
option src '*'
I added this rule in /etc/config/firewall, and restarted. Still I see
cannot access luci using both static and lan ip's. I see luci is running by ps | grep uht
Regards
Actually, since you brought up ( why I am connecting to wan ) , so I made change to use lan for wifi
and made the change in network for lan to have just dhcp. I tried now using ip addr it shows under wlan0
from my pc : http://192.168.1.17:80/ , pc on lan, but still I cannot access.
Regards
Apologies, first, I would like to ask, what would be my ideal configuration for
network and
wireless
should look like, for my device to be on the LAN and get dynamic IP ?
Regards
sorry to deviate, I restored everything to the very begining(network, wireless ).
I added the above rule. now the focus is on Luci. would appreaciate, why I still cannot
access the luci on LAN ?
Regards
Thanks, Yes, I can ping using wireless ip, but not using static ip( unless I connect ethernet cable).
Also, i cannot ssh to it, I am getting : port 22: Connection refused. I installed openssh server on pi.
Regards
This implies that you are connecting to the OpenWrt WAN. You won't be able to make any changes unless you can connect in general, so you need to be connected to the LAN side of the OpenWrt Pi.
Maybe it would be best to start here: what is your goal? what do you want to do with this OpenWrt Pi? It may impact how to best configure the RPi.
FTP? I don't think you're running OpenWrt - FTP is not enabled on OpenWrt.
Can you explain where you got your OpenWrt image and how you installed it?
What version of Raspberry Pi is this?
OpenWrt is not really a general purpose OS -- it is designed primarily as a router firmware. Maybe you want Raspian instead? Can you be more specific about what you want to do with this Raspberry Pi?