To configure an address book, to configure a policy from the internal zone to the external zone, and to configure policies from the external zone to the internal zone, follow the sequence of steps listed below:
- user@host# set security zones security-zone public
address-book address ip_phone 2.2.2.5/32
- user@host# set security policies from-zone private
to-zone public policy p1 match source-address any
- user@host# set security policies from-zone private
to-zone public policy p1 match destination-address ip_phone
- user@host# set security policies from-zone private
to-zone public policy p1 match application junos-h323
- user@host# set security policies from-zone private
to-zone public policy p1 then permit
- user@host# set security policies from-zone public to-zone
private policy p2 match source-address any
- user@host# set security policies from-zone public to-zone
private policy p2 match destination-address ip_phone
- user@host# set security policies from-zone public to-zone
private policy p2 match application junos-h323
- user@host# set security policies from-zone public to-zone
private policy p2 then permit