Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2000 18:29:41 -0500
From:      "Dave VanAuken" <dave@hawk-systems.com>
To:        <freebsd-isp@FreeBSD.ORG>
Subject:   Jail problems
Message-ID:  <DBEIKNMKGOBGNDHAAKGNKEMLCKAA.dave@hawk-systems.com>
In-Reply-To: <20001231183152.A68613@skriver.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
4.1.1 on intel box

fresh install with all libs
had to do make world to get all mappings correct (was getting problems
finding some files during the make processes for the jail setup.

following the man pages have the jail setup

once created we start the jail and begin to setup environment...

jail start command (as in man page)
	jail /usr/home/lcadmin testhostname 192.168.1.111 /bin/sh

set some environment variables with sysinstall in the jail

**problem 1: cannot set root password for jail - get "Mismatch; try
again, EOF to quit." continuously dumped to the screen... have to
reboot.

skipping that problem... we set accounts, timezone, etc...  not
installing any packages yet
add ip address to NIC... ifconfig... as in man for jail
mount the file system as in man
run jail command as in man
	jail /usr/home/lcadmin testhostname 192.168.1.111 /bin/sh /etc/rc

do a ps to ensure the jailed processes are running...  yes

**problem 2: cannot ping to IP address from host machine, cannot
connect to IP address via telnet - get "All Network ports in use" from
other machines and "time out" from host machine

not sure what the problem is...  ifconfig shows the aliased IP
address, df shows the mapped file system, ps shows the jailed
processes...

appreciate any assistance, output from the jail command listed below.

Dave



nx1# jail /usr/home/lcadmin testhostname 192.168.1.111 /bin/sh /etc/rc
Skipping disk checks ...
adjkerntz[1476]: sysctl(set_disrtcset): Operation not permitted
dmesg: /dev/mem: No such file or directory
Doing initial network setup:.
ifconfig: ioctl (SIOCDIFADDR): permission denied
ifconfig: ioctl (SIOCDIFADDR): permission denied
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::250:daff:fe66:8f4c%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.1.111 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:50:da:66:8f:4c
        media: autoselect (10baseT/UTP) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UT
P <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0xa
        inet6 ::1 prefixlen 128
route: socket: Operation not permitted
Additional routing options: tcp extensions=NOsysctl:
net.inet.tcp.rfc1323: Opera
tion not permitted
 TCP keepalive=YESsysctl: net.inet.tcp.always_keepalive: Operation not
permitted
.
routing daemons:.
chflags: /dev/tty[pqrsPQRS]*: No such file or directory
chmod: /dev/tty[pqrsPQRS]*: No such file or directory
chown: /dev/tty[pqrsPQRS]*: No such file or directory
additional daemons: syslogdsyslogd: child pid 1561 exited with return
code 1
.
Doing additional network setup:.
Starting final network daemons:.
setting ELF ldconfig path: /usr/lib /usr/lib/compat
setting a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
starting standard daemons: inetd cron sendmail.
Initial rc.i386 initialization:.
rc.i386 configuring syscons: blank_time/etc/rc.i386: cannot open
/dev/ttyv0: no
such file
.
additional ABI support:.
Local package initialization:.
Additional TCP options:.
Sun Dec 31 16:55:09 MST 2000
nx1#



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DBEIKNMKGOBGNDHAAKGNKEMLCKAA.dave>