Jails: An rc.d script

From: William M. Grim (wgrim_at_siue.edu)
Date: 05/23/04

  • Next message: William M. Grim: "Re: Jails: An rc.d script"
    Date: Sat, 22 May 2004 20:04:51 -0500
    To: hackers@freebsd.org
    
    
    

    Hi!

    I've written an rc.d script that can start/stop/restart jails, if they
    follow a certain pattern of setup. I'm strongly considering the
    placement of this in ports or base (ports seems most appropriate).

    Basically, if you have jails in /usr/local/var/jail/<IP>, my script can
    start it up automatically, as long as the IP is reachable by `host` (I
    know, it requires a little more work to remove this dependency for
    192.168. addresses, etc).

    However, I was wondering if anyone would want to test it? All you have
    to do is take my attached script and place it in /usr/local/etc/rc.d/.
    If you have your jails located somewhere else, then edit the JAILBASE=
    line in the script.

    I would appreciate any constructive criticism about this script so that
    I can make it better. If you have any improvements you make, feel free
    to send them to me as well. I'll attempt to make it better over time
    and to write a man page for it.

    Many thanks.

    -- 
    William Michael Grim
    Student, Southern Illinois University at Edwardsville
    Unix Network Administrator, SIUE, Computer Science dept.
    Phone: (217) 341-6552
    Email: wgrim@siue.edu
    
    

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: William M. Grim: "Re: Jails: An rc.d script"

    Relevant Pages

    • Re: Problem with script to add printers ports, need help.
      ... >> first want to add the printer ports but I am running into a problem. ... >> Just for the heck of it I ran the template script from the script center and ... > and ports on local and remote computers. ... > Instrumentation scripts in Windows Server 2003, ...
      (microsoft.public.windows.server.scripting)
    • Re: [Full-disclosure] Brute force attack - need your advice
      ... But please state a config that someone with experience can not get into, is more of a point that security is ever evolving. ... Yup it is security by obscurity and it will help against a script kiddie that won't take the time to scan all ports, thats why I suggested move to a high non-standard port. ... I'm not talking about downloading blacklists but dynamic firewall rules and scripting to achieve a dynamic list based on ranking of attacks against the box. ...
      (Full-Disclosure)
    • Re: portupgrade script problem
      ... >I have a script I am running to update my ports. ... While many of us do run a nightly cron job to upgrade the ports tree, ...
      (comp.unix.bsd.freebsd.misc)
    • Re: allowing ordinary users to open privileged ports
      ... Creating a setuid shell script creates a major security hole. ... allowing ordinary users to open privileged ports ... > server application using the ports specified at configuration. ... > client shares the server application's port settings. ...
      (Focus-SUN)
    • Re: a script to add a new printer
      ... the printer driver file is ... > with the MS Windows 2003 Server Resource Kit from a script. ... > and ports on local and remote computers. ... > Add and delete a local or remote printer. ...
      (microsoft.public.scripting.wsh)