Jail and multiple IP4 aliases (GUI or cmd)

Status
Not open for further replies.

plexaFCI

Cadet
Joined
Jun 23, 2018
Messages
5
Dear All,

This is my first post in the FreeNAS forum, I am a bit experienced Qnap and Synology user with new love to FreeNAS.

I need a little help with the problem i encounter.

I created a jail and with it an apache24 service. Everything works excellent, with one web page hosted.

But I wanted to move to virtualhosts local mode (IP based) so i created the server on IP 192.168.3.154 then
192.168.3.155, 192.168.3.156, 192.168.3.157 are the other local sites.

My problem is that I need to set IPv4aliases for the jail: 192.168.3.155, 192.168.3.156, 192.168.3.157
but I can only enter and work with one.

Please note that
Code:
ifconfig_vmx0_alias0="inet 192.168.3.155 netmask 255.255.252.0"				
ifconfig_vmx0_alias1="inet 192.168.3.156 netmask 255.255.252.0"				
ifconfig_vmx0_alias2="inet 192.168.3.157 netmask 255.255.252.0"				
ifconfig_vmx0_alias3="inet 192.168.3.158 netmask 255.255.252.0"	

in Sysctrl does not work

and ifconfig vmx0 192.168.3.158 netmask 255.255.252.0

returns permission denied.

My question is: how to assign multi IP4 alias for the jail (more than one IPv4 alias)

and another question is: does someone documented (fully working) name or IP apache24 virtual host service inside FreeNAS Jail?

I'll be very thankful for the answer.

Plexa
 
Last edited by a moderator:

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Are you using iocage? If so, it's simple:

iocage set ip4_addr="em0|10.1.1.10/24,em0|10.1.1.11/24" examplejail1
 

plexaFCI

Cadet
Joined
Jun 23, 2018
Messages
5
No, Im not. I just want to enter the variable into Gui field designed for that , unfortunatelly this does not work

192.168.3.155, 192.168.3.156, 192.168.3.157

using ; , etc. does not work too.

all i need is alias, to IP. When i set one alias - it works - when i set "aliases" does not.

Do you know where Free nas store "IPv4 aliases variables" for the jails ?

Plexa
 
Status
Not open for further replies.
Top