Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [admin@Home] > export
- /interface bridge
- add name=br0-lan protocol-mode=none
- /interface ethernet
- set [ find default-name=ether1 ] name=ether1-wan advertise=100M-full arp=disabled loop-protect=off
- set [ find default-name=ether2 ] name=ether2-master advertise=100M-full,1000M-full speed=1Gbps
- set [ find default-name=ether3 ] master-port=ether2-master advertise=10M-full,100M-full,1000M-full
- set [ find default-name=ether4 ] master-port=ether2-master advertise=10M-full,100M-full,1000M-full
- set [ find default-name=ether5 ] name=ether5-stb advertise=10M-full,100M-full,1000M-full
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- add name=wifi-ap-home authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys supplicant-identity="" wpa2-pre-shared-key=wifi-password
- /interface wireless
- add name=wlan1-home master-interface=wlan1 multicast-buffering=disabled multicast-helper=disabled security-profile=wifi-ap-home ssid=MikroTik wmm-support=enabled
- /ip neighbor discovery
- set wlan1-home discover=no
- /ip pool
- add name=pool-lan ranges=192.168.0.10-192.168.0.254
- add name=pool-stb ranges=192.168.254.2-192.168.254.254
- /ip dhcp-server
- add name=server-lan add-arp=yes address-pool=pool-lan always-broadcast=yes disabled=no lease-time=1d10m interface=br0-lan
- add name=server-stb add-arp=yes address-pool=pool-stb always-broadcast=yes disabled=no lease-time=1d10m interface=ether5-stb
- /ppp profile
- add name=pppoe-rt only-one=no use-compression=no use-encryption=no
- /interface pppoe-client
- add name=pppoe-rt interface=ether1-wan user=pppoe-user password=pppoe-password profile=pppoe-rt add-default-route=yes allow=chap disabled=no keepalive-timeout=disabled use-peer-dns=yes
- /interface bridge port
- add bridge=br0-lan interface=ether2-master
- add bridge=br0-lan interface=wlan1-home
- /ip firewall connection tracking
- set enabled=yes
- /ip settings
- set rp-filter=loose
- /interface list
- add name=lan
- add name=wan
- add name=iptv-uplink
- add name=iptv-downlink
- /interface list member
- add list=lan interface=br0-lan
- add list=wan interface=pppoe-rt
- add list=iptv-uplink interface=ether1-wan
- add list=iptv-downlink interface=ether5-stb
- /ip address
- add interface=br0-lan address=192.168.0.1/24
- add interface=ether1-wan address=10.1.33.7/32
- add interface=ether5-stb address=192.168.254.1/24
- /ip dhcp-server network
- add address=192.168.0.0/24 dns-server=192.168.0.1 gateway=192.168.0.1 ntp-server=192.168.0.1
- add address=192.168.254.0/24 dns-server=192.168.254.1 gateway=192.168.254.1 ntp-server=192.168.254.1
- /ip dns
- set allow-remote-requests=yes
- /ip firewall address-list
- add address=8.8.8.8 list=DNS
- add address=8.8.4.4 list=DNS
- add address=195.34.224.1 list=DNS
- add address=195.34.224.2 list=DNS
- add address=224.0.0.0/23 list=MCAST_BLACKLIST
- add address=239.255.255.0/24 list=MCAST_BLACKLIST
- add address=239.192.152.0/24 list=MCAST_BLACKLIST
- add address=239.2.0.0/24 list=MCAST_BLACKLIST
- add address=224.0.0.2 list=MCAST_WHITELIST
- /ip firewall filter
- add chain=accept-FT action=fasttrack-connection
- add chain=accept-FT action=accept
- add chain=input action=jump jump-target=accept-FT
- add chain=output action=jump jump-target=accept-FT
- add chain=fwd-mcast action=jump in-interface-list=iptv-uplink jump-target=accept-FT out-interface-list=iptv-downlink
- add chain=fwd-mcast action=jump in-interface-list=iptv-downlink jump-target=accept-FT out-interface-list=iptv-uplink
- add chain=fwd-mcast action=drop
- add chain=forward action=jump connection-state=established,related jump-target=accept-FT
- add chain=forward action=jump in-interface-list=lan jump-target=accept-FT out-interface-list=lan
- add chain=forward action=jump dst-address-type=multicast jump-target=fwd-mcast
- add chain=forward action=jump in-interface-list=lan jump-target=accept-FT out-interface-list=wan
- add chain=forward action=jump in-interface-list=iptv-downlink jump-target=accept-FT out-interface-list=wan
- add chain=forward action=jump connection-nat-state=dstnat in-interface-list=wan jump-target=accept-FT
- add chain=forward action=drop connection-state=invalid
- add chain=forward action=reject
- /ip firewall mangle
- add chain=prerouting action=change-dscp dst-address-type=multicast new-dscp=63 passthrough=no
- add chain=postrouting action=change-dscp dst-address-type=multicast new-dscp=63 passthrough=no
- /ip firewall nat
- add chain=srcnat action=masquerade out-interface-list=wan
- /ip firewall raw
- add chain=accept-NOCT action=notrack
- add chain=accept-NOCT action=accept
- add chain=pre-mcast action=accept in-interface-list=iptv-uplink
- add chain=pre-mcast action=accept in-interface-list=iptv-downlink
- add chain=pre-mcast action=drop
- add chain=pre-lan action=jump dst-address-type=local jump-target=accept-NOCT
- add chain=pre-lan action=accept
- add chain=pre-local action=jump jump-target=accept-NOCT protocol=udp src-address-list=DNS src-port=53
- add chain=pre-local action=drop dst-port=53 protocol=tcp
- add chain=pre-local action=drop dst-port=53 protocol=udp
- add chain=pre-local action=accept
- add chain=prerouting action=jump dst-address-type=multicast jump-target=pre-mcast
- add chain=prerouting action=jump in-interface-list=lan jump-target=pre-lan
- add chain=prerouting action=jump in-interface-list=iptv-downlink jump-target=pre-lan
- add chain=prerouting action=jump dst-address-type=local jump-target=pre-local
- add chain=prerouting action=accept
- add chain=out-mcast-uplink action=drop protocol=!igmp
- add chain=out-mcast-uplink action=accept dst-address-list=MCAST_WHITELIST
- add chain=out-mcast-uplink action=drop dst-address-list=MCAST_BLACKLIST
- add chain=out-mcast-uplink action=accept
- add chain=out-mcast action=jump jump-target=out-mcast-uplink out-interface-list=iptv-uplink
- add chain=out-mcast action=accept out-interface-list=iptv-downlink
- add chain=out-mcast action=drop
- add chain=out-local action=jump dst-address-list=DNS dst-port=53 jump-target=accept-NOCT out-interface-list=wan protocol=udp
- add chain=out-local action=jump jump-target=accept-NOCT out-interface-list=lan
- add chain=out-local action=accept
- add chain=output action=jump dst-address-type=multicast jump-target=out-mcast
- add chain=output action=jump jump-target=out-local src-address-type=local
- add chain=output action=accept
- /ip route
- add distance=1 dst-address=169.254.0.0/16 type=blackhole
- /ip upnp
- set enabled=yes
- /ip upnp interfaces
- add interface=br0-lan type=internal
- /routing igmp-proxy interface
- add alternative-subnets=0.0.0.0/0 interface=ether1-wan upstream=yes
- add interface=ether5-stb
- /system clock
- set time-zone-autodetect=no
- /system clock manual
- set time-zone=+03:00
- /system identity
- set name=Home
- /system ntp client
- set enabled=yes primary-ntp=62.76.96.4 secondary-ntp=87.229.205.75
- /system ntp server
- set enabled=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement