Changes between Version 37 and Version 38 of FreeBSDJail


Ignore:
Timestamp:
10/27/10 08:35:52 (13 years ago)
Author:
Rick van der Zwet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSDJail

    v37 v38  
    3232}}}
    3333
     34Mirror the file:/usr/ports within the jail using nullfs(5):
    3435master# mkdir /usr/jail/pzwet/usr/ports
    3536{{{#!sh
     
    3940}}}
    4041
     42Make it do DNS resolving:
     43master# cp /etc/resolv.conf //usr/jail/pzwet/etc/resolv.conf
     44
     45Start the jail and login to it:
    4146master# /etc/rc.d/jail start pzwet
     47Tip: The number varies every time the jail restarts (increment) and starts over when the machine is rebooted. There are tools around in ports which provides wrappers around them, like ez-jails. But I prefer to stick to ''base'' setup only.
     48master# jls
     49{{{
     50   JID  IP Address      Hostname                      Path
     51    27  178.63.108.109  pzwet.vanderzwet.net          /usr/jail/pzwet
     52}}}
     53master# jexec 27 csh
    4254
    43 master# cp /etc/resolv.conf //usr/jail/pzwet/etc/resolv.conf
     55
     56
     57
    4458
    4559== Configure Jail ==