Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Code Block
languagephp
titleContent
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.