Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firewall {
- all-ping enable
- broadcast-ping disable
- group {
- network-group LocalNetworks {
- description ""
- network 10.0.0.0/8
- network 172.16.0.0/12
- network 192.168.0.0/16
- }
- port-group UnwantedPorts {
- description ""
- port smtp
- port 67-68
- port 135-139
- port 213
- port 389
- port 445
- port 464
- }
- }
- 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 1 {
- action accept
- description "Allow established/related"
- log enable
- protocol all
- state {
- established enable
- invalid disable
- new disable
- related enable
- }
- }
- rule 3 {
- action drop
- description "Drop invalid state"
- 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 1 {
- action accept
- description "Allow established/related"
- log disable
- protocol all
- state {
- established enable
- invalid disable
- new disable
- related enable
- }
- }
- rule 2 {
- action accept
- description OpenVPN
- destination {
- port 1194
- }
- log disable
- protocol udp
- }
- rule 3 {
- action drop
- description "Drop invalid state"
- log disable
- protocol all
- state {
- established disable
- invalid enable
- new disable
- related disable
- }
- }
- }
- name WAN_OUT {
- default-action accept
- enable-default-log
- rule 1 {
- action accept
- description "Allow SMTP to KPN"
- destination {
- address x
- port 25
- }
- log disable
- protocol tcp
- source {
- address 192.168.1.0/26
- }
- }
- rule 2 {
- action drop
- description "Block unwanted outgoing traffic"
- destination {
- group {
- port-group UnwantedPorts
- }
- }
- log enable
- protocol tcp_udp
- }
- rule 3 {
- action drop
- description "Block private IP-spaces from entering WAN"
- destination {
- group {
- network-group LocalNetworks
- }
- }
- log enable
- protocol all
- }
- }
- options {
- }
- receive-redirects disable
- send-redirects enable
- source-validation disable
- syn-cookies enable
- }
- interfaces {
- ethernet eth0 {
- description "eth0 - NTU"
- duplex auto
- mtu 1512
- speed auto
- vif 4 {
- address dhcp
- description "VLAN 0.4 - IPTV"
- dhcp-options {
- client-option "send vendor-class-identifier "IPTV_RG";"
- client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
- default-route no-update
- default-route-distance 254
- name-server update
- }
- }
- vif 6 {
- description "VLAN 0.6 - Internet"
- firewall {
- }
- mtu 1508
- pppoe 0 {
- default-route auto
- firewall {
- in {
- name WAN_IN
- }
- local {
- name WAN_LOCAL
- }
- out {
- name WAN_OUT
- }
- }
- idle-timeout 180
- mtu 1500
- name-server auto
- password x
- user-id x
- }
- }
- }
- ethernet eth1 {
- address 192.168.1.1/26
- description "eth1 - LAN & IPTV"
- duplex auto
- speed auto
- }
- loopback lo {
- }
- openvpn vtun0 {
- encryption aes128
- mode server
- openvpn-option --tls-server
- openvpn-option "--proto udp"
- openvpn-option "--port 1194"
- openvpn-option "--tun-mtu 1500"
- openvpn-option --persist-key
- openvpn-option --persist-tun
- openvpn-option --persist-local-ip
- openvpn-option --persist-remote-ip
- openvpn-option "--keepalive 8 30"
- openvpn-option --duplicate-cn
- openvpn-option "--plugin /usr/lib/openvpn/openvpn-auth-pam.so login"
- openvpn-option "--client-cert-not-required --username-as-common-name"
- openvpn-option "--verb 1"
- openvpn-option --client-to-client
- openvpn-option "--push route 192.168.1.0 255.255.255.192"
- openvpn-option "--push dhcp-option DNS 192.168.1.1"
- openvpn-option "--fragment 0"
- openvpn-option "--mssfix 0"
- openvpn-option "--push redirect-gateway def1"
- server {
- subnet 192.168.2.0/26
- topology subnet
- }
- tls {
- ca-cert-file /config/auth/openvpn/keys/ca.crt
- cert-file /config/auth/openvpn/keys/gateway.MyDomain.com.crt
- dh-file /config/auth/openvpn/keys/dh2048.pem
- key-file /config/auth/openvpn/keys/gateway.MyDomain.com.key
- }
- }
- }
- port-forward {
- auto-firewall enable
- hairpin-nat enable
- lan-interface eth1
- wan-interface pppoe0
- }
- protocols {
- igmp-proxy {
- interface eth0.4 {
- alt-subnet 0.0.0.0/0
- role upstream
- threshold 1
- }
- interface eth1 {
- role downstream
- threshold 1
- }
- }
- static {
- route x {
- next-hop x {
- }
- }
- }
- }
- 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 LAN {
- authoritative enable
- subnet 192.168.1.0/26 {
- default-router 192.168.1.1
- dns-server 208.67.222.123
- dns-server 208.67.220.123
- lease 86400
- start 192.168.1.2 {
- stop 192.168.1.62
- }
- }
- }
- }
- dns {
- forwarding {
- cache-size 150
- listen-on eth1
- name-server 208.67.222.222
- name-server 8.8.8.8
- options listen-address=192.168.1.1
- }
- }
- gui {
- https-port 443
- }
- nat {
- rule 5000 {
- description IPTV
- destination {
- address x
- }
- log disable
- outbound-interface eth0.4
- protocol all
- source {
- }
- type masquerade
- }
- rule 5001 {
- description IPTV
- destination {
- address x
- }
- log disable
- outbound-interface eth0.4
- protocol all
- source {
- }
- type masquerade
- }
- rule 5002 {
- description Internet
- log enable
- outbound-interface pppoe0
- protocol all
- source {
- address 192.168.1.0/26
- }
- type masquerade
- }
- rule 5003 {
- description "Internet via VPN"
- log enable
- outbound-interface pppoe0
- protocol all
- source {
- address 192.168.2.0/26
- }
- type masquerade
- }
- }
- ssh {
- port 22
- protocol-version v2
- }
- }
- system {
- domain-name x
- host-name x
- login {
- user x {
- authentication {
- encrypted-password x
- }
- full-name Admin
- 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
- pppoe enable
- vlan enable
- }
- }
- syslog {
- global {
- facility all {
- level notice
- }
- facility protocols {
- level debug
- }
- }
- }
- time-zone UTC
- traffic-analysis {
- dpi enable
- export enable
- }
- }
- }
- /* 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