[FUG-BR] jail com vimage carregando no boot
Leonardo Augusto
lalinden em gmail.com
Sexta Agosto 10 17:27:59 BRT 2012
Legal o artigo Marcelo, eu consegui por o lo0 no ezjail la com o
127.0.0.1, porem apenas um jail aceitava isso,
eu colquei nos na lista de ips do jail os dois <ip real>, 127.0.0.1,
aí no ifconfig dentro da jail aparece o ip do lo0.
Mas ainda em o problema do ports, que ezzicado nao deixa voce mecher
no jail a nao ser pelo update dele,
entao aboli o ezjail e vou fazer os jails pela maneira default.
Agora teu artigo ta meio confuso pra mim, pois tem TROCENTAS
interfaces, so consegui identificar a lo0 ali no meio,
alias, pra que ela serve.. as outras nao entendi pq clonar e bridge e
sei la o que :)
Ficaria mais facil de entender se tivesse o ifconfig com as interfaces
e seus ips para raciocionar sobre.
Olhando pro ifconfig do meu server entao fiqueis mais perdido ainda,
veja que tem um tal de lagg que pega todos os ips,
o outro servidor nao tem esse lag.. isso é coisa do datacenter para
colocar tudo na mesma classe de ip sei la...
veja o meu ifconfig:
root em server02:/data/virtual # ifconfig
igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 00:25:90:2e:16:18
inet6 fe80::225:90ff:fe2e:1618%igb0 prefixlen 64 scopeid 0x2
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
igb1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 00:25:90:2e:16:19
inet6 fe80::225:90ff:fe2e:1619%igb1 prefixlen 64 scopeid 0x3
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
igb2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 00:25:90:2e:16:18
inet6 fe80::225:90ff:fe2e:161a%igb2 prefixlen 64 scopeid 0x4
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
igb3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 00:25:90:2e:16:19
inet6 fe80::225:90ff:fe2e:161b%igb3 prefixlen 64 scopeid 0x5
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
pflog0: flags=0<> metric 0 mtu 33152
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pfsync0: flags=0<> metric 0 mtu 1500
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
syncpeer: 0.0.0.0 maxupd: 128
enc0: flags=0<> metric 0 mtu 1536
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0xa
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 00:25:90:2e:16:18
inet 10.51.38.130 netmask 0xffffffc0 broadcast 10.51.38.191
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
laggproto lacp lagghash l2,l3,l4
laggport: igb2 flags=0<>
laggport: igb0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
lagg1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 00:25:90:2e:16:19
inet 50.97.114.188 netmask 0xff000000 broadcast 50.255.255.255
inet 50.97.114.189 netmask 0xff000000 broadcast 50.255.255.255
inet 50.97.114.190 netmask 0xff000000 broadcast 50.255.255.255
inet 50.97.114.191 netmask 0xff000000 broadcast 50.255.255.255
inet 50.97.114.192 netmask 0xff000000 broadcast 50.255.255.255
inet 50.97.114.193 netmask 0xff000000 broadcast 50.255.255.255
inet 50.97.114.194 netmask 0xff000000 broadcast 50.255.255.255
inet 50.97.114.195 netmask 0xff000000 broadcast 50.255.255.255
inet 184.173.196.20 netmask 0xfffffff0 broadcast 184.173.196.15
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
laggproto lacp lagghash l2,l3,l4
laggport: igb3 flags=0<>
laggport: igb1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
//------------------------ FIM DO IFCONFIG
---------------------------------------------------------------
O ip externo principal da maquina é o ultimo ali: 184.173.196.20, os
outros sao ips reais extras na maquina..
Eu quero colocar o jail pra testarmos o iredmail no ip 50.97.114.188,
agora como fazer isso se é a mesma "interface" pros
dois ips ?
Detalhe que na lagg0, tem o ip da rede interna entre os servidores,
tambem quero colocar esse na jail :)
#----------------------------------------------------
jail_enable="yes"
jail_v2_enable="YES"
jail_set_hostname_allow="YES"
jail_socket_unixiproute_only="YES"
jail_sysvipc_allow="YES"
jail_list="mail"
jail_mail_name="mail"
jail_mail_rootdir="/data/virtual/mail/" # Jail's root directory
jail_mail_hostname="mail.servidor.com.br" # Jail's hostname
jail_mail_ip="50.97.114.188" # Jail's IP number
jail_mail_exec="/bin/sh /etc/rc" # command to execute in jail
jail_mail_fstab="/etc/jails/fstabs/mail"
jail_mail_mount_enable="YES"
jail_mail_devfs_enable="YES" # mount devfs in the jail
jail_mail_fdescfs_enable="YES" # mount fdescfs in the jail
jail_mail_procfs_enable="YES" # mount procfs in jail
jail_mail_fstab="" # fstab(5) for mount/umount
jail_mail_flags="-l -U root" # flags for jail(8)
jail_mail_vnet_enable="YES"
jail_mail_exec_prestart0="mount -t devfs devfs /data/virtual/mail/dev"
jail_mail_exec_prestart1="ifconfig lagg0 create"
jail_mail_exec_prestart2="ifconfig lagg1 create"
jail_mail_exec_prestart3="ifconfig lagg0 up"
jail_mail_exec_prestart4="ifconfig lagg1 up"
jail_mail_exec_afterstart0="ifconfig lo0 127.0.0.1"
jail_mail_exec_afterstart1="ifconfig lagg0 10.51.38.130 netmask
255.255.255.192 up"
jail_mail_exec_afterstart2="ifconfig lagg1 50.97.114.188 netmask
255.255.255.240 up"
Esta certo esse setup acima para o jail que quero criar ?
Nao entendi direito os passos e relacao entre as coisas...
Quero rodar essa jail aí pra ver se o iredmail funciona...
[]´s
Mais detalhes sobre a lista de discussão freebsd