Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # may/28/2020 23:19:53 by RouterOS 6.46.6
- # software id = NJ6V-HSL8
- #
- # model = RBD52G-5HacD2HnD
- # serial number = B4A00A8DBE0B
- /interface bridge
- add admin-mac=74:4D:28:83:8D:A1 auto-mac=no igmp-snooping=yes name=Bridge-LAN
- add admin-mac=42:21:87:13:C5:FD auto-mac=no disabled=yes igmp-snooping=yes \
- name=Bridge-Wifi
- /interface ethernet
- set [ find default-name=ether1 ] comment=ISP name=WAN
- set [ find default-name=ether2 ] comment="main comp" name=eth1
- set [ find default-name=ether3 ] comment=zal name=eth2
- set [ find default-name=ether4 ] comment=Badroom name=eth3
- set [ find default-name=ether5 ] comment="rpi server" name=eth4
- /interface list
- add name=list-WAN
- add name=list-LAN
- add exclude=dynamic name=discover
- /interface wireless channels
- add band=2ghz-onlyn disabled=yes extension-channel=Ce frequency=2412 list=\
- 9-13 name=ch1 width=40
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- add authentication-types=wpa2-psk eap-methods="" group-key-update=1h mode=\
- dynamic-keys name=home supplicant-identity=""
- /interface wireless
- set [ find default-name=wlan1 ] adaptive-noise-immunity=ap-and-client-mode \
- antenna-gain=0 band=2ghz-b/g/n channel-width=20/40mhz-Ce country=russia \
- disabled=no disconnect-timeout=10s distance=indoors frequency=auto \
- frequency-mode=superchannel hw-protection-mode=rts-cts installation=\
- indoor max-station-count=50 mode=ap-bridge multicast-helper=full name=\
- wlan1-2.4GHz security-profile=home ssid=nowhere2 wireless-protocol=802.11 \
- wmm-support=enabled wps-mode=disabled
- set [ find default-name=wlan2 ] adaptive-noise-immunity=ap-and-client-mode \
- antenna-gain=0 band=5ghz-onlyac channel-width=20/40/80mhz-XXXX country=\
- russia disabled=no disconnect-timeout=10s distance=indoors \
- frequency-mode=superchannel hw-protection-mode=rts-cts installation=\
- indoor mode=ap-bridge multicast-helper=full name=wlan2-5GHz \
- security-profile=home ssid=nowhere5 wireless-protocol=802.11 wmm-support=\
- enabled wps-mode=disabled
- /interface wireless nstreme
- set wlan1-2.4GHz enable-polling=no
- set wlan2-5GHz enable-polling=no
- /ip firewall layer7-protocol
- add name=youtube regexp="^.+(youtube).*\$"
- /ip hotspot profile
- set [ find default=yes ] html-directory=flash/hotspot
- /ip kid-control
- add disabled=yes name=weekly
- /ip pool
- add name=lan ranges=192.168.10.10-192.168.10.90
- /ip dhcp-server
- add address-pool=lan disabled=no interface=Bridge-LAN lease-time=1w3d name=\
- DHCP-LAN
- /ppp profile
- add local-address=10.1.1.1 name=ovpn only-one=yes remote-address=openvpn \
- use-encryption=required
- /queue tree
- add disabled=yes max-limit=97M name=in parent=global
- add disabled=yes max-limit=97M name=out parent=global
- /queue type
- add kind=pcq name=pcq-download pcq-classifier=dst-address \
- pcq-dst-address6-mask=64 pcq-limit=350KiB pcq-rate=100M \
- pcq-src-address6-mask=64 pcq-total-limit=20000KiB
- add kind=pcq name=pcq-upload pcq-classifier=src-address \
- pcq-dst-address6-mask=64 pcq-limit=350KiB pcq-rate=100M \
- pcq-src-address6-mask=64 pcq-total-limit=15000KiB
- /queue tree
- add disabled=yes limit-at=30M max-limit=95M name=web-in packet-mark=web-in \
- parent=in priority=4 queue=pcq-download
- add disabled=yes limit-at=30M max-limit=95M name=web-out packet-mark=web-out \
- parent=out priority=4 queue=pcq-upload
- add disabled=yes max-limit=95M name=no-mark-in packet-mark=no-mark-in parent=\
- in queue=pcq-download
- add disabled=yes max-limit=95M name=no-mark-out packet-mark=no-mark-out \
- parent=out queue=pcq-upload
- add disabled=yes limit-at=60M max-limit=95M name=IPTV-in packet-mark=IPTV-in \
- parent=in priority=2 queue=pcq-download-default
- add disabled=yes max-limit=95M name=main-devices-in packet-mark=main-in \
- parent=in priority=1 queue=pcq-download
- add disabled=yes max-limit=95M name=main-devices-out packet-mark=main-out \
- parent=out priority=1 queue=pcq-upload
- /system logging action
- add email-start-tls=yes [email protected] name=email target=\
- email
- /user group
- set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,pas\
- sword,web,sniff,sensitive,api,romon,dude,tikapp"
- /interface bridge port
- add bridge=Bridge-LAN interface=eth1
- add bridge=Bridge-LAN interface=eth2
- add bridge=Bridge-LAN interface=eth3
- add bridge=Bridge-LAN interface=eth4
- add bridge=Bridge-LAN interface=wlan1-2.4GHz
- add bridge=Bridge-LAN interface=wlan2-5GHz
- /ip neighbor discovery-settings
- set discover-interface-list=discover
- /interface detect-internet
- set detect-interface-list=all
- /interface list member
- add interface=WAN list=list-WAN
- add interface=Bridge-LAN list=list-LAN
- add interface=Bridge-LAN list=discover
- /ip address
- add address=192.168.10.1/24 comment=Local interface=Bridge-LAN network=\
- 192.168.10.0
- add address=192.168.20.1/24 comment=Wifi disabled=yes interface=Bridge-Wifi \
- network=192.168.20.0
- /ip dhcp-client
- add add-default-route=special-classless dhcp-options=clientid,clientid \
- disabled=no interface=WAN
- /ip dhcp-server network
- add address=192.168.10.0/24 dns-server=8.8.8.8,91.207.136.62 gateway=\
- 192.168.10.1 netmask=24 ntp-server=192.168.10.1
- /ip dns static
- add address=192.168.10.1 name=mikrotik
- /ip firewall address-list
- add address=192.168.10.6 list=rpi
- add address=192.168.10.10 list=main-devices
- add address=192.168.10.87 list=Vlad
- add address=192.168.10.89 list=Vlad
- add address=192.168.10.0/24 list=LAN
- /ip firewall filter
- add action=fasttrack-connection chain=forward connection-state=\
- established,related
- add action=accept chain=input comment="Established, related, untracted" \
- connection-state=established,related,untracked
- add action=accept chain=forward connection-state=\
- established,related,untracked
- add action=drop chain=input comment=Invalid connection-state=invalid \
- in-interface-list=list-WAN log-prefix="inv drop INPUT"
- add action=drop chain=forward connection-state=invalid log-prefix=\
- "inv drop FORWARD"
- add action=drop chain=input comment="Drop OUTSIDE" in-interface-list=list-WAN \
- log-prefix=dropOUTSIDE
- /ip firewall mangle
- add action=change-mss chain=forward disabled=yes log=yes log-prefix=MSS \
- new-mss=1400 out-interface=WAN passthrough=no protocol=tcp tcp-flags=syn \
- tcp-mss=1401-65535
- add action=mark-connection chain=prerouting comment=WEB dst-port=80,443,8080 \
- new-connection-mark=web passthrough=yes protocol=tcp
- add action=mark-packet chain=forward connection-mark=web in-interface=WAN \
- new-packet-mark=web-in passthrough=yes
- add action=mark-packet chain=forward connection-mark=web new-packet-mark=\
- web-out out-interface=WAN passthrough=yes
- add action=mark-connection chain=prerouting comment=No-mark connection-mark=\
- no-mark new-connection-mark=no-mark-con passthrough=yes
- add action=mark-packet chain=forward connection-mark=no-mark-con \
- in-interface=WAN new-packet-mark=no-mark-in passthrough=yes
- add action=mark-packet chain=forward connection-mark=no-mark-con \
- new-packet-mark=no-mark-out out-interface=WAN passthrough=yes
- add action=mark-connection chain=prerouting comment=IPTV dst-port=1234 \
- new-connection-mark=IPTV passthrough=yes protocol=udp
- add action=mark-packet chain=forward connection-mark=IPTV in-interface=WAN \
- new-packet-mark=IPTV-in passthrough=yes
- add action=mark-packet chain=forward connection-mark=IPTV new-packet-mark=\
- IPTV-out out-interface=WAN passthrough=yes
- /ip firewall nat
- add action=masquerade chain=srcnat dst-address=!192.168.0.0/16 \
- out-interface-list=list-WAN src-address=192.168.0.0/16
- /ip firewall service-port
- set sip disabled=yes
- /ip service
- set telnet disabled=yes
- set ftp disabled=yes
- set www disabled=yes
- set api disabled=yes
- set api-ssl disabled=yes
- /ip upnp interfaces
- add interface=Bridge-LAN type=internal
- add interface=WAN type=external
- /ppp secret
- add name=ever profile=ovpn
- /system clock
- set time-zone-name=Europe/Moscow
- /system identity
- set name=mikrotik
- /system leds
- add interface=WAN leds=user-led type=interface-transmit
- /system logging
- add topics=wireless
- /system ntp client
- set enabled=yes primary-ntp=88.147.254.227 secondary-ntp=89.109.251.21
- /system ntp server
- set enabled=yes
- /system routerboard mode-button
- set enabled=yes on-event=reboot_router
- /tool mac-server
- set allowed-interface-list=discover
- /tool mac-server mac-winbox
- set allowed-interface-list=discover
Add Comment
Please, Sign In to add comment