At the file "/modules/servers/freenas/ipconfig.php" you can specificate which IPs should be allowed by default for

  • NFS
  • iSCSI
  • Samba

The IPs listed in this file will be allowed when a service get activated.

Content
function freenas_setAllowedIPs ($pid) {
    return array ( 
				   'nfs' => array ('1.2.3.4'),
                   'cifs' => array('1.2.3.4'),
                   'iscsi' => 'ALL',
                 );
}

The file is open for modifications, so you can integrate your own code to return other IPs based on the service id.

  • No labels