Technical Documentation

Example: Referencing the Preset Statement From the JUNOS defaults Group

The following example is a preset statement from the JUNOS defaults group that is available for FTP in a stateful firewall:

[edit]groups {junos-defaults {applications {application junos-ftp {# Use FTP default configuration application-protocol ftp; protocol tcp;destination-port 21;}}}

To reference a preset JUNOS default statement from the JUNOS defaults group, include the junos- default-name statement at the applicable hierarchy level. For example, to reference the JUNOS default statement for FTP in a stateful firewall, include the junos-ftp statement at the [edit services stateful-firewall rule rule-name term term-name from applications] hierarchy level:

[edit]services {stateful-firewall {rule my-rule {term my-term {from {applications junos-ftp; #Reference predefined statement, junos-ftp,}}}}}

Published: 2010-01-17