[edit services] Hierarchy Level
To configure services, include the following statements at the [
edit services] hierarchy level of the configuration:[edit services]adaptive-services-pics {traceoptions{flagflag;}}flow-collector {analyzer-addressaddress;analyzer-idname;destinations {ftp:url {password "password";}file-specification {variantvariant-number{data-formatformat;name-formatformat;transfer { record-levelnumber; timeoutseconds; }}}interface-map {collectorinterface-name;file-specificationvariant-number;interface-name{file-specificationvariant-number;collectorinterface-name;}}retrynumber;retry-delayseconds;transfer-log {destinations {ftp:url{password "password";usernameusername;}}filename "file-name";intervalminutes;maximum-sizenumber;}}ids { rule rule-name {match-direction (input | output | input-output);termterm-name{from {applications [application-names];application-sets [set-names];destination-addressaddress;source-addressaddress;}then {aggregation{destination-prefixprefix-value;source-prefixprefix-value;}(force-entry|ignore-entry);logging {syslog;thresholdrate;}syn-cookie {mssvalue;thresholdrate;}}}}rule-setrule-set-name{[ rulerule-names];}}ipsec-vpn {ike{proposalproposal-name{authentication-algorithm(md5 | sha1);authentication-method(dsa-signatures |pre-shared-keys | rsa-signatures);descriptiondescription;dh-group(group1 | group2);encryption-algorithm(3des-cbc | des-cbc);lifetime-secondsseconds;}policypolicy-name{descriptiondescription;local-id{fqdn [values];ipv4_addr [values];key_id [values];}mode(aggressive | main);pre-shared-key(ascii-textkey| hexadecimalkey);proposals[proposal-names];remote-id{fqdn [values];ipv4_addr [values];key_id [values];}}}ipsec{proposalproposal-name{authentication-algorithm(hmac-md5-96 | hmac-sha1-96);descriptiondescription;encryption-algorithm(3des-cbc | des-cbc);lifetime-secondsseconds;protocol(ah | esp | bundle);}policypolicy-name{descriptiondescription;perfect-forward-secrecy{keys (group1 | group2);}proposals[proposal-names];}}rule rule-name {match-direction (input | output);termterm-name{from {destination-addressaddress;source-addressaddress;}then{backup-remote-gatewayaddress;clear-dont-fragment-bit;dynamic{ike-policypolicy-name;ipsec-policypolicy-name;}manual(direction(inbound | outbound | bidirectional) {authentication {algorithm (hmac-md5-96 | hmac-sha1-96);key (ascii-textkey| hexadecimalkey);}auxiliary-spispi-value;encryption {algorithm (des-cbc | 3des-cbc);key (ascii-textkey| hexadecimalkey);}protocol(ah | bundle | esp);spispi-value;}}no-anti-replay:remote-gatewayaddress;syslog;}}}rule-setrule-set-name{[ rulerule-names];}}l2tp {tunnel-groupname{hello-intervalseconds;hide-avps;l2tp-access-profileprofile-name;local-gateway addressaddress;maximum-send-windowpackets;ppp-access-profileprofile-name;receive-windowpackets;retransmit-intervalseconds;service-interfaceinterface-name;syslog {hosthostname{servicespriority-level;facility-overridefacility-name;log-prefixprefix-number;}}tunnel-timeoutseconds;}traceoptions{debug-levellevel;filter {protocolname;}flagflag;interfacesinterface-name{debug-levellevel;flagflag;}}}nat {poolnat-pool-name{address (address| address-range lowminimum-valuehighmaximum-value);port (automatic | range lowminimum-valuehighmaximum-value);}rule rule-name {match-direction (input | output);termterm-name{from {applications [application-names];application-sets [set-names];destination-addressaddress;source-addressaddress;}then {translated{destination-poolnat-pool-name;source-poolnat-pool-name;translation-type (destinationtype| sourcetype);}syslog;}}}rule-setrule-set-name{[ rulerule-names];}}service-set service-set-name {([ ids-rulesrule-names] | ids-rule-setsrule-set-name);([ ipsec-vpn-rulesrule-names] | ipsec-vpn-rule-setsrule-set-name);([ nat-rulesrule-names] | nat-rule-setsrule-set-name);([ stateful-firewall-rulesrule-names] | stateful-firewall-rule-setsrule-set-name);interface-service {service-interfaceinterface-name;}ipsec-vpn-options {local-gatewayaddress;}next-hop-service {inside-service-interfacename.number;outside-service-interfacename.number;}syslog {hosthostname{servicespriority-level;facility-overridefacility-name;log-prefixprefix-number;}}}adaptive-services-pics{traceoptions{flagflag;}}stateful-firewall {rule rule-name {match-direction (input | output | input-output);termterm-name{from {applications [application-names];application-sets [set-names];destination-addressaddress;source-addressaddress;}then {(accept | discard | reject);allow-ip-option [values];syslog;}}}}rule-setrule-set-name{[ rulerule-names];}}