HI,
today i have updated (mabe it was bevor updatint) to latest Version of Easynas (0.7.2) and checked my settings.
i found the Easynas Webserver was enabled and tried to disable it (i think i havent enabled it) - but it is not possible to disable the webserver. i checked what runs in easynas WebServer and found EasyNas Webpage is running in HTTP (and also Https:1443). maybe an config error?
br
Chris
due to the move to a secure easynas, the configuration of port 1080 was removed and only port1443 is listening, however it seems that if there is no port configuration for a non secure connection, lighttpd will use port 80 as a default. this will be fixed in 0.7.3 I will have a workaround recomandtion if few days to remove port 80 from the NAS
workaround:
via shell access edit the file: /etc/easynas/webui/easynas.org
uncomment the line:
server.port = 1080
save the file
restart the server.
should be fixed with Revision 636.
Please check if it works.
Hi,
i have updated from 0.7 to 0.72, have tried to uncomment line
server.port = 1080 (default was with #)
but i´m not able to disable webserverport in webui, but easynas is not available on port 80
haven´t tried to install new iso - is it necessary
br
Chris
ps: how can i update to latest revision?
Last edit: Christian Heuff 2017-09-15
Hi Christian
Have you restarted the server after the change ?
Reinstalling the ISO will not help since the issue is in 0.7.2 as well
ב-15 בספט׳ 2017, בשעה 19:45, Christian Heuff tango38317@users.sf.net כתב/ה:
Hi Yariv,
yes. after uncommenting th server line i restarted - the server - now easynas is not available in port 80 - but its not possible to disable webserver in easynas gui - it´s enabled.
if i open webserver ui (https://easynas.heuff.lan:1443/easynas/svr_web.pl) and i try to disable the webserver (https://easynas.heuff.lan:1443/easynas/svr_web.pl?menu=none&action=weboff&port=80) nothing happens on webinterface - webserver is on.
br
Chris
Hi Christian,
you have to to change following things manual in /etc/easynas/webui/easynas.conf:
line ~415
delete: server.port = 1080
line ~445
delete: $SERVER["socket"] == ":1443" {
add: server.port = 1443
ssl.engine = "enable"
ssl.pemfile = "/easynas/certs/easynas.pem"
ssl.use-sslv2 = "disable"
ssl.use-sslv3 = "disable"
ssl.cipher-list = "HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"
line ~452
delete: }
Restart easynas-webui:
systemctl stop easynas
systemctl status easynas (see if its real stopped)
systemd start easynas
systemctl status easynas (see if its real started without errors)
Christian
Edit :
You can also download the fixed version to replace easynas.conf:
https://sourceforge.net/p/easynas/code/636/tree//trunk/etc/easynas/webui/easynas.conf
Last edit: Christian Wasem 2017-09-16
Hi Christian!
The following textual content is in german only:
Bitte kannst Du mal golgendes machen:
1. NAS neu starten
2. per webui anmelden
3. per ssh verbinden
4. verändere über das webui den apache serverport
5. in der ssh verbindung kannst du per: sudo systemctl status easynas die letzen 10-20 Zeilen sehen die bei der letzten aktion (server port umstellen) zu tage kamen.
Alternativ / zusätzlich kannst Du auch : journalctl -u easynas ausführen (langer output!)
6. führe mal ein systemd-analyze blame in der ssh-sesssion aus und schaue mal nach wieviele und welche apache2 ausgeführt worden sind.
Kannst Du diese Ausgaben hier posten? Denn ich habe da so eine Vorstellung was da sein könnte.... ;-)
Es kann nämlich sein, das das "originale suse apache2 paket" immernoch läuft und deswegen die Änderungen ignoriert, bzw. nicht geschrieben werden.
Bin mal auf Deinen post gespannt
Liebe Grüße,
Christian
Last edit: Christian Wasem 2017-09-16
Ok, this should now works!
Find out, that listen.conf weren't modified if port was changing via webui.
So apache always listen on old port (e.g.: 80), so changes be ignored.
This issue should be done with revision 640, but please test out!
Christian
Last edit: Christian Wasem 2017-09-16
HI,
in attachments are all outputs. how can i update to revision 640?
br
Christian
You can download the latest revision by using subversion:
svn checkout svn://svn.code.sf.net/p/easynas/code/trunk easynas-trunk
This download the actually code (revision 640 or higher).
In your case you have to replace:
/etc/easynas/webui/easynas.conf
/easynas/cgi-bin/svr_web.pl
with the downloaded ones.
EDIT: please restart easynas: systemctl restart easynas
I've seen you have installed webmin, on which port is it running?
Christian
Last edit: Christian Wasem 2017-09-16
HI,
i have installed webmin on port 10000.
i´ll try it and give feedback.
br
Chris
Hi,
i have updated svr_web.pl and easynas.con and tried to disable web service in WebIF, but same issue, cannot disable webserver.
Easynas is not available on port 80. if i try to connect:
http://easynas.heuff.lan/easynas/index.pl
error message: ERR_CONNECTION_REFUSED
is maybe webmin the issue (use it to manage local users and groups for docker, set acl and ownerships....)
br
Chris.
It can be, that webin take port 80, from where do you install webmin?
If you have a repo file please paste it here.
So i can check it too.
br
Christian
Please execute :
zypper search --installed-only > installed-packages.txt
Please paste txt file here.
Christian
HI,
webmin i have installed from tgz file: http://www.webmin.com/tgz.html
Output from zypper search as attachment
br
Christian