Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

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}}}}}

Published: 2012-11-27

Published: 2012-11-27