Hi,
I am using a FreeNAS server version FreeNAS-11.1-U4 which is connected to multiple vlan interfaces:
# ifconfig -a | grep vl | grep -v inet6
vlan120: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
vlan: 120 vlanpcp: 0 parent interface: lagg0
groups: vlan
vlan89: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
vlan: 89 vlanpcp: 0 parent interface: lagg0
groups: vlan
vlan90: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
vlan: 90 vlanpcp: 0 parent interface: lagg0
groups: vlan
vlan521: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
vlan: 521 vlanpcp: 0 parent interface: lagg0
groups: vlan
Everything works perfect, except the fact that I need to restrict the web gui to listen only on 2 vlans on their IPv4 addresses. With the integrated FreeNAS configuration tools I can only select either all IPv4 or IPv6 addresses for the web gui or one IPv4 or IPv6 address but I need two IPv4 addresses and no IPv6 address. It is very simple to reach this by editing the file /usr/local/etc/nginx/nginx.conf as follows:
server {
server_name localhost;
listen 172.x.y.z:80;
listen 192.X.Y.Z:80;
#listen [::]:80;
Although this works for a reboot but it does not work for an upgrade. Is there any way to make this change permanent to the configuation database?
Thanks in advance for your help!
I am using a FreeNAS server version FreeNAS-11.1-U4 which is connected to multiple vlan interfaces:
# ifconfig -a | grep vl | grep -v inet6
vlan120: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
vlan: 120 vlanpcp: 0 parent interface: lagg0
groups: vlan
vlan89: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
vlan: 89 vlanpcp: 0 parent interface: lagg0
groups: vlan
vlan90: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
vlan: 90 vlanpcp: 0 parent interface: lagg0
groups: vlan
vlan521: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
vlan: 521 vlanpcp: 0 parent interface: lagg0
groups: vlan
Everything works perfect, except the fact that I need to restrict the web gui to listen only on 2 vlans on their IPv4 addresses. With the integrated FreeNAS configuration tools I can only select either all IPv4 or IPv6 addresses for the web gui or one IPv4 or IPv6 address but I need two IPv4 addresses and no IPv6 address. It is very simple to reach this by editing the file /usr/local/etc/nginx/nginx.conf as follows:
server {
server_name localhost;
listen 172.x.y.z:80;
listen 192.X.Y.Z:80;
#listen [::]:80;
Although this works for a reboot but it does not work for an upgrade. Is there any way to make this change permanent to the configuation database?
Thanks in advance for your help!