SOLVED webgui IP

kausban

Cadet
Joined
Mar 4, 2019
Messages
4
Hi. I am new to freenas.

I presume this is a straight forward task, but I am unsure how to properly do it the freenas way.
I have 2 network interfaces on different subnets, that I have assigned static IPs.

Code:
➜  ~ ifconfig
ix0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=e403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether b4:96:91:42:ba:7c
        hwaddr b4:96:91:42:ba:7c
        inet 10.8.182.30 netmask 0xffffff00 broadcast 10.8.182.255
        inet6 fe80::b696:91ff:fe42:ba7c%ix0 prefixlen 64 scopeid 0x1
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex,rxpause,txpause>)
        status: active
ix1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=e407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether b4:96:91:42:ba:7e
        hwaddr b4:96:91:42:ba:7e
        inet 132.xxx.xxx.xxx netmask 0xffffff00 broadcast 132.xxx.xxx.255
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect (1000baseT <full-duplex,rxpause,txpause>)
        status: active


I would like to have the webgui only accessible on one of them. So I tried the obvious thing and selected the appropriate IP (10.8.182.30) in System > General > webgui ip4 address (and the equivalent in ipv6 field). This doesn't work however. I get the following alert: "The WebGUI Address could not bind to 10.8.182.30; using wildcard".

Rebooting with these settings prevents nginx from starting and I have to manually replace the listen address within nginx configurations to 0.0.0.0, to recover the webgui.

Thanks for you help.

OS version: FreeNAS-11.2-U2.1
 

kausban

Cadet
Joined
Mar 4, 2019
Messages
4
Were you able to resolve this?
Unfortunately not. I do not know exactly how to debug this.

I couldn't find much more information on this on the forum or elsewhere, and on the irc someone just reiterated , "change the webgui bind address".
 
D

dlavigne

Guest
If you don't set that setting, does it default to the IP you want to use?
 

kausban

Cadet
Joined
Mar 4, 2019
Messages
4
You have to have some setting there. The default is 0.0.0.0

This basically listens to all addresses. So I can access the webgui from both subnets on either of the NICs
 

kausban

Cadet
Joined
Mar 4, 2019
Messages
4
With the new update on FreeNAS-11.2-U3, the option in system > General > webgui works correctly.
I presume this was a known bug then.
 
Top