I have a FreeBSD server running 6.2 that has two jails configured. As they currently sit, they work perfectly fine. The only issue I currently have is stopping them using the conventional method:

  /etc/rc.d/jail stop jail_name

It seems the jails do not stop even though the id files within:

  /var/run/jail_jail_name.id

cease to exist after the stop. 'jls' even shows the two jails as still running. They both are running BIND and do have sshd enabled. After the stop has been issued, you can not ssh into the jails which gives the illusion the jails have stopped. However, you can still access the jails from the server running them using:

  jexec jail_id /bin/sh

Can someone give me some insight on what I might be doing wrong?

Below is the jail config part in the mail server rc.conf and the contents of the rc.conf in the two jails.

Main server jail portion /etc/rc.conf:

  jail_enable="YES"
  jail_list="jail_1 jail_2"
  jail_set_hostname_allow="NO"

  jail_ns1_ynp_rootdir="/home/hoosegow/jail_1"
  jail_ns1_ynp_hostname="jail1.example.com"
  jail_ns1_ynp_ip="192.168.1.50"
  jail_ns1_ynp_devfs_enable="YES"

  jail_dns2_ndu_rootdir="/home/hoosegow/jail_2"
  jail_dns2_ndu_hostname="jail2.example.com"
  jail_dns2_ndu_ip="192.168.1.51"
  jail_dns2_ndu_devfs_enable="YES"

jail_1 /etc/rc.conf:

  defaultrouter="192.168.1.1"
  hostname="jail1.example.com"
  ifconfig_rl0="inet 192.168.1.50 netmask 255.255.255.0"

  named_enable="YES"
  named_flags="-c /etc/namedb/named.conf"
  named_chrootdir=""
  syslogd_flags="-ss"
  sshd_enable="YES"

jail_2 /etc/rc.conf:

  defaultrouter="192.168.1.1"
  hostname="jail2.example.com"
  ifconfig_rl0="inet 192.168.1.51 netmask 255.255.255.0"

  named_enable="YES"
  named_flags="-c /etc/namedb/named.conf"
  named_chrootdir=""
  syslogd_flags="-ss"
  sshd_enable="YES"
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to