from-zone (Security Policies)
Syntax
from-zone zone-name to-zone zone-name { policy policy-name { description description; match { application { [junos-defaults | application]; any; junos-smtps; junos-imaps; junos-pop3s; } } dynamic-application { [dynamic-application-name |dynamic-application-group-name]; any; none; } destination-address { [address]; any; any-ipv4; any-ipv6; } source-address { [address]; any; any-ipv4; any-ipv6; } source-identity { [role-name]; any; authenticated-user; unauthenticated-user; unknown-user; } source-end-user-profile { profile-name; } } scheduler-name scheduler-name; then { count { alarm { per-minute-threshold number; per-second-threshold number; } } deny; log { session-close; session-init; } permit { application-services { application-firewall { rule-set rule-set-name; } application-traffic-control { rule-set rule-set-name; } gprs-gtp-profile profile-name; gprs-sctp-profile profile-name; idp; redirect-wx | reverse-redirect-wx; ssl-proxy { profile-name profile-name; } uac-policy { captive-portal captive-portal; } utm-policy policy-name; } destination-address { drop-translated; drop-untranslated; } firewall-authentication { pass-through { access-profile profile-name; client-match user-or-group-name; ssl-termination-profile profile-name; web-redirect; web-redirect-to-https; } user-firewall { access-profile profile-name; domain domain-name ssl-termination-profile profile-name; } web-authentication { client-match user-or-group-name; } } services-offload; tcp-options { initial-tcp-mss mss-value; reverse-tcp-mss mss-value; sequence-check-required; sequence-check-required; syn-check-required; } tunnel { ipsec-group-vpn group-vpn; ipsec-vpn vpn-name; pair-policy pair-policy; } } deny | reject; deny | reject [profile name]; } } }
Hierarchy Level
[edit security policies]
Description
Specify a source zone and destination zone to be associated with the security policy.
Options
from-zone zone-name
—Name of the source zone.to-zone zone-name
—Name of the destination zone.
The remaining statements are explained separately. See CLI Explorer.
Required Privilege Level
security—To view this statement in the configuration.
security-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 8.5. Support for the services-offload
option added in Junos OS Release 11.4. Support
for the source-identity
option added in Junos OS Release
12.1. Support for the description
option added in Junos
OS Release 12.1. Support for the ssl-termination-profile
and web-redirect-to-https
options added in Junos OS Release
12.1X44-D10. Support for the user-firewall
option added
in Junos OS Release 12.1X45-D10. Support for the initial-tcp-mss
and reverse-tcp-mss
options added in Junos OS Release
12.3X48-D20. Support for the dynamic-application
and deny
options added in Junos OS Release 18.2R1.