tom12e

erl config 08-07-2015 17:08

Jul 8th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.58 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.     ethernet eth0 {
  146.         description "eth0 - FTTH"
  147.         duplex auto
  148.         speed auto
  149.         vif 4 {
  150.             address dhcp
  151.             description "VLAN 0.4 - IPTV"
  152.             dhcp-options {
  153.                 client-option "send vendor-class-identifier "IPTV_RG";"
  154.                 client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
  155.                 default-route no-update
  156.                 default-route-distance 254
  157.                 name-server no-update
  158.             }
  159.         }
  160.         vif 6 {
  161.             description "VLAN 0.6 - Internet"
  162.             firewall {
  163.             }
  164.             pppoe 0 {
  165.                 default-route auto
  166.                 firewall {
  167.                     in {
  168.                         name WAN_IN
  169.                     }
  170.                     local {
  171.                         name WAN_LOCAL
  172.                     }
  173.                     out {
  174.                         name WAN_OUT
  175.                     }
  176.                 }
  177.                 idle-timeout 180
  178.                 mtu 1492
  179.                 name-server auto
  180.                 password kpn
  181.                 user-id xx-xx-xx-xx-xx-xx@internet
  182.             }
  183.         }
  184.         vif 7 {
  185.             bridge-group {
  186.                 bridge br0
  187.             }
  188.             description "VLAN 0.7 - Telefonie"
  189.         }
  190.     }
  191.     ethernet eth1 {
  192.         address 192.168.2.1/24
  193.         description "eth1 - Internet"
  194.         duplex auto
  195.         speed auto
  196.     }
  197.     ethernet eth2 {
  198.         bridge-group {
  199.             bridge br0
  200.         }
  201.         description "eth2 - ExperiaBox"
  202.         duplex auto
  203.         speed auto
  204.     }
  205.     loopback lo {
  206.     }
  207. }
  208. protocols {
  209.     igmp-proxy {
  210.         interface eth0.4 {
  211.             alt-subnet 0.0.0.0/0
  212.             role upstream
  213.             threshold 1
  214.         }
  215.         interface eth1 {
  216.             role downstream
  217.             threshold 1
  218.         }
  219.     }
  220. }
  221. service {
  222.     dhcp-server {
  223.         disabled false
  224.         global-parameters "option vendor-class-identifier code 60 = string;"
  225.         global-parameters "option broadcast-address code 28 = ip-address;"
  226.         hostfile-update disable
  227.         shared-network-name LAN {
  228.             authoritative enable
  229.             subnet 192.168.2.0/24 {
  230.                 default-router 192.168.2.1
  231.                 dns-server 208.67.222.123
  232.                 dns-server 208.67.220.123
  233.                 lease 86400
  234.                 start 192.168.2.20 {
  235.                     stop 192.168.2.254
  236.                 }
  237.                 static-mapping AP1 {
  238.                     ip-address 192.168.2.2
  239.                     mac-address xx-xx-xx-xx-xx-xx
  240.                 }
  241.                 subnet-parameters "option vendor-class-identifier "IPTV_RG";"
  242.                 subnet-parameters "option broadcast-address 192.168.2.255;"
  243.             }
  244.         }
  245.     }
  246.     dns {
  247.         forwarding {
  248.             cache-size 150
  249.             listen-on eth1
  250.             name-server 208.67.222.222
  251.             name-server 208.67.220.220
  252.             options listen-address=192.168.2.1
  253.         }
  254.     }
  255.     gui {
  256.         https-port 443
  257.     }
  258.     nat {
  259.         rule 5000 {
  260.             description IPTV
  261.             destination {
  262.                 address 10.16.0.0/16
  263.             }
  264.             log disable
  265.             outbound-interface eth0.4
  266.             protocol all
  267.             source {
  268.             }
  269.             type masquerade
  270.         }
  271.         rule 5001 {
  272.             description IPTV
  273.             destination {
  274.                 address 213.75.112.0/21
  275.             }
  276.             log disable
  277.             outbound-interface eth0.4
  278.             protocol all
  279.             source {
  280.             }
  281.             type masquerade
  282.         }
  283.         rule 5002 {
  284.             description "KPN Internet"
  285.             log enable
  286.             outbound-interface pppoe0
  287.             protocol all
  288.             source {
  289.                 address 192.168.2.0/24
  290.             }
  291.             type masquerade
  292.         }
  293.     }
  294.     ssh {
  295.         port 22
  296.         protocol-version v2
  297.     }
  298. }
  299. system {
  300.     host-name ubnt
  301.     login {
  302.         user ubnt {
  303.             authentication {
  304.                 encrypted-password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  305.                 plaintext-password ""
  306.             }
  307.             full-name Admin
  308.             level admin
  309.         }
  310.     }
  311.     ntp {
  312.         server 0.ubnt.pool.ntp.org {
  313.         }
  314.         server 1.ubnt.pool.ntp.org {
  315.         }
  316.         server 2.ubnt.pool.ntp.org {
  317.         }
  318.         server 3.ubnt.pool.ntp.org {
  319.         }
  320.     }
  321.     offload {
  322.         ipv4 {
  323.             forwarding enable
  324.             pppoe enable
  325.             vlan enable
  326.         }
  327.     }
  328.     syslog {
  329.         global {
  330.             facility all {
  331.                 level notice
  332.             }
  333.             facility protocols {
  334.                 level debug
  335.             }
  336.         }
  337.     }
  338.     time-zone UTC
  339.     traffic-analysis {
  340.         dpi enable
  341.         export enable
  342.     }
  343. }
  344.  
  345. /* Release version: v1.7.0.4783374.150622.1534 */
Advertisement
Add Comment
Please, Sign In to add comment