Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firewall {
- all-ping enable
- broadcast-ping disable
- ipv6-name WANv6_IN {
- default-action drop
- description "WAN inbound traffic forwarded to LAN"
- enable-default-log
- rule 1 {
- action accept
- description "Allow established/related sessions"
- state {
- established enable
- related enable
- }
- }
- rule 2 {
- action drop
- description "Drop invalid state"
- state {
- invalid enable
- }
- }
- rule 3 {
- action accept
- description "allow ICMPv6"
- log enable
- protocol icmpv6
- }
- rule 4 {
- action accept
- description "Allow DHCPv6"
- destination {
- port 546
- }
- protocol udp
- source {
- port 547
- }
- }
- }
- ipv6-name WANv6_LOCAL {
- default-action drop
- description "WAN IPv6 naar Router"
- enable-default-log
- rule 1 {
- action accept
- description "Allow established/related sessions"
- state {
- established enable
- related enable
- }
- }
- rule 2 {
- action drop
- description "Drop invalid state"
- log enable
- state {
- invalid enable
- }
- }
- rule 3 {
- action accept
- description "Allow IPv6 icmp"
- log enable
- protocol icmpv6
- }
- rule 4 {
- action accept
- description "allow dhcpv6"
- destination {
- port 546
- }
- log enable
- protocol udp
- source {
- port 547
- }
- }
- }
- ipv6-receive-redirects disable
- ipv6-src-route disable
- ip-src-route disable
- log-martians enable
- name WAN_IN {
- default-action drop
- description "WAN to internal"
- rule 10 {
- action accept
- description "Allow established/related"
- state {
- established enable
- invalid disable
- new disable
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- state {
- established disable
- invalid enable
- new disable
- related disable
- }
- }
- }
- name WAN_LOCAL {
- default-action drop
- description "WAN to router"
- rule 5 {
- action accept
- description "Enable Ping"
- limit {
- burst 1
- rate 90/minute
- }
- protocol icmp
- }
- rule 10 {
- action accept
- description "Allow established/related"
- state {
- established enable
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- state {
- invalid enable
- }
- }
- }
- receive-redirects disable
- send-redirects enable
- source-validation disable
- syn-cookies enable
- }
- interfaces {
- ethernet eth0 {
- description Local
- duplex auto
- speed auto
- }
- ethernet eth1 {
- description Local
- duplex auto
- speed auto
- }
- ethernet eth2 {
- description Local
- duplex auto
- speed auto
- }
- ethernet eth3 {
- description Local
- duplex auto
- speed auto
- }
- ethernet eth4 {
- duplex auto
- mtu 1512
- speed auto
- vif 32 {
- description "Internet (PPPoE)"
- mtu 1508
- pppoe 0 {
- default-route auto
- dhcpv6-pd {
- no-dns
- pd 0 {
- interface switch0 {
- host-address ::1
- prefix-id :0
- service slaac
- }
- prefix-length /56
- }
- prefix-only
- rapid-commit enable
- }
- firewall {
- in {
- ipv6-name WANv6_IN
- name WAN_IN
- }
- local {
- ipv6-name WANv6_LOCAL
- name WAN_LOCAL
- }
- }
- idle-timeout 180
- ipv6 {
- dup-addr-detect-transmits 1
- enable {
- }
- }
- mtu 1500
- name-server auto
- password <pass>
- user-id <user-id>
- }
- }
- }
- loopback lo {
- }
- switch switch0 {
- address 192.168.30.1/24
- description "Thuis netwerk"
- ipv6 {
- dup-addr-detect-transmits 1
- router-advert {
- cur-hop-limit 64
- link-mtu 0
- managed-flag true
- max-interval 600
- other-config-flag false
- prefix ::/64 {
- autonomous-flag true
- on-link-flag true
- valid-lifetime 7200
- }
- reachable-time 0
- retrans-timer 0
- send-advert true
- }
- }
- mtu 1500
- switch-port {
- interface eth0 {
- }
- interface eth1 {
- }
- interface eth2 {
- }
- interface eth3 {
- }
- vlan-aware disable
- }
- }
- }
- port-forward {
- auto-firewall enable
- hairpin-nat enable
- lan-interface switch0
- rule 1 {
- description "Synology HTTP"
- forward-to {
- address 192.168.30.2
- port 80
- }
- original-port 80
- protocol tcp
- }
- rule 2 {
- description "Synology HTTPS"
- forward-to {
- address 192.168.30.2
- port 443
- }
- original-port 443
- protocol tcp
- }
- rule 3 {
- description "Synology Websocket"
- forward-to {
- address 192.168.30.2
- port 3012
- }
- original-port 3012
- protocol tcp_udp
- }
- rule 4 {
- description "Synology DSMs"
- forward-to {
- address 192.168.30.2
- port 5001
- }
- original-port 5001
- protocol tcp
- }
- wan-interface pppoe0
- }
- protocols {
- static {
- interface-route6 ::/0 {
- next-hop-interface pppoe0 {
- }
- }
- }
- }
- service {
- dhcp-server {
- disabled false
- hostfile-update disable
- shared-network-name LAN {
- authoritative enable
- subnet 192.168.30.0/24 {
- default-router 192.168.30.1
- dns-server 192.168.30.3
- lease 86400
- start 192.168.30.38 {
- stop 192.168.30.243
- }
- }
- }
- static-arp disable
- use-dnsmasq disable
- }
- dns {
- forwarding {
- cache-size 150
- listen-on switch0
- }
- }
- gui {
- http-port 80
- https-port 443
- older-ciphers enable
- }
- nat {
- rule 5010 {
- description "masquerade for WAN"
- outbound-interface pppoe0
- type masquerade
- }
- }
- ssh {
- port 22
- protocol-version v2
- }
- unms {
- disable
- }
- }
- system {
- analytics-handler {
- send-analytics-report false
- }
- crash-handler {
- send-crash-report false
- }
- host-name ubnt
- login {
- }
- 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 {
- hwnat enable
- }
- syslog {
- global {
- facility all {
- level notice
- }
- facility protocols {
- level debug
- }
- }
- host 192.168.30.2 {
- facility all {
- level debug
- }
- }
- }
- time-zone Europe/Amsterdam
- }
- /* 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@5:nat@3:qos@1:quagga@2:suspend@1:system@5:ubnt-l2tp@1:ubnt-pptp@1:ubnt-udapi-server@1:ubnt-unms@2:ubnt-util@1:vrrp@1:vyatta-netflow@1:webgui@1:webproxy@1:zone-policy@1" === */
- /* Release version: v2.0.9-hotfix.2.5402463.210511.1317 */
Advertisement
Add Comment
Please, Sign In to add comment