Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views3 pages

Juniper SRX Cheatsheet

This document is a cheatsheet for configuring Juniper SRX devices, covering commands for showing configurations, setting interfaces, managing security zones, NAT, applications, and policies. It also includes commands for committing changes and rolling back configurations. The cheatsheet provides a quick reference for essential commands and their syntax.

Uploaded by

rashmi m
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Juniper SRX Cheatsheet

This document is a cheatsheet for configuring Juniper SRX devices, covering commands for showing configurations, setting interfaces, managing security zones, NAT, applications, and policies. It also includes commands for committing changes and rolling back configurations. The cheatsheet provides a quick reference for essential commands and their syntax.

Uploaded by

rashmi m
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

# Juniper SRX cheatsheet

#Help

help

<command> ?

#Show

show configuration

show configuration | display set

show configuration | display set | match [customer|ip|etc]

#Interface/customer/VLAN

set interfaces [interface] unit [vlan] description "[Interface or customer


name]"

set interfaces [interface] unit [vlan] vlan-id [vlan-id]

set interfaces [interface] unit [vlan] family inet address [Range with
gateway]

set security zones security-zone hosting interfaces [interface.vlan]

#Address

set security zones security-zone untrust address-book address [address-


name] [ip/range]

#Address set
set security zones security-zone untrust address-book address-set [adress-
set-name] address [address-name]

#NAT

set security nat static rule-set [rule-set-name] rule [rule-name] match


destination-address [external-ip]

set security nat static rule-set [rule-set-name] rule [rule-name] then static-
nat prefix [internal-ip]

#Application

set applications application [application-name] protocol tcp

set applications application [application-name] destination-port [port]

#Policy

set security policies from-zone untrust to-zone hosting policy [policy-name]


match source-address [any|address-name]

set security policies from-zone untrust to-zone hosting policy [policy-name]


destination-address [destination-address-name]

set security policies from-zone untrust to-zone hosting policy [policy-name]


match application [application-name]

set security policies from-zone untrust to-zone hosting policy [policy-name]


then permit

#default-deny for new policies


edit security policies from-zone untrust to-zone hosting

insert policy [policy-name] before policy default-deny

#Commit stuff

top # Go to top of configuration

show | compare # Show new configuration compared to old

commit check # Check if everything is ok / emulate commit

commit confirmed 5 # Commit but roll back after 5 min to test if ok

commit # Commit everything

#Rollback

rollback # If show | compare is not satisfying

rollback 1 # Undo commit

You might also like