Created
April 13, 2017 12:40
-
-
Save kitten77/f4de546f443ecbfbba067fc7fce05aed to your computer and use it in GitHub Desktop.
freebsd jail ipv6 not starting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jail -c ip6.addr="em0|2a01:4f8:151:64a3::1/64" ip6.saddrsel=1 ip6=new name=ioc-a3cbb55a-2765-4033-9dba-3141ce2add17 host.domainname=none host.hostname=irssi.g.l9 path=/iocage/jails/a3cbb55a-2765-4033-9dba-3141ce2add17/root securelevel=2 host.hostuuid=a3cbb55a-2765-4033-9dba-3141ce2add17 devfs_ruleset=4 enforce_statfs=2 children.max=0 allow.set_hostname=1 allow.sysvipc=0 sysvmsg=new sysvsem=new sysvshm=new allow.raw_sockets=0 allow.chflags=0 allow.mount=0 allow.mount.devfs=0 allow.mount.nullfs=0 allow.mount.procfs=0 allow.mount.tmpfs=0 allow.mount.zfs=0 allow.quotas=0 allow.socket_af=0 exec.prestart=/usr/bin/true exec.poststart=/usr/bin/true exec.start="sh /etc/rc" exec.prestop=/usr/bin/true exec.stop="/bin/sh /etc/rc.shutdown" exec.clean=1 exec.timeout=60 stop.timeout=30 mount.fstab="/iocage/jails/a3cbb55a-2765-4033-9dba-3141ce2add17/fstab" mount.devfs=1 mount.fdescfs=1 allow.dying exec.consolelog=/iocage/log/ioc-a3cbb55a-2765-4033-9dba-3141ce2add17-console.log persist | |
jexec 39 cat /var/log/messages | |
### Have also tried | |
## Apr 13 10:30:33 irssi syslogd: kernel boot file is /boot/kernel/kernel | |
## Apr 13 10:30:33 irssi sshd[92863]: error: Bind to port 22 on 2a01:4f8:151:64a3::1 failed: Can't assign requested address. | |
Apr 13 10:34:58 irssi syslogd: kernel boot file is /boot/kernel/kernel | |
Apr 13 10:34:58 irssi sshd[93201]: error: Bind to port 22 on :: failed: Can't assign requested address. | |
Apr 13 10:34:58 irssi sshd[93201]: fatal: Cannot bind any address | |
jexec 39 cat /etc/rc.conf | |
host_hostname="irssi.g.l9" | |
cron_flags="$cron_flags -J 15" | |
# Disable Sendmail by default | |
sendmail_enable="NONE" | |
sendmail_submit_enable="NO" | |
sendmail_outbound_enable="NO" | |
sendmail_msp_queue_enable="NO" | |
# Run secure syslog | |
syslogd_flags="-c -ss" | |
# Enable IPv6 | |
ipv6_activate_all_interfaces="YES" | |
#sshd_enable="YES" | |
netwait_enable="YES" | |
netwait_ip="2a01:4f8:151:64a3::1" | |
netwait_if="em0" | |
sshd_enable="YES" | |
jexec 39 cat /etc/ssh/sshd_config | |
<--- relevant | |
#Port 22 | |
#AddressFamily any | |
#ListenAddress 0.0.0.0 | |
#ListenAddress 2a01:4f8:151:64a3::1 | |
#ListenAddress :: | |
--> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jexec 39 service sshd start
Performing sanity check on sshd configuration.
Starting sshd.
now it runs fine
jexec 39 netstat -an
netstat: kvm not available: /dev/mem: No such file or directory
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp6 0 0 2a01:4f8:151:64a.22 . LISTEN
Active UNIX domain sockets
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
fffff8004d0385a0 dgram 0 0 0 fffff80013f91c30 0 0
fffff80013f91c30 dgram 0 0 fffff8019d84b3b0 0 fffff8004d0385a0 0 /var/run/logpriv
fffff80013f91d20 dgram 0 0 fffff8019d719ce8 0 0 0 /var/run/log