[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

n00b questions



Hello,

I'm new to jails, so please be patient. Thanks

I have installed ezjail and setup three jails. In the host system, the
rc.conf has entries for:
{original file at the bottom}
- ipconfig_em0_alias0, alias1, alias2
- hostname
- sshd_enable
- ...etc

I see in the /Jailroot/etc for each jail, copies (???) of the host /etc/"files"

For each jail, am I correct to presume that I need to modify each of
the following for each jail.
- hosts
- rc.conf
- ssh/sshd_config

In terms of rc.conf, for jail-1 (192.168.18.31)
{ please review commeneted lines in below snip}
- do I remove the other ifconfig statements?
- do I change the hostname to jail1.bm.local

Basically, do I change/modify the files in etc as they relate to a
given jail's IP/hostname and/or remove entries that do not correspond
to a given jail??

One other thing. In order to install applications like php and mysql,
I need to have(or should have) ssh working. Then just ssh into a given
jail console to install packages/ports.  Is this correct as well ?

TIA, Don
----------------------
{snip.. Host system.}
----------------------
# This file now contains just the overrides from /etc/defaults/rc.conf.
# named_enable="YES"
saver="blank"
#sshd_enable="YES"
# -- sysinstall generated deltas -- # Tue Feb  6 14:00:14 2007
ifconfig_em0="inet 192.168.18.30  netmask 255.255.255.0"
ifconfig_em0_alias0="inet 192.168.18.31 netmask 255.255.255.0"
ifconfig_em0_alias1="inet 192.168.18.32 netmask 255.255.255.0"
ifconfig_em0_alias2="inet 192.168.18.33 netmask 255.255.255.0"
defaultrouter="192.168.18.1"
hostname="p0030.bm.local"
sendmail_enable="NO"
syslogd_enable="YES"
syslogd_flags="-ss"
log_in_vain="YES"
accounting_enable="YES"
clear_tmp_enable="YES"
update_motd="NO"
icmp_drop_redirect="YES"
icmp_log_redirect="YES"
icmp_bmcastecho="NO"
icmp_bandlim="YES"
tcp_keepalive="YES"
tcp_extensions="NO"
kern_securelevel_enable="YES"
kern_securelevel="-1"
ipfilter_enable="YES"
ipfilter_rules="/etc/ipf.rules"
firewall_logging="YES"
ipmon_enable="YES"
ipmon_flags="-Dvn /var/log/firewall.log"
sshd_enable="YES"
ezjail_enable="YES"
{.....end-snip}

----------------------
{snip..jail-1.}
----------------------
##	 	Jail-1 rc.conf
##	 	named_enable="YES"
saver="blank"
ifconfig_em0="inet 192.168.18.30  netmask 255.255.255.0"
ifconfig_em0_alias0="inet 192.168.18.31 netmask 255.255.255.0"
##		ifconfig_em0_alias1="inet 192.168.18.32 netmask 255.255.255.0"
##		ifconfig_em0_alias2="inet 192.168.18.33 netmask 255.255.255.0"
defaultrouter="192.168.18.1"
#    	hostname="p0030.bm.local"
hostname="jail-1.bm.local"
sendmail_enable="NO"
syslogd_enable="YES"
syslogd_flags="-ss"
log_in_vain="YES"
accounting_enable="YES"
clear_tmp_enable="YES"
update_motd="NO"
icmp_drop_redirect="YES"
icmp_log_redirect="YES"
icmp_bmcastecho="NO"
icmp_bandlim="YES"
tcp_keepalive="YES"
tcp_extensions="NO"
kern_securelevel_enable="YES"
kern_securelevel="-1"
#   	ipfilter_enable="YES"
#		ipfilter_rules="/etc/ipf.rules"
#		firewall_logging="YES"
#		ipmon_enable="YES"
#		ipmon_flags="-Dvn /var/log/firewall.log"
sshd_enable="YES"
#		ezjail_enable="YES"
{.....end-snip}