What is the equivalent of FreeBSD's /etc/rc.conf in pfSense 2.1?



  • Hi:

    Where do I append the /etc/rc.conf parameters in pfSense 2.1 as there is no such file?

    The standard files stated in FreeBSD man page on rc.conf (http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5) are not there except /etc/default/rc.conf which FreeBSD restricts to make changes.

    Appreciate it where do I make changes in pfSense when I need to make changes in FreeBSD default installation. Thanks!



  • pfSense is using freebsd but not the freebsd rc system for configuration.
    Usually for extending pfSense you need to use packages or some other form.

    State what you are trying to do so some guidance can be given.



  • @ermal:

    pfSense is using freebsd but not the freebsd rc system for configuration.
    Usually for extending pfSense you need to use packages or some other form.

    State what you are trying to do so some guidance can be given.

    Trying to start ezjail and enable zfs to mount zpool at boot time. Plus some services like rpcbind, mountd and nfs_server. In vanilla FreeBSD, I used to append the following lines to /etc/rc.conf:

    ezjail_enable="YES"
    zfs_enable="YES"
    rpcbind_enable="YES"
    mountd_enable="YES"
    nfs_server_enable="YES"
    

    and in /usr/local/etc/ezjail.conf:

    ezjail_use_zfs="YES"
    ezjail_use_zfs_for_jails="YES"
    ezjail_jailzfs="zpool/jails"
    

    Thanks!



  • BTW, I read at http://doc.pfsense.org/index.php/Samba that creating /etc/rc.conf.local seems to accomodate what /etc/rc.conf intends to do in vanilla FreeBSD (as quoted below). But not sure whether it works in pfSense 2.1?.

    Create file

    /etc/rc.conf.local

    samba_enable="YES"
    nmbd_enable="YES"
    smbd_enable="YES"
    winbindd_enable="YES"