The jail is slow to start. Sometimes drill is fast, most of the times it takes a little bit more than ten seconds to retrieve.
In the jail (similar to the hosts' files):
The jail.conf (network only):
In host's pf.conf:
I installed elinks in the jail and can see that it takes ten or more seconds to resolve the hostname and some more seconds to make the connection. After the connection is established, it seems to be fast to download files.
So, as I have no problems in the host with this setup, what is the cause of this misbehavior in the jail?
In the jail (similar to the hosts' files):
Code:
# cat /etc/hosts | grep -v '^#'
::1 deco
::21 jail
127.0.0.1 deco
127.0.0.21 jail
169.254.0.11 deco
169.254.0.21 jail
Code:
# cat /etc/resolv.conf
# Generated by resolvconf
nameserver 108.61.10.10
Code:
# ifconfig
vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 56:00:00:19:21:b6
inet 169.254.0.21 netmask 0xffffffff broadcast 169.254.0.21
media: Ethernet 10Gbase-T <full-duplex>
status: active
vtnet1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 5a:00:00:19:21:b6
media: Ethernet 10Gbase-T <full-duplex>
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.21 netmask 0xffffffff
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
Code:
# drill freebsd.org
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 13031
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0
;; QUESTION SECTION:
;; freebsd.org. IN A
;; ANSWER SECTION:
freebsd.org. 600 IN A 8.8.178.110
;; AUTHORITY SECTION:
freebsd.org. 600 IN NS ns3.isc-sns.info.
freebsd.org. 600 IN NS ns1.isc-sns.net.
freebsd.org. 600 IN NS ns2.isc-sns.com.
;; ADDITIONAL SECTION:
;; Query time: 10093 msec
;; SERVER: 108.61.10.10
;; WHEN: Fri Dec 11 00:51:40 2015
;; MSG SIZE rcvd: 133
The jail.conf (network only):
Code:
interface = "vtnet0";
ip4.addr = "vtnet0|169.254.0.21/32";
ip4.addr += "lo1|127.0.0.21/32";
In host's pf.conf:
Code:
nat pass on $ext_if from $jail1 to any -> ($ext_if)
I installed elinks in the jail and can see that it takes ten or more seconds to resolve the hostname and some more seconds to make the connection. After the connection is established, it seems to be fast to download files.
So, as I have no problems in the host with this setup, what is the cause of this misbehavior in the jail?