Junos: Opening Up Ports on a vSRX

Junos: Opening Up Ports on a vSRX

 

A quick guide to show you how to open ports on your vSRX running Junos for outbound traffic

Define Applications

set applications application TCP-587 destination-port 587 protocol tcp description "Secure SMTP"
set applications application TCP-993 destination-port 993 protocol tcp description "Secure IMAP"

Define Destination Addresses

set security address-book global address Office365-OutLook dns-name outlook.office365.com
set security address-book global address Office365-SMTP dns-name outlook.office365.com

Create a Security Policy

set security policies from-zone trust to-zone untrust policy Office365 match source-address any destination-address Office365-SMTP application [ TCP-587 TCP-993]
set security policies from-zone trust to-zone untrust policy Office365 match source-address any destination-address Office365-OutLook application [ TCP-587 TCP-993]
set security policies from-zone trust to-zone untrust policy Office365 then permit
Advertisements