demoss

def jun conf

Mar 25th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.98 KB | None | 0 0
  1.  
  2. ## Last changed: 2013-03-25 23:37:56 GMT+4
  3. version 11.2R4.3;
  4. system {
  5.     host-name godnet;
  6.     time-zone GMT+4;
  7.     root-authentication {
  8.         encrypted-password "$1$VefloaO/$sKiqNrllv5T5n6e.TdXMT0";
  9.     }
  10.     name-server {
  11.         10.0.10.254;
  12.         10.0.1.254;
  13.         8.8.8.8;
  14.         8.8.4.4;
  15.     }
  16.     services {
  17.         ssh;
  18.         telnet;
  19.         xnm-clear-text;
  20.         web-management {
  21.             http {
  22.                 interface [ vlan.0 ge-0/0/0.0 ge-0/0/15.0 ];
  23.             }
  24.             https {
  25.                 system-generated-certificate;
  26.                 interface [ vlan.0 ge-0/0/0.0 ge-0/0/15.0 ];
  27.             }
  28.         }
  29.         dhcp {
  30.             router {
  31.                 192.168.1.1;
  32.             }
  33.             pool 192.168.1.0/24 {
  34.                 address-range low 192.168.1.2 high 192.168.1.254;
  35.             }
  36.             propagate-settings ge-0/0/0.0;
  37.         }
  38.     }
  39.     syslog {
  40.         archive size 100k files 3;
  41.         user * {
  42.             any emergency;
  43.         }
  44.         file messages {
  45.             any critical;
  46.             authorization info;
  47.         }
  48.         file interactive-commands {
  49.             interactive-commands error;
  50.         }
  51.     }
  52.     max-configurations-on-flash 5;
  53.     max-configuration-rollbacks 5;
  54.     license {
  55.         autoupdate {
  56.             url https://ae1.juniper.net/junos/key_retrieval;
  57.         }
  58.     }
  59. }
  60. interfaces {
  61.     ge-0/0/0 {
  62.         unit 0 {
  63.             family inet {
  64.                 address 179.19.246.153/32;
  65.             }
  66.         }
  67.     }
  68.     ge-0/0/1 {
  69.         unit 0 {
  70.             family ethernet-switching {
  71.                 vlan {
  72.                     members vlan-trust;
  73.                 }
  74.             }
  75.         }
  76.     }
  77.     ge-0/0/2 {
  78.         unit 0 {
  79.             family ethernet-switching {
  80.                 vlan {
  81.                     members vlan-trust;
  82.                 }
  83.             }
  84.         }
  85.     }
  86.     ge-0/0/3 {
  87.         unit 0 {
  88.             family ethernet-switching {
  89.                 vlan {
  90.                     members vlan-trust;
  91.                 }
  92.             }
  93.         }
  94.     }
  95.     ge-0/0/4 {
  96.         unit 0 {
  97.             family ethernet-switching {
  98.                 vlan {
  99.                     members vlan-trust;
  100.                 }
  101.             }
  102.         }
  103.     }
  104.     ge-0/0/5 {
  105.         unit 0 {
  106.             family ethernet-switching {
  107.                 vlan {
  108.                     members vlan-trust;
  109.                 }
  110.             }
  111.         }
  112.     }
  113.     ge-0/0/6 {
  114.         unit 0 {
  115.             family ethernet-switching {
  116.                 vlan {
  117.                     members vlan-trust;
  118.                 }
  119.             }
  120.         }
  121.     }
  122.     ge-0/0/7 {
  123.         unit 0 {
  124.             family ethernet-switching {
  125.                 vlan {
  126.                     members vlan-trust;
  127.                 }
  128.             }
  129.         }
  130.     }
  131.     ge-0/0/8 {
  132.         unit 0 {
  133.             family ethernet-switching {
  134.                 vlan {
  135.                     members vlan-trust;
  136.                 }
  137.             }
  138.         }
  139.     }
  140.     ge-0/0/9 {
  141.         unit 0 {
  142.             family ethernet-switching {
  143.                 vlan {
  144.                     members vlan-trust;
  145.                 }
  146.             }
  147.         }
  148.     }
  149.     ge-0/0/10 {
  150.         unit 0 {
  151.             family ethernet-switching {
  152.                 vlan {
  153.                     members vlan-trust;
  154.                 }
  155.             }
  156.         }
  157.     }
  158.     ge-0/0/11 {
  159.         unit 0 {
  160.             family ethernet-switching {
  161.                 vlan {
  162.                     members vlan-trust;
  163.                 }
  164.             }
  165.         }
  166.     }
  167.     ge-0/0/12 {
  168.         unit 0 {
  169.             family ethernet-switching {
  170.                 vlan {
  171.                     members vlan-trust;
  172.                 }
  173.             }
  174.         }
  175.     }
  176.     ge-0/0/13 {
  177.         unit 0 {
  178.             family ethernet-switching {
  179.                 vlan {
  180.                     members vlan-trust;
  181.                 }
  182.             }
  183.         }
  184.     }
  185.     ge-0/0/14 {
  186.         unit 0 {
  187.             family ethernet-switching {
  188.                 vlan {
  189.                     members vlan-trust;
  190.                 }
  191.             }
  192.         }
  193.     }
  194.     ge-0/0/15 {
  195.         unit 0 {
  196.             family inet {
  197.                 address 192.168.26.237/24;
  198.             }
  199.         }
  200.     }
  201.     vlan {
  202.         unit 0 {
  203.             family inet {
  204.                 address 192.168.1.1/24;
  205.             }
  206.         }
  207.     }
  208. }
  209. routing-options {
  210.     static {
  211.         route 0.0.0.0/0 next-hop 179.19.246.158;
  212.     }
  213. }
  214. protocols {
  215.     stp;
  216. }
  217. security {
  218.     screen {
  219.         ids-option untrust-screen {
  220.             icmp {
  221.                 ping-death;
  222.             }
  223.             ip {
  224.                 source-route-option;
  225.                 tear-drop;
  226.             }
  227.             tcp {
  228.                 syn-flood {
  229.                     alarm-threshold 1024;
  230.                     attack-threshold 200;
  231.                     source-threshold 1024;
  232.                     destination-threshold 2048;
  233.                     timeout 20;
  234.                 }
  235.                 land;
  236.             }
  237.         }
  238.     }
  239.     nat {
  240.         source {
  241.             rule-set trust-to-untrust {
  242.                 from zone trust;
  243.                 to zone untrust;
  244.                 rule source-nat-rule {
  245.                     match {
  246.                         source-address 0.0.0.0/0;
  247.                     }
  248.                     then {
  249.                         source-nat {
  250.                             interface;
  251.                         }
  252.                     }
  253.                 }
  254.             }
  255.         }
  256.     }
  257.     policies {
  258.         from-zone trust to-zone untrust {
  259.             policy trust-to-untrust {
  260.                 match {
  261.                     source-address any;
  262.                     destination-address any;
  263.                     application any;
  264.                 }
  265.                 then {
  266.                     permit;
  267.                 }
  268.             }
  269.         }
  270.     }
  271.     zones {
  272.         security-zone trust {
  273.             host-inbound-traffic {
  274.                 system-services {
  275.                     all;
  276.                 }
  277.                 protocols {
  278.                     all;
  279.                 }
  280.             }
  281.             interfaces {
  282.                 vlan.0;
  283.                 ge-0/0/15.0;
  284.             }
  285.         }
  286.         security-zone untrust {
  287.             screen untrust-screen;
  288.             interfaces {
  289.                 ge-0/0/0.0 {
  290.                     host-inbound-traffic {
  291.                         system-services {
  292.                             tftp;
  293.                             http;
  294.                             ping;
  295.                             ssh;
  296.                         }
  297.                         protocols {
  298.                             bgp;
  299.                             ospf;
  300.                             rip;
  301.                         }
  302.                     }
  303.                 }
  304.             }
  305.         }
  306.     }
  307. }
  308. vlans {
  309.     vlan-trust {
  310.         vlan-id 3;
  311.         l3-interface vlan.0;
  312.     }
  313. }
Advertisement
Add Comment
Please, Sign In to add comment