Changes between Version 37 and Version 38 of FreeBSDJail
- Timestamp:
- Oct 27, 2010, 8:35:52 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FreeBSDJail
v37 v38 32 32 }}} 33 33 34 Mirror the file:/usr/ports within the jail using nullfs(5): 34 35 master# mkdir /usr/jail/pzwet/usr/ports 35 36 {{{#!sh … … 39 40 }}} 40 41 42 Make it do DNS resolving: 43 master# cp /etc/resolv.conf //usr/jail/pzwet/etc/resolv.conf 44 45 Start the jail and login to it: 41 46 master# /etc/rc.d/jail start pzwet 47 Tip: 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. 48 master# jls 49 {{{ 50 JID IP Address Hostname Path 51 27 178.63.108.109 pzwet.vanderzwet.net /usr/jail/pzwet 52 }}} 53 master# jexec 27 csh 42 54 43 master# cp /etc/resolv.conf //usr/jail/pzwet/etc/resolv.conf 55 56 57 44 58 45 59 == Configure Jail ==