For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
fmt_version 1.0 action { module ipgpc name ipgpc.classify params { global_stats TRUE }
For an explanation of the opening action statement, refer to How to Create the IPQoS Configuration File and Define Traffic Classes.
class { name smtp enable_stats FALSE next_action markAF13 } class { name news next_action markAF21 } class { name ftp enable_stats TRUE next_action meterftp }
Creates a class called smtp that includes email traffic flows to be handled by the SMTP application
Enables statistics collection for the smtp class. However, because the value of enable_stats is FALSE, statistics for this class are not taken.
Instructs the ipgpc module to pass packets of the smtp class to the markAF13 action statement after ipgpc completes processing.
Creates a class called news that includes network news traffic flows to be handled by the NNTP application.
Instructs the ipgpc module to pass packets of the news class to the markAF21 action statement after ipgpc completes processing.
Creates a class called ftp that handles outgoing traffic that is handled by the FTP application.
Enables statistics collection for the ftp class.
Instructs the ipgpc module to pass packets of the ftp class to the meterftp action statement after ipgpc completes processing.
For more information about defining classes, refer to How to Create the IPQoS Configuration File and Define Traffic Classes.
filter { name smtpout sport smtp class smtp } filter { name newsout sport nntp class news } filter { name ftpout sport ftp class ftp } filter { name ftpdata sport ftp-data class ftp } }
Assigns the name smtpout to the filter.
Selects traffic with a source port of 25, the usual port for the sendmail (SMTP) application.
Identifies the class to which the filter belongs, in this instance, class smtp.
Assigns the name newsout to the filter.
Selects traffic with a source port name of nntp, the usual port name for the network news (NNTP) application.
Identifies the class to which the filter belongs, in this instance, class news.
Assigns the name ftpout to the filter.
Selects control data with a source port of 21, the usual port number for FTP traffic.
Assigns the name ftpdata to the filter.
Selects traffic with a source port of 20, the usual port number for FTP data traffic.
Identifies the class to which the ftpout and ftpdata filters belong, in this instance ftp.
See How to Start the ipqos Service for specific instructions about starting or restarting the service.
See General IPQoS Configuration Planning Task Map for a list of additional changes that might be needed.