Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. set vlans v100-INTERNAL1 vlan-id 100
  2. set vlans v101-INTERNAL2 vlan-id 101
  3. set vlans v102-EXTERNAL vlan-id 102
  4.  
  5. set interfaces fe-0/0/0 unit 0 family ethernet-switching vlan-members v100-INTERNAL1
  6. set interfaces fe-0/0/1 unit 0 family ethernet-switching vlan-members v101-INTERNAL2
  7. set interfaces fe-0/0/2 unit 0 family ethernet-switching vlan-members v102-EXTERNAL
  8.  
  9. set interfaces vlan unit 100 family inet address 192.168.100.1/24
  10. set interfaces vlan unit 101 family inet address 192.168.101.1/24
  11. set interfaces vlan unit 102 family inet address 192.168.102.1/24
  12.  
  13. set vlans v100-INTERNAL1 l3-interface vlan.100
  14. set vlans v101-INTERNAL2 l3-interface vlan.101
  15. set vlans v102-EXTERNAL l3-interface vlan.102
  16.  
  17. set routing-options static route 0.0.0.0/0 next-hop 192.168.102.254
  18.  
  19. set security zones security-zone INTERNAL host-inbound-traffic system-services all
  20. set security zones security-zone EXTERNAL host-inbound-traffic ping
  21.  
  22. set security zones security-zone EXTERNAL interfaces vlan.102
  23. set security zones security-zone INTERNAL interfaces vlan.100
  24. set security zones security-zone INTERNAL interfaces vlan.101
  25.  
  26. set security policies from-zone INTERNAL to-zone EXTERNAL policy PERMIT-OUTBOUND match source-address any destination-address any application any
  27. set security policies from-zone INTERNAL to-zone EXTERNAL policy PERMIT-OUTBOUND then permit
  28. set security policies from-zone INTERNAL to-zone INTERNAL policy PERMIT-INTERNAL match source-address any destination-address any application any
  29. set security policies from-zone INTERNAL to-zone INTERNAL policy PERMIT-INTERNAL then permit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement