Hello, I'm testing jail.
First I'm used ezjail to create/manage jails - it's a nice tool
But I need one BIG function - no autostart jails, but starting via script.
So I decided to disable ezjail and run "normal jail" command, move config from ezjail to /etc/jail.conf (but still can manage jails via ezjail-admin)
My question is about loopback in jail. On site https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-ezjail.html is recommendation to create alias for localhost (lo1)
and in jail config set special localhost (example 127.0.0.2).
In jail config file in ezjail is something like that:
but in "clear jail" don't have this option, I can only set one interface
Is there any option to set (example ): lo1|127.0.0.2 and lagg0|10.10.1.145 in jail.conf?
First I'm used ezjail to create/manage jails - it's a nice tool
But I need one BIG function - no autostart jails, but starting via script.
So I decided to disable ezjail and run "normal jail" command, move config from ezjail to /etc/jail.conf (but still can manage jails via ezjail-admin)
My question is about loopback in jail. On site https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-ezjail.html is recommendation to create alias for localhost (lo1)
ifconfig lo1 createand in jail config set special localhost (example 127.0.0.2).
In jail config file in ezjail is something like that:
Code:
#/usr/local/etc/ezjail/jt3
...
export jail_jt3_ip="lo1|127.0.0.2,lagg0/10.10.1.145"
...
but in "clear jail" don't have this option, I can only set one interface
Code:
jt3 {
ip4.addr = "10.10.1.145"; # IP4 address
#ip6.addr = "fe00::1"; # IP6 address (optional)
interface = "lagg0"; # Network interface
Is there any option to set (example ): lo1|127.0.0.2 and lagg0|10.10.1.145 in jail.conf?