Hi all !
First, please forgive me for my bad english, that's not my native language.
I will soon remove Debian from my personal server to put FreeBSD instead, but I'm a newbie in *BSD's world. That's why I decided to train myself a bit with VirtualBox.
So I installed FreeBSD 8.2 into a virtual machine.
Everything went well, but when created a jail (with ezjail), it became a little more complicated.
In fact, when I enter into the jail, I haven't access to the Internet.
Here are some outputs of commands and some config files. I you need me to give you more details, just ask me.
Into the jail :
Out of the jail :
I hope you can help me, because I would really like to switch my server from Debian to FreeBSD, and the jails are something I'd really like to use.
Thanks in advance !
First, please forgive me for my bad english, that's not my native language.
I will soon remove Debian from my personal server to put FreeBSD instead, but I'm a newbie in *BSD's world. That's why I decided to train myself a bit with VirtualBox.
So I installed FreeBSD 8.2 into a virtual machine.
Everything went well, but when created a jail (with ezjail), it became a little more complicated.
In fact, when I enter into the jail, I haven't access to the Internet.
Here are some outputs of commands and some config files. I you need me to give you more details, just ask me.
Into the jail :
Code:
Apache# dig google.fr
; <<>> DiG 9.6.-ESV-R3 <<>> google.fr
;; global options: +cmd
;; connection timed out; no servers could be reached
Code:
Apache# cat /etc/resolv.conf
nameserver 192.168.1.1
Code:
Apache# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 08:00:27:bd:31:01
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet 10.1.1.2 netmask 0xffffff00
Out of the jail :
Code:
# cat /etc/rc.conf
hostname=".home"
ifconfig_em0="DHCP"
inetd_enable="YES"
keymap="fr.iso.acc"
sshd_enable="YES"
#Ezjail
ezjail_enable="YES"
cloned_interfaces="lo1"
ifconfig_lo1="inet 10.1.1.2 netmask 255.255.255.0"
Code:
# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 08:00:27:bd:31:01
inet 192.168.1.25 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet 10.1.1.2 netmask 0xffffff00
I hope you can help me, because I would really like to switch my server from Debian to FreeBSD, and the jails are something I'd really like to use.
Thanks in advance !