Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firewall {
- all-ping enable
- broadcast-ping disable
- group {
- network-group BOGONS {
- description "Invalid WAN networks"
- network 10.0.0.0/8
- network 100.64.0.0/10
- network 127.0.0.0/8
- network 169.254.0.0/16
- network 172.16.0.0/12
- network 192.0.0.0/24
- network 192.0.2.0/24
- network 192.168.0.0/16
- network 198.18.0.0/15
- network 198.51.100.0/24
- network 203.0.113.0/24
- network 224.0.0.0/3
- }
- }
- ipv6-name WANv6_IN {
- default-action drop
- description "WAN inbound traffic forwarded to LAN"
- rule 10 {
- action accept
- description "Allow established/related sessions"
- state {
- established enable
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- state {
- invalid enable
- }
- }
- }
- ipv6-name WANv6_LOCAL {
- default-action drop
- description "WAN inbound traffic to the router"
- rule 10 {
- action accept
- description "Allow established/related sessions"
- state {
- established enable
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- state {
- invalid enable
- }
- }
- rule 30 {
- action accept
- description "Allow IPv6 ICMP"
- protocol ipv6-icmp
- }
- rule 40 {
- action accept
- description "allow dhcpv6"
- destination {
- port 546
- }
- protocol udp
- source {
- port 547
- }
- }
- }
- ipv6-receive-redirects disable
- ipv6-src-route disable
- ip-src-route disable
- log-martians enable
- modify pppoe-out {
- }
- name WAN_IN {
- default-action drop
- description "WAN to internal"
- enable-default-log
- rule 1 {
- action accept
- description "Allow established/related"
- log disable
- protocol all
- state {
- established enable
- related enable
- }
- }
- rule 3 {
- action drop
- description "Drop invalid state"
- log disable
- protocol all
- state {
- invalid enable
- }
- }
- rule 4 {
- action drop
- description "drop BOGON source"
- log disable
- protocol all
- source {
- group {
- network-group BOGONS
- }
- }
- }
- }
- name WAN_LOCAL {
- default-action drop
- description "WAN to router"
- enable-default-log
- rule 10 {
- action accept
- description "Allow established/related"
- log disable
- protocol all
- state {
- established enable
- invalid disable
- new disable
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid"
- log disable
- protocol all
- state {
- established disable
- invalid enable
- new disable
- related disable
- }
- }
- }
- options {
- mss-clamp {
- interface-type pppoe
- interface-type pptp
- interface-type tun
- interface-type vti
- mss 1412
- }
- }
- receive-redirects disable
- send-redirects enable
- source-validation disable
- syn-cookies enable
- }
- interfaces {
- ethernet eth0 {
- description WAN
- duplex auto
- mtu 1532
- poe {
- output off
- }
- speed auto
- vif 4 {
- address dhcp
- description "KPN TV"
- dhcp-options {
- client-option "send vendor-class-identifier "IPTV_RG";"
- client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
- default-route update
- default-route-distance 210
- name-server update
- }
- mtu 1500
- }
- vif 6 {
- description "KPN Internet"
- mtu 1516
- pppoe 0 {
- default-route auto
- dhcpv6-pd {
- no-dns
- pd 0 {
- interface switch0 {
- prefix-id :1
- service slaac
- }
- prefix-length /48
- }
- rapid-commit disable
- }
- firewall {
- in {
- ipv6-name WANv6_IN
- }
- local {
- ipv6-name WANv6_LOCAL
- }
- }
- idle-timeout 180
- ipv6 {
- address {
- autoconf
- }
- dup-addr-detect-transmits 1
- enable {
- }
- }
- mtu 1500
- name-server auto
- password ppp
- user-id **masked**@internet
- }
- }
- }
- ethernet eth1 {
- address 192.168.1.1/24
- description Local
- duplex auto
- poe {
- output off
- }
- speed auto
- }
- ethernet eth2 {
- description "Local 2"
- duplex auto
- poe {
- output off
- }
- speed auto
- }
- ethernet eth3 {
- description UAP-AC-LR
- duplex auto
- poe {
- output 24v
- }
- speed auto
- }
- ethernet eth4 {
- description UAP-AC-Lite
- duplex auto
- poe {
- output 24v
- }
- speed auto
- }
- loopback lo {
- }
- switch switch0 {
- address 192.168.2.1/24
- address **masked**:1::1/64
- description "Local 2"
- firewall {
- out {
- }
- }
- ipv6 {
- dup-addr-detect-transmits 1
- router-advert {
- cur-hop-limit 64
- link-mtu 0
- managed-flag false
- max-interval 600
- name-server 2620:0:ccc::2
- name-server 2001:4860:4860::8888
- other-config-flag false
- prefix ::/64 {
- autonomous-flag true
- on-link-flag true
- valid-lifetime 2592000
- }
- radvd-options "RDNSS 2620:0:ccc::2 2001:4860:4860::8888 {};"
- reachable-time 0
- retrans-timer 0
- send-advert true
- }
- }
- mtu 1500
- switch-port {
- interface eth2
- interface eth3
- interface eth4
- }
- }
- }
- port-forward {
- auto-firewall enable
- hairpin-nat enable
- lan-interface switch0
- rule 1 {
- description "VPN PPTP"
- forward-to {
- address 192.168.2.10
- }
- original-port 1723
- protocol tcp_udp
- }
- rule 2 {
- description Nzbget
- forward-to {
- address 192.168.2.10
- }
- original-port 6791
- protocol tcp
- }
- rule 3 {
- description Sonarr
- forward-to {
- address 192.168.2.10
- }
- original-port 9898,8989
- protocol tcp
- }
- rule 4 {
- description Transmission
- forward-to {
- address 192.168.2.10
- }
- original-port 9091
- protocol tcp
- }
- rule 5 {
- description "Couch potato "
- forward-to {
- address 192.168.2.10
- }
- original-port 8082
- protocol tcp
- }
- rule 6 {
- description Headphones
- forward-to {
- address 192.168.2.10
- }
- original-port 8181
- protocol tcp
- }
- rule 7 {
- description Synology
- forward-to {
- address 192.168.2.10
- }
- original-port 5001
- protocol tcp
- }
- rule 8 {
- description "Ftp sftp"
- forward-to {
- address 192.168.2.10
- }
- original-port 55536-55543
- protocol tcp_udp
- }
- rule 9 {
- description "L2TP/IPsec VPN"
- forward-to {
- address 192.168.2.10
- }
- original-port 1701,500,4500
- protocol tcp_udp
- }
- rule 10 {
- description "SFTP SSH"
- forward-to {
- address 192.168.2.10
- port 22
- }
- original-port 2222
- protocol tcp_udp
- }
- rule 11 {
- description FTP
- forward-to {
- address 192.168.2.10
- port 21
- }
- original-port 2221
- protocol tcp_udp
- }
- rule 12 {
- description Xbox
- forward-to {
- address 192.168.2.23
- }
- original-port 53,88,500,3074,3544,4500
- protocol tcp_udp
- }
- wan-interface pppoe0
- }
- protocols {
- igmp-proxy {
- interface eth0.4 {
- alt-subnet 0.0.0.0/0
- role upstream
- threshold 1
- }
- interface eth1 {
- alt-subnet 0.0.0.0/0
- role downstream
- threshold 1
- }
- }
- static {
- interface-route 0.0.0.0/0 {
- next-hop-interface pppoe0 {
- }
- }
- interface-route6 ::/0 {
- next-hop-interface pppoe0 {
- }
- }
- route 213.75.112.0/21 {
- next-hop 10.88.60.1 {
- }
- }
- }
- }
- service {
- dhcp-server {
- disabled false
- global-parameters "option vendor-class-identifier code 60 = string;"
- global-parameters "option broadcast-address code 28 = ip-address;"
- hostfile-update disable
- shared-network-name LAN1 {
- authoritative disable
- subnet 192.168.1.0/24 {
- default-router 192.168.1.1
- dns-server 192.168.1.1
- lease 86400
- start 192.168.1.38 {
- stop 192.168.1.243
- }
- subnet-parameters "option vendor-class-identifier "IPTV_RG ";"
- subnet-parameters "option broadcast-address 192.168.1.255;"
- }
- }
- shared-network-name LAN2 {
- authoritative disable
- subnet 192.168.2.0/24 {
- default-router 192.168.2.1
- dns-server 192.168.2.10
- dns-server 192.168.2.1
- domain-name thuis
- lease 86400
- start 192.168.2.50 {
- stop 192.168.2.250
- }
- static-mapping CamVoor {
- ip-address 192.168.2.11
- mac-address 00:12:13:17:4b:18
- }
- **Lading static maps**
- unifi-controller 192.168.2.5
- }
- }
- }
- dns {
- forwarding {
- cache-size 0
- listen-on switch0
- name-server 208.67.222.222
- name-server 208.67.220.220
- name-server 8.8.8.8
- name-server 2620:0:ccc::2
- name-server 2620:0:ccd::2
- options localise-queries
- options listen-address=192.168.1.1
- options listen-address=192.168.2.1
- }
- }
- gui {
- https-port 443
- listen-address 192.168.1.1
- listen-address 192.168.2.1
- listen-address **masked**:1::1
- }
- lldp {
- interface eth2 {
- location {
- civic-based {
- ca-type 0 {
- ca-value dutch
- }
- ca-type 3 {
- ca-value **masked**
- }
- ca-type 6 {
- ca-value **masked**
- }
- ca-type 19 {
- ca-value **masked**
- }
- ca-type 24 {
- ca-value **masked**
- }
- country-code NL
- }
- }
- }
- legacy-protocols {
- cdp
- edp
- fdp
- sonmp
- }
- management-address 192.168.2.1
- }
- nat {
- rule 5008 {
- description ITV
- destination {
- address 10.142.64.0/18
- }
- log disable
- outbound-interface eth0.4
- protocol all
- type masquerade
- }
- rule 5009 {
- description ITV
- destination {
- address 213.75.112.0/21
- }
- log disable
- outbound-interface eth0.4
- protocol all
- type masquerade
- }
- rule 5010 {
- description "masquerade for WAN"
- log disable
- outbound-interface pppoe0
- protocol all
- type masquerade
- }
- }
- ssh {
- listen-address 192.168.1.1
- listen-address 192.168.2.1
- port 22
- protocol-version v2
- }
- }
- system {
- conntrack {
- expect-table-size 4096
- hash-size 4096
- table-size 32768
- tcp {
- half-open-connections 512
- loose enable
- max-retrans 3
- }
- }
- domain-name thuis
- host-name ubnt
- login {
- user **masked**{
- authentication {
- encrypted-password **masked**
- plaintext-password ""
- }
- full-name "**masked**"
- level admin
- }
- }
- name-server 2620:0:ccc::2
- name-server 2001:4860:4860::8888
- name-server 208.67.222.222
- name-server 8.8.8.8
- ntp {
- server 0.ubnt.pool.ntp.org {
- }
- server 1.ubnt.pool.ntp.org {
- }
- server 2.ubnt.pool.ntp.org {
- }
- server 3.ubnt.pool.ntp.org {
- }
- }
- offload {
- ipsec enable
- ipv4 {
- forwarding enable
- pppoe enable
- vlan enable
- }
- ipv6 {
- forwarding enable
- pppoe enable
- }
- }
- package {
- repository wheezy {
- components "main contrib non-free"
- distribution wheezy
- password ""
- url http://ftp.nl.debian.org/debian
- username ""
- }
- repository wheezy-backport {
- components main
- distribution wheezy-backports
- password ""
- url http://ftp.nl.debian.org/debian
- username ""
- }
- repository wheezy-security {
- components main
- distribution wheezy/updates
- password ""
- url http://security.debian.org
- username ""
- }
- }
- syslog {
- global {
- facility all {
- level notice
- }
- facility protocols {
- level debug
- }
- }
- host 192.168.2.10 {
- facility all {
- level warning
- }
- }
- }
- time-zone Europe/Amsterdam
- traffic-analysis {
- dpi disable
- export disable
- }
- }
- /* Warning: Do not remove the following line. */
- /* === 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" === */
- /* Release version: v1.7.0.4783374.150622.1534 */
Advertisement
Add Comment
Please, Sign In to add comment