Create Juniper vSRX
# Enter CLI mode cli # Enter configuration mode configure # Configure the root password as a plain-text password set system root-authentication plain-text-password New password: your-super-password Retype new password: your-super-password # Check validity commit check configuration check succeeds # Commit configuration commit commit complete# ge-0/0/0.0 and ge-0/0/1.0 are the external (to the Internet) and internal interfaces of the vSRX instance, respectively. set interfaces ge-0/0/0 unit 0 family inet dhcp-client set interfaces ge-0/0/1 unit 0 family inet dhcp-client # Allow all traffic initially for configuration, then WhiteList IP/Application appropriately. set security zones security-zone untrust interfaces ge-0/0/0.0 set security zones security-zone untrust interfaces ge-0/0/0.0 host-inbound-traffic system-services all set security zones security-zone untrust interfaces ge-0/0/0.0 host-inbound-traffic protocols all # Allow all traffic initially for configuration, then WhiteList IP/Application appropriately. set security zones security-zone trust interfaces ge-0/0/1.0 set security zones security-zone trust interfaces ge-0/0/1.0 host-inbound-traffic system-services all set security zones security-zone trust interfaces ge-0/0/1.0 host-inbound-traffic protocols all # Allow all traffic initially for configuration, then WhiteList IP/Application appropriately. set security policies from-zone untrust to-zone trust policy default-permit match source-address any set security policies from-zone untrust to- untrust to-zone trust policy default-permit match untrust to-zone trust policy default-permit then permit # Commit config. commit check commit# Exit configuration mode exit # Reboot request system rebootcli show routecli configure set routing-options static route 0.0.0.0/0 next-hop <your_gateway_ip> commit check commit
Last updated

