This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
технология_jail [2015/05/13 11:50] val [FreeBSD10.X] |
технология_jail [2015/08/26 10:22] val |
||
---|---|---|---|
Line 11: | Line 11: | ||
# mount_cd9660 /dev/cd0 /mnt | # mount_cd9660 /dev/cd0 /mnt | ||
- | # setenv D /var/jail/www2 | + | # setenv D /var/jail/www |
# mkdir -p $D | # mkdir -p $D | ||
Line 69: | Line 69: | ||
exec.start = "/bin/sh /etc/rc"; | exec.start = "/bin/sh /etc/rc"; | ||
exec.stop = "/bin/sh /etc/rc.shutdown"; | exec.stop = "/bin/sh /etc/rc.shutdown"; | ||
- | exec.consolelog = "/var/log/jail.log"; | ||
mount.devfs; | mount.devfs; | ||
allow.set_hostname = 0; | allow.set_hostname = 0; | ||
Line 79: | Line 78: | ||
interface = "em0"; | interface = "em0"; | ||
ip4.addr = "192.168.X.20"; | ip4.addr = "192.168.X.20"; | ||
+ | exec.consolelog = "/var/log/jail_www_console.log"; | ||
} | } | ||
</code><code> | </code><code> | ||
Line 114: | Line 114: | ||
===== Настройка jail ===== | ===== Настройка jail ===== | ||
<code> | <code> | ||
+ | www# hostname | ||
+ | |||
www# cat /etc/rc.conf | www# cat /etc/rc.conf | ||
</code><code> | </code><code> | ||
- | hostname=www.corpX.un | ||
sshd_enable=yes | sshd_enable=yes | ||
</code><code> | </code><code> |