Hi,
after a really long time being happy with my Omnia and not using the web interface I needed to use it again. I found out it wasn’t accessible.
After trying to find the root cause via SSH access I found out that lighttpd wasn’t starting. The configuration files instructed it to bind twice to the same port. The first bind was ok but the second failed obviously:
can’t bind to socket: 192.168.1.1:80: Address in use
The problem manifested twice, once for IPv4 and once for IPv6.
After digging around in the configs, I found that the file /etc/lighttpd/conf.d/90-turris-root.conf
contains these two lines:
$SERVER[“socket”] == “*:80” { }
$SERVER[“socket”] == “[::]:80” { }
These seem to want to make the web interface accessible via all networks (including WAN). Fortunatelly, the main config file /etc/lighttpd/lighttpd.conf
has these lines:
server.bind = “192.168.1.1”
$SERVER[“socket”] == “[IPv6_ADDRESS%br-lan]:80” { }
I don’t remember putting them there, so I guess they must have been generated based on my input via LuCi or Forris. Anyway, as far as I can tell, those two lines make the web server available only on local network (those two addresses are from my br-lan
interface). That is what I want and it seems like a sane default to me.
So I commented out the two lines in /etc/lighttpd/conf.d/90-turris-root.conf
and lighttpd could start again. I guess this is a temporary fix as my changes in the configuration file might get overwritten by some future update to the file. Can you suggest a permanent solution?
Also, isn’t there a bug in the conf file in the first place? Why would you by default make the web accessible via WAN?
Thanks.
PS: You are making a wonderful job with the Turris project. I love the modular MOX router which I bought recently. I have read somewhere you might not continue with the project because of low demand. I hope that’s not true as MOX is truly unique. It brings the modularity we are used to from the PC world to the router world and that’s something great and a huge step forward and an advantage for the customers. That’s THE way to go, not locking ourselves into monolithic unupgradable unrepairable devices like our phones, most laptops or most other routers.
The Turris OS is also much needed today. Updateable router software without being at the mercy of some manufacturer that decides the router’s EOL much too soon just because they want to sell a newer model. So thanks for that and keep up the good work. The impact of what you do can’t be overstated.