Guest User

Untitled

a guest
Jul 6th, 2015
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.23 KB | None | 0 0
  1. firewall {
  2.     all-ping enable
  3.     broadcast-ping disable
  4.     group {
  5.         network-group LocalNetworks {
  6.             description ""
  7.             network 10.0.0.0/8
  8.             network 172.16.0.0/12
  9.             network 192.168.0.0/16
  10.         }
  11.         port-group UnwantedPorts {
  12.             description ""
  13.             port smtp
  14.             port 67-68
  15.             port 135-139
  16.             port 213
  17.             port 389
  18.             port 445
  19.             port 464
  20.         }
  21.     }
  22.     ipv6-receive-redirects disable
  23.     ipv6-src-route disable
  24.     ip-src-route disable
  25.     log-martians enable
  26.     name WAN_IN {
  27.         default-action drop
  28.         description "WAN to Internal"
  29.         enable-default-log
  30.         rule 1 {
  31.             action accept
  32.             description "Allow established/related"
  33.             log enable
  34.             protocol all
  35.             state {
  36.                 established enable
  37.                 invalid disable
  38.                 new disable
  39.                 related enable
  40.             }
  41.         }
  42.         rule 2 {
  43.             action drop
  44.             description "Drop invalid state"
  45.             log enable
  46.             protocol all
  47.             state {
  48.                 established disable
  49.                 invalid enable
  50.                 new disable
  51.                 related disable
  52.             }
  53.         }
  54.     }
  55.     name WAN_LOCAL {
  56.         default-action drop
  57.         description "WAN to router"
  58.         enable-default-log
  59.         rule 1 {
  60.             action accept
  61.             description "Allow established/related"
  62.             log disable
  63.             protocol all
  64.             state {
  65.                 established enable
  66.                 invalid disable
  67.                 new disable
  68.                 related enable
  69.             }
  70.         }
  71.         rule 2 {
  72.             action drop
  73.             description "Drop invalid state"
  74.             log disable
  75.             protocol all
  76.             state {
  77.                 established disable
  78.                 invalid enable
  79.                 new disable
  80.                 related disable
  81.             }
  82.         }
  83.     }
  84.     name WAN_OUT {
  85.         default-action accept
  86.         enable-default-log
  87.         rule 1 {
  88.             action accept
  89.             description "Allow SMTP to KPN"
  90.             destination {
  91.                 address 213.75.63.13
  92.                 port 25
  93.             }
  94.             log disable
  95.             protocol tcp
  96.             source {
  97.                 address 192.168.2.0/24
  98.             }
  99.         }
  100.         rule 2 {
  101.             action drop
  102.             description "Block unwanted outgoing traffic"
  103.             destination {
  104.                 group {
  105.                     port-group UnwantedPorts
  106.                 }
  107.             }
  108.             log enable
  109.             protocol tcp_udp
  110.         }
  111.         rule 3 {
  112.             action drop
  113.             description "Block private IP-spaces from entering WAN"
  114.             destination {
  115.                 group {
  116.                     network-group LocalNetworks
  117.                 }
  118.             }
  119.             log enable
  120.             protocol all
  121.         }
  122.     }
  123.     options {
  124.         mss-clamp {
  125.             interface-type pppoe
  126.             mss 1412
  127.         }
  128.     }
  129.     receive-redirects disable
  130.     send-redirects enable
  131.     source-validation disable
  132.     syn-cookies enable
  133. }
  134. interfaces {
  135.     bridge br0 {
  136.         aging 300
  137.         bridged-conntrack disable
  138.         description "br0 - Telefonie"
  139.         hello-time 2
  140.         max-age 20
  141.         priority 32768
  142.         promiscuous disable
  143.         stp false
  144.     }
  145.     bridge br1 {
  146.         aging 300
  147.         bridged-conntrack disable
  148.         description "br1 - IPTV"
  149.         hello-time 2
  150.         max-age 20
  151.         priority 32768
  152.         promiscuous disable
  153.         stp false
  154.     }
  155.     ethernet eth0 {
  156.         description "eth0 - NTU"
  157.         duplex auto
  158.         speed auto
  159.         vif 4 {
  160.             bridge-group {
  161.                 bridge br1
  162.             }
  163.             description "VLAN 0.4 - IPTV"
  164.             dhcp-options {
  165.                 client-option "option code 60 = IPTV_RG"
  166.                 default-route update
  167.                 default-route-distance 254
  168.                 name-server update
  169.             }
  170.         }
  171.         vif 6 {
  172.             description "VLAN 0.6 - Internet"
  173.             firewall {
  174.             }
  175.             pppoe 0 {
  176.                 default-route auto
  177.                 firewall {
  178.                     in {
  179.                         name WAN_IN
  180.                     }
  181.                     local {
  182.                         name WAN_LOCAL
  183.                     }
  184.                     out {
  185.                         name WAN_OUT
  186.                     }
  187.                 }
  188.                 mtu 1492
  189.                 name-server auto
  190.                 password kpn
  191.                 user-id mac@internet
  192.             }
  193.         }
  194.         vif 7 {
  195.             bridge-group {
  196.                 bridge br0
  197.             }
  198.             description "VLAN 0.7 - Telefonie"
  199.         }
  200.     }
  201.     ethernet eth1 {
  202.         address 192.168.2.1/24
  203.         description "eth1 - Internet"
  204.         duplex auto
  205.         speed auto
  206.     }
  207.     ethernet eth2 {
  208.         bridge-group {
  209.             bridge br0
  210.         }
  211.         description "eth2 - ExperiaBox"
  212.         duplex auto
  213.         speed auto
  214.     }
  215.     loopback lo {
  216.     }
  217. }
  218. protocols {
  219.     igmp-proxy {
  220.         interface br1 {
  221.             alt-subnet 10.142.64.0/18
  222.             alt-subnet 213.75.0.0/16
  223.             role downstream
  224.             threshold 1
  225.         }
  226.         interface eth0.6 {
  227.             alt-subnet 10.142.64.0/28
  228.             alt-subnet 213.75.112.0/21
  229.             role upstream
  230.             threshold 1
  231.         }
  232.     }
  233. }
  234. service {
  235.     dhcp-server {
  236.         disabled false
  237.         global-parameters "option code 28 = 192.168.2.255"
  238.         global-parameters "option code 60 = IPTV_RG"
  239.         hostfile-update disable
  240.         shared-network-name LAN {
  241.             authoritative disable
  242.             subnet 192.168.2.0/24 {
  243.                 default-router 192.168.2.1
  244.                 dns-server 208.67.222.123
  245.                 dns-server 208.67.220.123
  246.                 lease 86400
  247.                 start 192.168.2.20 {
  248.                     stop 192.168.2.220
  249.                 }
  250.             }
  251.         }
  252.     }
  253.     dns {
  254.         forwarding {
  255.             cache-size 150
  256.             listen-on br0
  257.         }
  258.     }
  259.     gui {
  260.         https-port 443
  261.     }
  262.     nat {
  263.         rule 5010 {
  264.             description "KPN Internet"
  265.             log enable
  266.             outbound-interface pppoe0
  267.             protocol all
  268.             source {
  269.                 address 192.168.2.0/24
  270.             }
  271.             type masquerade
  272.         }
  273.         rule 5011 {
  274.             description IPTV
  275.             destination {
  276.                 address 10.142.64.0/18
  277.             }
  278.             log disable
  279.             outbound-interface eth0.4
  280.             protocol all
  281.             source {
  282.             }
  283.             type masquerade
  284.         }
  285.         rule 5012 {
  286.             description IPTV
  287.             destination {
  288.                 address 213.75.112.0/21
  289.             }
  290.             log disable
  291.             outbound-interface eth0.4
  292.             protocol all
  293.             source {
  294.             }
  295.             type masquerade
  296.         }
  297.     }
  298.     ssh {
  299.         port 22
  300.         protocol-version v2
  301.     }
  302. }
  303. system {
  304.     host-name ubnt
  305.     login {
  306.         user ubnt {
  307.             authentication {
  308.                 encrypted-password xxxxx
  309.                 plaintext-password ""
  310.             }
  311.             full-name Admin
  312.             level admin
  313.         }
  314.     }
  315.     ntp {
  316.         server 0.ubnt.pool.ntp.org {
  317.         }
  318.         server 1.ubnt.pool.ntp.org {
  319.         }
  320.         server 2.ubnt.pool.ntp.org {
  321.         }
  322.         server 3.ubnt.pool.ntp.org {
  323.         }
  324.     }
  325.     offload {
  326.         ipv4 {
  327.             forwarding enable
  328.             pppoe enable
  329.             vlan enable
  330.         }
  331.     }
  332.     syslog {
  333.         global {
  334.             facility all {
  335.                 level notice
  336.             }
  337.             facility protocols {
  338.                 level debug
  339.             }
  340.         }
  341.     }
  342.     time-zone UTC
  343.     traffic-analysis {
  344.         dpi enable
  345.         export enable
  346.     }
  347. }
Advertisement
Add Comment
Please, Sign In to add comment