The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 New FreeBSD/Jail User
Author: kwortman 
Date:   05-06-06 13:32

Hello All,

I am an IT Manager at a company who runs postfix/spamassassin/amavisd-new within a freebsd Jail eenviroment. I am fairly new to the FreeBSD world and am try to rebuild these smtp gateways with new software. THe current version are BSD 4.8 and I have a 6.0 box setup.

I have successfully created the jail (/usr/jai/smtp1) however a quirk that happens and am hoping i can get some help to fix it.

If I restart the entire box and then manually restart the jail (not ready to move on to automagically having start on boot yet) I am having to tell the host to mount_devfs everytime. Is this normal?

In the 4.8 jail I see no such commands in the startup script.

I also would like to know how I can get access to the CD-Rom within the jail and ping. I need to install postfix in the jailed environment, but currently cant do it as the jail has no access to the cd-rom. As for ping, I find it a helpful troubleshooting tool, so would like to have it in the jail.

Please ignore my ignorance/stupidity with all of the above. As I stated, I am fairly new to the FreeBSD world, but would like to learn it.

Thanks in advance for any help

V/r

Kevin Wortman

Reply To This Message
 
 Re: New FreeBSD/Jail User
Author: Dan 
Date:   11-06-06 15:14

kwortman wrote:

> If I restart the entire box and then manually restart the jail
> (not ready to move on to automagically having start on boot
> yet) I am having to tell the host to mount_devfs everytime. Is
> this normal?

I think so. Try reading this:

http://www.freebsddiary.org/jail-5.php

> I also would like to know how I can get access to the CD-Rom
> within the jail and ping.

Ping will not work.

> I need to install postfix in the
> jailed environment, but currently cant do it as the jail has no
> access to the cd-rom. As for ping, I find it a helpful
> troubleshooting tool, so would like to have it in the jail.

What do you mean by no access to the CDROM? Please elaborate in the form of "I do this... I see this error" or something like that.

--
Webmaster

Reply To This Message
 
 Re: New FreeBSD/Jail User
Author: drnez 
Date:   25-07-06 21:53

FreeBSD 4.8 did not have devfs, hence why there is no option for it on your previous setup. The jail should be setup using freebsd RC system. Here is a quick example of the entries you need in /etc/rc.conf on the HOST

jail_enable="YES"
jail_list="myjail"
jail_myjail_rootdir="/usr/home/jails/myjail"
jail_myjail_hostname="myjail.example.com"
jail_myjail_ip="10.0.0.20"
jail_myjail_exec_start="/bin/sh /etc/rc"
jail_myjail_devfs_enable="YES"

you cannot use raw ip sockets within the jail, its just a limitation of the system. so things like ping, and traceroute just wont work.

You do not need the CD-ROM to install postfix, or anything really. you should be using the ports system to do this. Take a look at section 4 of the handbook (http://www.freebsd.org/handbook/) and also `man ports`

Hope this helps

-Frank

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org