Hallo zusammen,
im Forum habe ich hier schon einige Beiträge gelesen und auch google befragt. Leider halfen mir die Antworten nicht weiter. Hier einmal die kurze Vorgeschichte bzw. das was es werden soll.
Jails verwalte ich mich ezjail v.3.4.x. Im frischen Jail wird keine Route gefunden
z.B.
Der Host hatte vorher ein IP via DHCP. Manuel zugewiesene funktioniert hier auch. Nur eben im Jail nicht. Hier die, denke ich, nötigen configs.
Host:
Jail:
Danke im Voraus für Hinweise und Hilfe.
runBSD Grüße
im Forum habe ich hier schon einige Beiträge gelesen und auch google befragt. Leider halfen mir die Antworten nicht weiter. Hier einmal die kurze Vorgeschichte bzw. das was es werden soll.
Jails verwalte ich mich ezjail v.3.4.x. Im frischen Jail wird keine Route gefunden
No route to host
.z.B.
Bash:
$ pkg info
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/Latest/pkg.txz: No route to host
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
Der Host hatte vorher ein IP via DHCP. Manuel zugewiesene funktioniert hier auch. Nur eben im Jail nicht. Hier die, denke ich, nötigen configs.
Host:
...
ifconfig_re0_ipv6="inet6 accept_rtadv"
#ifconfig_re0="DHCP"
ifconfig_re0="192.168.178.10 netmask 255.255.255.0"
defaultrouter="192.168.178.1"
ifconfig_re0_alias0="inet 192.168.178.11 netmask 255.255.255.0 broadcast 192.168.178.255"
...
ifconfig_re0_ipv6="inet6 accept_rtadv"
#ifconfig_re0="DHCP"
ifconfig_re0="192.168.178.10 netmask 255.255.255.0"
defaultrouter="192.168.178.1"
ifconfig_re0_alias0="inet 192.168.178.11 netmask 255.255.255.0 broadcast 192.168.178.255"
...
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether HIDE
inet 192.168.178.10 netmask 0xffffff00 broadcast 192.168.178.255
inet 192.168.178.11 netmask 0xffffff00 broadcast 192.168.178.255
inet6 fe80::HIDE%re0 prefixlen 64 scopeid 0x1
inet6 2001:HIDE prefixlen 64 autoconf
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether HIDE
inet 192.168.178.10 netmask 0xffffff00 broadcast 192.168.178.255
inet 192.168.178.11 netmask 0xffffff00 broadcast 192.168.178.255
inet6 fe80::HIDE%re0 prefixlen 64 scopeid 0x1
inet6 2001:HIDE prefixlen 64 autoconf
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
# Generated by resolvconf
nameserver fd00::HIDE
nameserver fd00::HIDE
...
export jail_JAILNAME_ip="re0|192.168.178.11/24"
...
export jail_JAILNAME_ip="re0|192.168.178.11/24"
...
Routing tables
Internet:
Destination Gateway Flags Netif Expire
127.0.0.1 link#2 UH lo0
192.168.0.0/16 link#1 U re0
192.168.178.10 link#1 UHS lo0
192.168.178.11 link#1 UHS lo0
Internet6:
...
Internet:
Destination Gateway Flags Netif Expire
127.0.0.1 link#2 UH lo0
192.168.0.0/16 link#1 U re0
192.168.178.10 link#1 UHS lo0
192.168.178.11 link#1 UHS lo0
Internet6:
...
Jail:
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether HIDE
inet 192.168.178.11 netmask 0xffffff00 broadcast 192.168.178.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
groups: lo
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether HIDE
inet 192.168.178.11 netmask 0xffffff00 broadcast 192.168.178.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
groups: lo
search duckduckgo.com
nameserver 192.168.178.1
nameserver 9.9.9.9
nameserver fd00::HIDE
nameserver 192.168.178.1
nameserver 9.9.9.9
nameserver fd00::HIDE
Routing tables
Internet:
Destination Gateway Flags Netif Expire
192.168.178.11 link#1 UHS lo0
Internet:
Destination Gateway Flags Netif Expire
192.168.178.11 link#1 UHS lo0
Danke im Voraus für Hinweise und Hilfe.
runBSD Grüße