Quote:
Originally Posted by scottro
the alias should be 255.255.255.255 (or 0xffffffff (that's zero x, not the capital letter o.)
|
I had problems using this setup before. I know I shouldn't have, but I did. So I changed all my aliases to 255.255.255.0 and everything worked fine. So technically that shouldn't matter much.
Quote:
Originally Posted by deemon
You don't have to (and probably shouldn't) start the jail explicitly with separate jail command because ezjail.sh rc script already does that.
|
Without configuring/starting sshd within the jail, how else can one access the jailed environment? I've always used the above jail command to "access" a newly created jail to do some configuring before I start any daemons. So this, also, is not the cause of his problems.
Check your /usr/jail/whatever/bin and make sure it's a softlink (ln -s) to "/basejail/bin".
Here's an example of one of my jails (note: I have customized the jail layout a bit but you should get the general gist of things)
Code:
-r--r--r-- 1 root wheel 6188 May 13 02:05 COPYRIGHT
lrwxrwxrwx 1 root wheel 9 May 13 02:05 bin -> /fbsd/bin
lrwxrwxrwx 1 root wheel 10 May 13 02:05 boot -> /fbsd/boot
drwxr-xr-x 9 root wheel 512 May 28 21:31 contrib
dr-xr-xr-x 4 root wheel 512 Jun 11 20:17 dev
drwxr-xr-x 21 root wheel 2560 Jun 9 02:04 etc
drwxr-xr-x 9 root wheel 512 Apr 28 21:26 fbsd
lrwxr-xr-x 1 root wheel 8 May 13 02:09 home -> usr/home
lrwxrwxrwx 1 root wheel 9 May 13 02:05 lib -> /fbsd/lib
lrwxrwxrwx 1 root wheel 13 May 13 02:05 libexec -> /fbsd/libexec
drwxr-xr-x 2 root wheel 512 May 13 02:05 media
drwxr-xr-x 2 root wheel 512 May 13 02:05 mnt
dr-xr-xr-x 1 root wheel 0 Jun 13 17:40 proc
lrwxrwxrwx 1 root wheel 12 May 13 02:05 rescue -> /fbsd/rescue
drwx------ 2 root wheel 512 May 24 06:54 root
drwxrwx--- 3 root sysadmin 512 May 23 17:25 sahome
lrwxrwxrwx 1 root wheel 10 May 13 02:05 sbin -> /fbsd/sbin
lrwxrwxrwx 1 root wheel 11 May 13 02:05 sys -> usr/src/sys
drwxrwxrwt 9 root wheel 512 Jun 13 11:52 tmp
drwxr-xr-x 6 root wheel 512 May 13 02:43 usr
drwxr-xr-x 23 root wheel 512 Jun 11 20:17 var
drwxr-xr-x 6 root www 512 Jun 2 12:48 www