I have no internet connection from the jail.
DNS lookup to the host's unbound cache (address in resolv.conf) works,
However, in the jail I cannot make any external internet connection at all.
I made sure that no firewall is running neither on the host or in the jail. I even have set
In spite of all this I get a complaint even at the simplest ping:
Any idea?
Edit:
# ifconfig
host rc.conf:
host jail.conf:
host sysctl.conf:
DNS lookup to the host's unbound cache (address in resolv.conf) works,
drill
ing is possible.However, in the jail I cannot make any external internet connection at all.
I made sure that no firewall is running neither on the host or in the jail. I even have set
security.jail.allow.raw_sockets=1
in the hosts' sysctl.conf.In spite of all this I get a complaint even at the simplest ping:
Code:
# ping 127.0.0.1
ping: ssend socket: Operation not permitted
#
Any idea?
Edit:
ifconfig
from the jail:
Code:
# ifconfig
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 00:15:17:6f:b3:c3
inet 192.168.178.102 netmask 0xffffffff broadcast 192.168.178.102
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
groups: lo
#
ifconfig
from the host:# ifconfig
Code:
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
ether 00:15:17:6f:b3:c3
inet 192.168.178.29 netmask 0xffffff00 broadcast 192.168.178.255
inet 192.168.178.102 netmask 0xffffffff broadcast 192.168.178.102
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
groups: lo
#
Code:
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="noname"
ifconfig_em1="inet 192.168.178.29 netmask 255.255.255.0"
defaultrouter="192.168.178.1"
moused_enable="YES"
# ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"
local_unbound_enable="YES"
jail_enable="YES"
Code:
www80 {
path = "/usr/home/j/www80";
mount.devfs;
host.hostname = "www";
host.domainname = "example.com";
ip4.addr = "192.168.178.102";
interface = "em1";
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
}
Code:
#security.bsd.see_other_uids=0
security.bsd.unprivileged_read_msgbuf=0
security.bsd.unprivileged_proc_debug=0
security.bsd.stack_guard_page=1
security.jail.allow_raw_sockets=1