tom12e

config erl 07-07-2015 23:43

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