tom12e

erl config 10-07-2015 14:34

Jul 10th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.90 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.     }
  125.     receive-redirects disable
  126.     send-redirects enable
  127.     source-validation disable
  128.     syn-cookies enable
  129. }
  130. interfaces {
  131.     bridge br0 {
  132.         aging 300
  133.         bridged-conntrack disable
  134.         description "br0 - Telefonie"
  135.         hello-time 2
  136.         max-age 20
  137.         priority 32768
  138.         promiscuous disable
  139.         stp false
  140.     }
  141.     ethernet eth0 {
  142.         description "eth0 - FTTH"
  143.         duplex auto
  144.         mtu 1512
  145.         speed auto
  146.         vif 4 {
  147.             address dhcp
  148.             description "VLAN 0.4 - IPTV"
  149.             dhcp-options {
  150.                 client-option "send vendor-class-identifier "IPTV_RG";"
  151.                 client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
  152.                 default-route no-update
  153.                 default-route-distance 254
  154.                 name-server update
  155.             }
  156.         }
  157.         vif 6 {
  158.             description "VLAN 0.6 - Internet"
  159.             firewall {
  160.             }
  161.             mtu 1508
  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.                 idle-timeout 180
  176.                 mtu 1500
  177.                 name-server auto
  178.                 password kpn
  179.                 user-id xx-xx-xx-xx-xx-xx@internet
  180.             }
  181.         }
  182.         vif 7 {
  183.             bridge-group {
  184.                 bridge br0
  185.             }
  186.             description "VLAN 0.7 - Telefonie"
  187.         }
  188.     }
  189.     ethernet eth1 {
  190.         address 192.168.2.1/24
  191.         description "eth1 - Internet & IPTV"
  192.         duplex auto
  193.         speed auto
  194.     }
  195.     ethernet eth2 {
  196.         bridge-group {
  197.             bridge br0
  198.         }
  199.         description "eth2 - ExperiaBox"
  200.         duplex auto
  201.         speed auto
  202.     }
  203.     loopback lo {
  204.     }
  205. }
  206. protocols {
  207.     igmp-proxy {
  208.         interface eth0.4 {
  209.             alt-subnet 0.0.0.0/0
  210.             role upstream
  211.             threshold 1
  212.         }
  213.         interface eth1 {
  214.             role downstream
  215.             threshold 1
  216.         }
  217.     }
  218.     static {
  219.         route 213.75.112.0/21 {
  220.             next-hop 10.16.0.1 {
  221.             }
  222.         }
  223.     }
  224. }
  225. service {
  226.     dhcp-server {
  227.         disabled false
  228.         global-parameters "option vendor-class-identifier code 60 = string;"
  229.         global-parameters "option broadcast-address code 28 = ip-address;"
  230.         hostfile-update disable
  231.         shared-network-name LAN {
  232.             authoritative enable
  233.             subnet 192.168.2.0/24 {
  234.                 default-router 192.168.2.1
  235.                 dns-server 208.67.222.123
  236.                 dns-server 208.67.220.123
  237.                 lease 86400
  238.                 start 192.168.2.20 {
  239.                     stop 192.168.2.254
  240.                 }
  241.                 static-mapping AP1 {
  242.                     ip-address 192.168.2.2
  243.                     mac-address xx-xx-xx-xx-xx-xx
  244.                 }
  245.                 subnet-parameters "option vendor-class-identifier "IPTV_RG";"
  246.                 subnet-parameters "option broadcast-address 192.168.2.255;"
  247.             }
  248.         }
  249.     }
  250.     dns {
  251.         forwarding {
  252.             cache-size 150
  253.             listen-on eth1
  254.             name-server 208.67.222.222
  255.             name-server 208.67.220.220
  256.             options listen-address=192.168.2.1
  257.         }
  258.     }
  259.     gui {
  260.         https-port 443
  261.     }
  262.     nat {
  263.         rule 5000 {
  264.             description IPTV
  265.             destination {
  266.                 address 10.142.64.0/18
  267.             }
  268.             log disable
  269.             outbound-interface eth0.4
  270.             protocol all
  271.             source {
  272.             }
  273.             type masquerade
  274.         }
  275.         rule 5001 {
  276.             description IPTV
  277.             destination {
  278.                 address 213.75.112.0/21
  279.             }
  280.             log disable
  281.             outbound-interface eth0.4
  282.             protocol all
  283.             source {
  284.             }
  285.             type masquerade
  286.         }
  287.         rule 5002 {
  288.             description "KPN Internet"
  289.             log enable
  290.             outbound-interface pppoe0
  291.             protocol all
  292.             source {
  293.                 address 192.168.2.0/24
  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 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  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. }
  348.  
  349.  
  350. /* Warning: Do not remove the following line. */
  351. /* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@4:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
  352. /* Release version: v1.7.0.4783374.150622.1534 */
Advertisement
Add Comment
Please, Sign In to add comment