Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firewall {
- all-ping enable
- broadcast-ping disable
- ipv6-name WAN_IN6 {
- default-action drop
- description "Internet to internal networks"
- enable-default-log
- rule 10 {
- action accept
- description "allow icmpv6"
- log disable
- protocol icmpv6
- }
- rule 20 {
- action accept
- description "allow established/related"
- log disable
- state {
- established enable
- related enable
- }
- }
- }
- ipv6-name WAN_LOCAL6 {
- default-action drop
- description "Internet to router"
- enable-default-log
- rule 10 {
- action accept
- description "allow icmpv6"
- log disable
- protocol icmpv6
- }
- rule 20 {
- action accept
- description "allow established/related"
- log disable
- state {
- established enable
- related enable
- }
- }
- rule 30 {
- action drop
- description "drop invalid"
- log enable
- state {
- invalid enable
- }
- }
- rule 40 {
- action accept
- description DHCPv6
- destination {
- port 546
- }
- log disable
- 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"
- enable-default-log
- rule 2 {
- action accept
- description "allow established"
- log disable
- protocol all
- state {
- established enable
- invalid disable
- new disable
- related enable
- }
- }
- rule 3 {
- action drop
- description "drop invalid"
- log enable
- protocol all
- state {
- established disable
- invalid enable
- new disable
- related disable
- }
- }
- }
- name WAN_LOCAL {
- default-action drop
- description "WAN to router"
- enable-default-log
- rule 10 {
- action accept
- description accept-established
- log disable
- state {
- established enable
- related enable
- }
- }
- rule 20 {
- action drop
- description drop-invalid
- log disable
- state {
- invalid enable
- }
- }
- rule 30 {
- action accept
- destination {
- port 67-68
- }
- log disable
- protocol udp
- }
- }
- receive-redirects disable
- send-redirects enable
- source-validation disable
- syn-cookies enable
- }
- interfaces {
- ethernet eth0 {
- address dhcp
- dhcpv6-pd {
- pd 1 {
- interface eth1 {
- host-address ::1
- prefix-id :2
- service slaac
- }
- interface switch0 {
- host-address ::1
- prefix-id :1
- service slaac
- }
- prefix-length 56
- }
- rapid-commit enable
- }
- duplex auto
- firewall {
- in {
- ipv6-name WAN_IN6
- name WAN_IN
- }
- local {
- ipv6-name WAN_LOCAL6
- name WAN_LOCAL
- }
- }
- ipv6 {
- dup-addr-detect-transmits 1
- }
- poe {
- output off
- }
- speed auto
- }
- ethernet eth1 {
- address 192.168.1.1/24
- duplex auto
- poe {
- output off
- }
- speed auto
- }
- ethernet eth2 {
- duplex auto
- poe {
- output 48v
- }
- speed auto
- }
- ethernet eth3 {
- duplex auto
- poe {
- output 48v
- }
- speed auto
- }
- ethernet eth4 {
- duplex auto
- poe {
- output off
- }
- speed auto
- }
- loopback lo {
- }
- switch switch0 {
- address 192.168.0.1/24
- mtu 1500
- switch-port {
- interface eth2
- interface eth3
- interface eth4
- }
- }
- }
- port-forward {
- auto-firewall enable
- hairpin-nat enable
- lan-interface switch0
- rule 1 {
- description "SSH to Howl"
- forward-to {
- address 192.168.0.3
- port 22
- }
- original-port 22
- protocol tcp
- }
- wan-interface eth0
- }
- service {
- dhcp-server {
- disabled false
- hostfile-update disable
- shared-network-name eth1 {
- authoritative enable
- subnet 192.168.1.0/24 {
- default-router 192.168.1.1
- dns-server 192.168.1.1
- lease 86400
- start 192.168.1.100 {
- stop 192.168.1.200
- }
- }
- }
- shared-network-name switch0 {
- authoritative enable
- subnet 192.168.0.0/24 {
- default-router 192.168.0.1
- dns-server 192.168.0.1
- lease 86400
- start 192.168.0.10 {
- stop 192.168.0.254
- }
- static-mapping calcifer {
- ip-address 192.168.0.3
- mac-address 00:0c:29:c4:84:37
- }
- static-mapping howl {
- ip-address 192.168.0.4
- mac-address 60:fb:42:f5:1f:c2
- }
- }
- }
- }
- dns {
- dynamic {
- interface eth0 {
- service dyndns {
- host-name foxden.org
- login [redacted]
- password [redacted]
- }
- }
- }
- forwarding {
- cache-size 150
- listen-on switch0
- listen-on eth1
- }
- }
- gui {
- https-port 443
- }
- nat {
- rule 5011 {
- description Comcast
- log disable
- outbound-interface eth0
- protocol all
- type masquerade
- }
- }
- ssh {
- port 22
- protocol-version v2
- }
- }
- system {
- host-name kaonashi
- login {
- user [redacted] {
- authentication {
- encrypted-password [redacted]
- plaintext-password ""
- }
- full-name "[redacted]"
- level admin
- }
- }
- 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 {
- ipv4 {
- forwarding enable
- }
- ipv6 {
- forwarding enable
- }
- }
- syslog {
- global {
- facility all {
- level notice
- }
- facility protocols {
- level debug
- }
- }
- }
- time-zone America/Los_Angeles
- }
Advertisement
Add Comment
Please, Sign In to add comment