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!

[solved] WebGUI bind to LAGG

New installs of XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
spammeatwill
Starter
Starter
Posts: 23
Joined: 08 May 2013 11:24
Status: Offline

[solved] WebGUI bind to LAGG

Post by spammeatwill »

Hi,

I have setup the NAS4FREE box in a way that SAMBA is served through a link aggregation interface.
This interface happens to be in my main network, from which I need access to the WebGUI.
How can I bind the WebGUI on another interface?

Thanks!
9.2.0.1 - Shigawire (revision 925)
x64-embedded on Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz

spammeatwill
Starter
Starter
Posts: 23
Joined: 08 May 2013 11:24
Status: Offline

Re: WebGUI bind to LAGG

Post by spammeatwill »

Hi,

I still don't have a clue on how to do this. Maybe I am getting this wrong?

What I am trying to do is to have more link capacity for my SAMBA clients (main network) while having a dedicated storage/backup network:

Code: Select all

                                     +-------------------+
 main network   +----+-------+-------|re0+re1         em0|-------> to storage/backup network
                |    |       |       +-------------------+
             (C1) (C2) ... (Cn)
I figured that the LACP interface ports should be more usefull on the main network to distribute the load.

The problem is that LAN is on the em0... and I can't access management GUI from the main network.

Lighthttpd seems to bind only to em0 and in this case I need it to be on re0+re1 side.

Can this be done?
9.2.0.1 - Shigawire (revision 925)
x64-embedded on Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz

spammeatwill
Starter
Starter
Posts: 23
Joined: 08 May 2013 11:24
Status: Offline

Re: WebGUI bind to LAGG

Post by spammeatwill »

Well, I found a solution to this by editing the rc file for lighttpd... It is not an ideal solution, but at least it works.

Near the end, I have commented out the ipaddr variable and hardcoded 0.0.0.0 to bind on all interfaces:

Code: Select all

nasserver1: ~ # grep server.bind /etc/rc.d/lighttpd
server.bind = "0.0.0.0" #"${_ipaddr}"
Previously I tried to edit /var/etc/lighttpd.conf but soon realized that it is overwritten on every restart by the rc file above.

I would like to have a more permanent configurable solution for this.

Thanks.
9.2.0.1 - Shigawire (revision 925)
x64-embedded on Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz

spammeatwill
Starter
Starter
Posts: 23
Joined: 08 May 2013 11:24
Status: Offline

Re: WebGUI bind to LAGG

Post by spammeatwill »

Is there any way I could make this change permanent? Although it survives a lighttpd restart, it does not survive a reboot...

Edit:

It occurred to me that I could try and swap LAN and OPT1 interfaces, so that LAN is bound to lagg0 and OPT1 to em0. It works :)
9.2.0.1 - Shigawire (revision 925)
x64-embedded on Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [solved] WebGUI bind to LAGG

Post by raulfg3 »

As you discover answer is to setup properly LAN and OPT1 in webgui.

http://wiki.nas4free.org/doku.php?id=do ... management


Webgui is allways bind to LAN.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “Install XigmaNAS”