michielp

ERP-MiPo

Mar 27th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 10.93 KB | None | 0 0
  1.  firewall {
  2.      all-ping enable
  3.      broadcast-ping disable
  4.      ipv6-name WANv6_IN {
  5.          default-action drop
  6.          description "WAN inbound traffic forwarded to LAN"
  7.          enable-default-log
  8.          rule 10 {
  9.              action accept
  10.              description "Allow established/related sessions"
  11.              state {
  12.                  established enable
  13.                  related enable
  14.              }
  15.          }
  16.          rule 20 {
  17.              action drop
  18.              description "Drop invalid state"
  19.              state {
  20.                  invalid enable
  21.              }
  22.          }
  23.      }
  24.      ipv6-name WANv6_LOCAL {
  25.          default-action drop
  26.          description "WAN inbound traffic to the router"
  27.          enable-default-log
  28.          rule 10 {
  29.              action accept
  30.              description "Allow established/related sessions"
  31.              state {
  32.                  established enable
  33.                  related enable
  34.              }
  35.          }
  36.          rule 20 {
  37.              action drop
  38.              description "Drop invalid state"
  39.              state {
  40.                  invalid enable
  41.              }
  42.          }
  43.          rule 30 {
  44.              action accept
  45.              description "Allow IPv6 icmp"
  46.              protocol ipv6-icmp
  47.          }
  48.          rule 40 {
  49.              action accept
  50.              description "allow dhcpv6"
  51.              destination {
  52.                  port 546
  53.              }
  54.              protocol udp
  55.              source {
  56.                  port 547
  57.              }
  58.          }
  59.      }
  60.      ipv6-receive-redirects disable
  61.      ipv6-src-route disable
  62.      ip-src-route disable
  63.      log-martians enable
  64.      name WAN_IN {
  65.          default-action drop
  66.          description "WAN to Internal"
  67.          enable-default-log
  68.          rule 10 {
  69.              action accept
  70.              description "Allow established/related"
  71.              log enable
  72.              protocol all
  73.              state {
  74.                  established enable
  75.                  invalid disable
  76.                  new disable
  77.                  related enable
  78.              }
  79.          }
  80.          rule 20 {
  81.              action drop
  82.              description "Drop invalid state"
  83.              log enable
  84.              protocol all
  85.              state {
  86.                  established disable
  87.                  invalid enable
  88.                  new disable
  89.                  related disable
  90.              }
  91.          }
  92.      }
  93.      name WAN_LOCAL {
  94.          default-action drop
  95.          description "WAN to router"
  96.          enable-default-log
  97.          rule 10 {
  98.              action accept
  99.              description "Allow established/related"
  100.              log disable
  101.              protocol all
  102.              state {
  103.                  established enable
  104.                  invalid disable
  105.                  new disable
  106.                  related enable
  107.              }
  108.          }
  109.          rule 20 {
  110.              action drop
  111.              description "Drop invalid state"
  112.              log disable
  113.              protocol all
  114.              state {
  115.                  established disable
  116.                  invalid enable
  117.                  new disable
  118.                  related disable
  119.              }
  120.          }
  121.      }
  122.      receive-redirects disable
  123.      send-redirects enable
  124.      source-validation disable
  125.      syn-cookies enable
  126.  }
  127.  interfaces {
  128.      bridge br0 {
  129.          aging 300
  130.          bridged-conntrack disable
  131.          description "br0 - Telefonie"
  132.          hello-time 2
  133.          max-age 20
  134.          priority 32768
  135.          promiscuous disable
  136.          stp false
  137.      }
  138.      ethernet eth0 {
  139.          description "eth0 - FTTH"
  140.          duplex auto
  141.          mtu 1512
  142.          speed auto
  143.          vif 4 {
  144.              address dhcp
  145.              description "eth0.4 - IPTV"
  146.              dhcp-options {
  147.                  client-option "send vendor-class-identifier "IPTV_RG";"
  148.                  client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
  149.                  default-route no-update
  150.                  default-route-distance 210
  151.                  name-server update
  152.              }
  153.          }
  154.          vif 6 {
  155.              description "eth0.6 - Internet"
  156.              mtu 1508
  157.              pppoe 0 {
  158.                  default-route auto
  159.                  dhcpv6-pd {
  160.                      no-dns
  161.                      pd 0 {
  162.                          interface eth1 {
  163.                              prefix-id :1
  164.                              service slaac
  165.                          }
  166.                          prefix-length /48
  167.                      }
  168.                      rapid-commit disable
  169.                  }
  170.                  firewall {
  171.                      in {
  172.                          ipv6-name WANv6_IN
  173.                          name WAN_IN
  174.                      }
  175.                      local {
  176.                          ipv6-name WANv6_LOCAL
  177.                          name WAN_LOCAL
  178.                      }
  179.                  }
  180.                  idle-timeout 180
  181.                  ipv6 {
  182.                      address {
  183.                          autoconf
  184.                      }
  185.                      dup-addr-detect-transmits 1
  186.                      enable {
  187.                      }
  188.                  }
  189.                  mtu 1500
  190.                  name-server auto
  191.                  password xxx
  192.                  user-id xxxxxxxxxxxxxxxx@internet
  193.              }
  194.          }
  195.          vif 7 {
  196.              bridge-group {
  197.                  bridge br0
  198.              }
  199.              description "eth0.7 - VOIP"
  200.              mtu 1500
  201.          }
  202.      }
  203.      ethernet eth1 {
  204.          address 192.168.2.254/24
  205.          description "eth1 - LAN"
  206.          duplex auto
  207.          ipv6 {
  208.              dup-addr-detect-transmits 1
  209.              router-advert {
  210.                  cur-hop-limit 64
  211.                  link-mtu 0
  212.                  managed-flag false
  213.                  max-interval 600
  214.                  name-server 2001:4860:4860::8888
  215.                  name-server 2001:4860:4860::8844
  216.                  other-config-flag false
  217.                  prefix ::/64 {
  218.                      autonomous-flag true
  219.                      on-link-flag true
  220.                      valid-lifetime 2592000
  221.                  }
  222.                  radvd-options "RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 {};"
  223.                  reachable-time 0
  224.                  retrans-timer 0
  225.                  send-advert true
  226.              }
  227.          }
  228.          speed auto
  229.      }
  230.      ethernet eth2 {
  231.          description "eth2 - ExperiaBox"
  232.          duplex auto
  233.          speed auto
  234.          vif 7 {
  235.              bridge-group {
  236.                  bridge br0
  237.              }
  238.              description "eth2.7 - ExperiaBox VOIP"
  239.              mtu 1500
  240.          }
  241.      }
  242.      loopback lo {
  243.      }
  244.  }
  245.  protocols {
  246.      igmp-proxy {
  247.          interface eth0.4 {
  248.              alt-subnet 0.0.0.0/0
  249.              role upstream
  250.              threshold 1
  251.          }
  252.          interface eth1 {
  253.              alt-subnet 0.0.0.0/0
  254.              role downstream
  255.              threshold 1
  256.          }
  257.      }
  258.      static {
  259.          interface-route 213.75.0.0/21 {
  260.              next-hop-interface eth0.4 {
  261.              }
  262.          }
  263.          interface-route6 ::/0 {
  264.              next-hop-interface pppoe0 {
  265.              }
  266.          }
  267.      }
  268.  }
  269.  service {
  270.      dhcp-server {
  271.          disabled false
  272.          global-parameters "option vendor-class-identifier code 60 = string;"
  273.          global-parameters "option broadcast-address code 28 = ip-address;"
  274.          hostfile-update disable
  275.          shared-network-name LAN {
  276.              authoritative enable
  277.              subnet 192.168.2.0/24 {
  278.                  default-router 192.168.2.254
  279.                  dns-server 195.121.1.34
  280.                  dns-server 195.121.1.66
  281.                  lease 86400
  282.                  start 192.168.2.50 {
  283.                      stop 192.168.2.200
  284.                  }
  285.              }
  286.          }
  287.      }
  288.      dns {
  289.          forwarding {
  290.              cache-size 150
  291.              listen-on eth1
  292.              name-server 8.8.8.8
  293.              name-server 8.8.4.4
  294.              options listen-address=192.168.2.254
  295.          }
  296.      }
  297.      gui {
  298.          https-port 443
  299.      }
  300.      nat {
  301.          rule 5000 {
  302.              description IPTV
  303.              destination {
  304.                  address 213.75.0.0/21
  305.              }
  306.              log disable
  307.              outbound-interface eth0.4
  308.              protocol all
  309.              type masquerade
  310.          }
  311.          rule 5010 {
  312.              description "KPN Internet"
  313.              log enable
  314.              outbound-interface pppoe0
  315.              protocol all
  316.              source {
  317.                  address 192.168.2.0/24
  318.              }
  319.              type masquerade
  320.          }
  321.      }
  322.      ssh {
  323.          port 22
  324.          protocol-version v2
  325.      }
  326.  }
  327.  system {
  328.      host-name EdgeRouter
  329.      login {
  330.          user admin {
  331.              authentication {
  332.                  encrypted-password $2$XXfmemyMDKmZJE1$y5mSjoTscmxIOjFMVwWSFSr6t6jMX69iXutKZbBWyTIzDjMYsKUDpn4.TW8fpO2p9Nub7yrZ5Qnj3C.knsEjD0
  333.                  plaintext-password ""
  334.              }
  335.              full-name Administrator
  336.              level admin
  337.          }
  338.          user ubnt {
  339.              authentication {
  340.                  encrypted-password $4$dwre.lO2/5EewS$Oif5meYHArL7D2Q5RtvdcQrOB1Yr7e/TEZuEDSRh5f2Frbu3VdyrOM3KPJpDN.aJ4CKCdhRDPj1Lhpph9LsOj/
  341.                  plaintext-password ""
  342.              }
  343.              full-name ""
  344.              level operator
  345.          }
  346.      }
  347.      name-server 195.121.1.34
  348.      name-server 195.121.1.66
  349.      name-server 2001:4860:4860::8888
  350.      name-server 2001:4860:4860::8844
  351.      name-server 8.8.8.8
  352.      ntp {
  353.          server 0.ubnt.pool.ntp.org {
  354.          }
  355.          server 1.ubnt.pool.ntp.org {
  356.          }
  357.          server 2.ubnt.pool.ntp.org {
  358.          }
  359.          server 3.ubnt.pool.ntp.org {
  360.          }
  361.      }
  362.      offload {
  363.          ipv4 {
  364.              forwarding enable
  365.              pppoe enable
  366.              vlan enable
  367.          }
  368.          ipv6 {
  369.              forwarding enable
  370.              pppoe enable
  371.          }
  372.      }
  373.      package {
  374.          repository wheezy {
  375.              components "main contrib non-free"
  376.              distribution wheezy
  377.              password ""
  378.              url http://mirror.leaseweb.com/debian
  379.              username ""
  380.          }
  381.          repository wheezy-security {
  382.              components main
  383.              distribution wheezy/updates
  384.              password ""
  385.              url http://security.debian.org
  386.              username ""
  387.          }
  388.      }
  389.      syslog {
  390.          global {
  391.              facility all {
  392.                  level notice
  393.              }
  394.              facility protocols {
  395.                  level debug
  396.              }
  397.          }
  398.      }
  399.      time-zone UTC
  400.      traffic-analysis {
  401.          dpi enable
  402.          export enable
  403.      }
  404.  }
Advertisement
Add Comment
Please, Sign In to add comment