Navigation
Related 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 my-rule term my-term from applications] hierarchy level:
[edit]services {stateful-firewall {rule my-rule {term my-term {from {applications junos-ftp; #Reference predefined statement, junos-ftp}}}}}