Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firewall {
- all-ping enable
- broadcast-ping disable
- 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
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- state {
- invalid enable
- }
- }
- }
- name WAN_LOCAL {
- default-action drop
- description "WAN to router"
- 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 {
- duplex auto
- speed auto
- }
- ethernet eth1 {
- duplex auto
- speed auto
- }
- ethernet eth2 {
- duplex auto
- speed auto
- }
- ethernet eth3 {
- duplex auto
- speed auto
- }
- ethernet eth4 {
- duplex auto
- speed auto
- }
- loopback lo {
- }
- switch switch0 {
- switch-port {
- interface eth0 {
- vlan {
- pvid 98
- vid 4
- vid 34
- }
- }
- interface eth1 {
- vlan {
- pvid 4
- }
- }
- interface eth2 {
- vlan {
- pvid 4
- }
- }
- interface eth3 {
- vlan {
- pvid 1
- }
- }
- interface eth4 {
- vlan {
- pvid 1
- }
- }
- vlan-aware enable
- }
- vif 1 {
- description LAN
- address 192.168.30.1/24
- mtu 1500
- }
- vif 4 {
- description IP_TV
- mtu 1500
- mac fc:f5:f2:34:56:77
- }
- vif 34 {
- address dhcp
- description WAN
- mac fc:f5:f2:34:56:78
- mtu 1500
- }
- }
- }
- service {
- dhcp-server {
- disabled false
- hostfile-update disable
- shared-network-name lan_dhcp {
- authoritative disable
- subnet 192.168.30.0/24 {
- default-router 192.168.30.1
- dns-server 192.168.30.1
- lease 86400
- start 192.168.30.100 {
- stop 192.168.30.200
- }
- }
- }
- use-dnsmasq disable
- }
- dns {
- forwarding {
- cache-size 150
- listen-on switch0.1
- }
- }
- gui {
- http-port 80
- https-port 443
- listen-address 192.168.30.1
- older-ciphers enable
- }
- nat {
- rule 5000 {
- description "MASQ WAN"
- log disable
- outbound-interface switch0.34
- protocol all
- type masquerade
- }
- }
- ssh {
- port 22
- protocol-version v2
- }
- }
- service {
- dhcp-server {
- disabled false
- hostfile-update disable
- shared-network-name lan_dhcp {
- authoritative disable
- subnet 192.168.30.0/24 {
- default-router 192.168.30.1
- dns-server 192.168.30.1
- lease 86400
- start 192.168.30.100 {
- stop 192.168.30.200
- }
- }
- }
- use-dnsmasq disable
- }
- dns {
- forwarding {
- cache-size 150
- listen-on switch0
- }
- }
- gui {
- http-port 80
- https-port 443
- listen-address 192.168.30.1
- older-ciphers enable
- }
- nat {
- rule 5000 {
- description "MASQ WAN"
- log disable
- outbound-interface switch0.34
- protocol all
- type masquerade
- }
- }
- ssh {
- port 22
- protocol-version v2
- }
- }
- system {
- host-name ubnt
- login {
- user ubnt {
- authentication {
- encrypted-password $6$dHFSAKqGh6/x1$kjnSdPXupbhVvLgNSoPf1/Tw3X4AkgRNG3xTqqjdefULcZg9lLTHLEFgm8LnEFZwHY7McPXyReE31elY0p6if/
- }
- 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 {
- }
- }
- syslog {
- global {
- facility all {
- level notice
- }
- facility protocols {
- level debug
- }
- }
- }
- time-zone UTC
- domain-name local
- host-name router
- }
- /* 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@4:ubnt-pptp@1:ubnt-udapi-server@1:ubnt-unms@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
- /* Release version: v1.10.7.5127989.181001.1227 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement