This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

403 -Forbidden

New installs of XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
fometeo
NewUser
NewUser
Posts: 2
Joined: 28 May 2015 10:46
Status: Offline

Re: 403 -Forbidden

Post by fometeo »

Thank you very much tgtechno ! after reading this thread I tried still some "rational" approaches, all failed, then your solution worked :-) just hope this hint goes into the wiki as this bug is a killer for NAS4Free. better still is of course making it work as I am sure developers will make.

schelter
NewUser
NewUser
Posts: 1
Joined: 14 Aug 2015 14:31
Status: Offline

Re: 403 -Forbidden

Post by schelter »

Hi Guys,

is there any chance to allow host from different subnets thru shell?
I've checked hosts.allow - there is ALL | ALL | ALLOW
I've checked rc.conf - firewall_client_net is set to local subnet, and if I change it, somehow it gets overwritten after reboot.

The Problem is, that the machine is in a separated subnet, and I definetally have no chance to get any client in this subnet, so I can't access the GUI.
Help would be appriciated.

User avatar
Lee Sharp
Advanced User
Advanced User
Posts: 251
Joined: 13 May 2013 21:12
Contact:
Status: Offline

Re: 403 -Forbidden

Post by Lee Sharp »

This was posted above and it is it...
ChriZathens wrote:IIRC, via ssh you can edit lighttpd. conf, restart lighttpd and webui is accessible again. You can then enter webui, insert desired range in webui and it will survive the reboot.
Temporar fix, I know...
And I agree that this setting should be disabled by default. In the future I suppose it will be fixed.

Stuarty
Starter
Starter
Posts: 35
Joined: 21 Jun 2013 17:40
Status: Offline

Re: 403 -Forbidden

Post by Stuarty »

Hello, Can someone tell me what to edit in lighttpd. conf to get around the 403 error? After a reboot my nas4free server works perfectly except that I cannot access the web GUI.

User avatar
Lee Sharp
Advanced User
Advanced User
Posts: 251
Joined: 13 May 2013 21:12
Contact:
Status: Offline

Re: 403 -Forbidden

Post by Lee Sharp »

Found the fix...

Start by remounts the CF RW.

Code: Select all

umount /cf && mount -o rw /cf
Next edit the config file...

Code: Select all

nano /cf/conf/config.xml
Edit this line;

Code: Select all

<hostsallow>192.168.0.0/16 172.16.0.0/8</hostsallow>
From this section;

Code: Select all

                <webgui>
                        <protocol>http</protocol>
                        <certificate>...
                        <privatekey>...
                        <hostsallow>192.168.0.0/16 172.16.0.0/8</hostsallow>
                        <port/>
                </webgui>
Then unmount the flash and reboot.

bocman
Starter
Starter
Posts: 21
Joined: 01 Apr 2013 11:46
Status: Offline

Re: 403 -Forbidden

Post by bocman »

Lee Sharp wrote:Found the fix...
Start by remounts the CF RW.

Code: Select all

umount /cf && mount -o rw /cf
I can't unmount /cf

Code: Select all

umount: unmount of /cf failed: Device busy
I have type in "hosts allow"

Code: Select all

0.0.0.0/1 128.0.0.0/2 192.0.0.0/3 224.0.0.0/4 240.0.0.0/5 248.0.0.0/6 252.0.0.0/7 254.0.0.0/8
how said armandh, but after that I have recieved "503 - Service Not Available".
I have reset host allow from NAS localy (by keyboard connected directly to the server) and I was able to open WebGUI.
But after a reboot I got the error 503 again.
Now I have folowwing config.xml

Code: Select all

                <webgui>
                        <protocol>https</protocol>
                        <certificate>...t</certificate>
                        <privatekey>...t</privatekey>
                        <hostsallow/>
                        <port>8080</port>
                        <hostsallow_disable/>
                </webgui>
and wasn't able to open WebGUI.

Post Reply

Return to “Install XigmaNAS”