artofrf.com

Ali's Technology Blog

Menu
  • Home
  • Important Links
  • About Me
  • Tools and Scripts
Menu

Juniper SRX 300 – Part 2

Posted on September 16, 2021September 16, 2021 by mali

Previously I reviewed some high level information of Juniper SRX Firewall. Now I will configure it as my main firewall at home/office/lab.

Interface ge-0/0/0 and ge-0/0/7 are by default part of “Untrust” zone already as shown below:

SRX300 – Untrust Zone

I simply moved the ISP cable from my old firewall to the SRX300 port “ge-0/0/0”. It took about 10 seconds and I had an IP on the port. Now, internet was online but I needed to get this firewall configured for rest of my network so I can talk to all the VLANs. NOTE: I could have setup VLANs and DHCP on the firewall as well (another blog post), but I did not want to do that for now.

SRX300

Based on the network shown above, I needed to get my interface between the firewall and the core switch up next. Command below took care of that.

set interfaces irb unit 0 family inet address 172.16.0.1/30
SRX300 – Trust Zone

Next, firewall required return routes to the VLANs behind the core switch. Following commands handled the routes back to the VLAN:

set routing-options static route 192.168.20.0/24 next-hop 172.16.0.2
set routing-options static route 192.168.30.0/24 next-hop 172.16.0.2
set routing-options static route 192.168.10.0/24 next-hop 172.16.0.2

These are “nat” commands and they are already setup in the firewall for basic connectivity, so I did not have to do anything. Keep in mind that the flow of traffic from the “trust” zone to “untrust” is allowed by default.

set security screen ids-option untrust-screen tcp syn-flood destination-threshold 2048
set security nat source rule-set trust-to-untrust from zone trust
set security nat source rule-set trust-to-untrust to zone untrust
set security nat source rule-set trust-to-untrust rule source-nat-rule match source-address 0.0.0.0/0
set security nat source rule-set trust-to-untrust rule source-nat-rule then source-nat interface
set security policies from-zone trust to-zone trust policy trust-to-trust match destination-address any
set security policies from-zone trust to-zone untrust policy trust-to-untrust match destination-address any

Now this firewall has all the following:

  • Outbound connectivity to the internet
  • connectivity to the LAN
  • All the required return routes to the VLANs.

Once all the routes were in place, my laptop was able to ping outbound.

Lastly I needed to setup “root authentication”. I made a mistake here that locked me out of the firewall. I utilized the following command, thinking I am being smart and secure:

set system root-authentication encrypted-password

Don’t do that, unless you are using an already encrypted password, there is no need to use this command. If you enter a plan text password here or a blank. You can not log back in there. Which is exactly what I did. Only way normally to get out of this is to do a password recovery on the switch, which means downtime. Luckily Mist UI allows shell access to the gateways also. This access allowed me to fix my mistake, without having to go through the recovery process.

SRX300 – Shell access via Mist UI

Following commands fixed my SSH and login issues:

set system services ssh root-login allow
delete system root-authentication encrypted-password
set system root-authentication plain-text-password <enter>
New Password: Will need to enter twice.
commit check 
commit

Please feel free to add any feedback and if you see something in correct, do let me know and I’d be happy to fix it. Let’s see what this can do and what all it shows in the Mist Dashboard now. Thank you for reading.

Category: Juniper Security

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • CLI to UI – Nile Guest APIs
  • Nile Secure Guest – Configuration and Use Case
  • WLAN Pros Toolbox
  • Nile does NAC – Configuring Trust Engine
  • WLAN Validator

Tags

#MFD9 - Juniper Presents AP W318 arista Arista AGNI Arista CV-CUE Arista Hospitality AP Arista NAC Arista presents at MFD9 Arista wall plate AP Arista WIPS Arista WPA3 UPSK Aruba Central Automation CWAP 403 EAP Format MAC Addresses Hamina Network Planner Juniper Mist show cloud-native NAC Juniper SRX300 Marvis MFD8 MFD9 MistAI Mist MPSK Mist Premium Analytics Mist Wireless NaaS Networking Field Day NFD32 Nile APIs NileNav Nile Secure Nile Wi-Fi Tech Field Day Troubleshooting with Marvis Troubleshooting with Mist Troubleshooting with Mist AI Troubleshooting with Wireshark True NaaS Wireless Adjuster Wireless Adjuster Level II Wireless troubleshooting WLPC wlpc2023 Wyebot

Tech Blogs

  • CCNA Wireless
  • Cisco Full Bars
  • Packet Life
  • The ASCII Construct
  • Juniper Port Checker
  • Bad-Fi
  • Gjermund Raaen
  • Havilandweb
  • WiFiTodd
  • BadgerWiFi
  • WiFrizzy
  • Spectrum Chart

Recent Comments

  • Hiten Thakkar on PCAP I/O Graph Analyzer
  • mali on Deploying Nile Secure – My First NSB
  • Larry Farrish on Deploying Nile Secure – My First NSB
  • Courtney on Mist Access Point – CSV
  • ayoub chabrouk on Ubiquiti stealing the show at MFD11

Archives

  • August 2026
  • July 2026
  • March 2026
  • February 2026
  • December 2025
  • November 2025
  • October 2025
  • August 2025
  • May 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • June 2023
  • May 2023
  • April 2023
  • February 2023
  • November 2022
  • October 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • May 2021
  • April 2021
  • March 2021
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • April 2019
  • March 2019
  • November 2018
  • October 2018
  • September 2018
  • May 2018
  • January 2018
  • December 2017
  • August 2017
  • January 2017
  • September 2014
  • December 2013
  • October 2013
  • May 2013
  • August 2012
  • July 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Categories

  • AeroHive
  • Arista
  • Arista
  • Aruba
  • Aruba
  • Aruba Central
  • BYoD
  • Certifications
  • Cisco
  • Cisco
  • Cisco EEM Scripting
  • Cisco Routing
  • Cisco Security
  • Cisco VoIP
  • Cisco VPN
  • Cisco Wireless
  • Conferences and Meetings
  • Design
  • Ekahau
  • General
  • Hamina
  • IoT, IIoT, OT
  • Juniper Security
  • Juniper Switching
  • Juniper/Mist
  • Linux
  • Microsoft
  • Mist
  • Mist Wireless
  • Nile
  • Nile Secure
  • Nile Wi-Fi
  • Programming/Automation
  • Python
  • Ruckus
  • Ruckus Wireless
  • Ruckus/Brocade
  • Ruckus/Brocade Scripting
  • Ruckus/Brocade Switching
  • Secure Guest Service
  • Security
  • Switching
  • Tools
  • Troubleshooting
  • Trust Engine
  • Uncategorized
  • Windows
  • Wireless
  • Wireless
  • WLAN Tools
© 2026 artofrf.com | Powered by Minimalist Blog WordPress Theme