Guest User

Untitled

a guest
Nov 16th, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.59 KB | None | 0 0
  1. # nov/16/2020 07:56:39 by RouterOS 6.47.7
  2. # software id = JTDL-XA8A
  3. #
  4. # model = RouterBOARD 941-2nD
  5. # serial number = 661606CxxxC4
  6. /interface bridge
  7. add admin-mac=6C:3B:6B:4F:F3:54 auto-mac=no fast-forward=no name=bridge
  8. /interface ethernet
  9. set [ find default-name=ether1 ] advertise=\
  10. 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full mac-address=\
  11. 6C:3B:6B:4F:F3:51
  12. set [ find default-name=ether2 ] advertise=\
  13. 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full mac-address=\
  14. 6C:3B:6B:4F:F3:53
  15. set [ find default-name=ether3 ] advertise=\
  16. 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
  17. set [ find default-name=ether4 ] advertise=\
  18. 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
  19. /interface l2tp-client
  20. add connect-to=3.5.7.4 disabled=no name=l2tp-Brat password=\
  21. G&IrY user=Brat
  22. /interface list
  23. add exclude=dynamic name=discover
  24. add name=mactel
  25. add name=mac-winbox
  26. /interface wireless security-profiles
  27. set [ find default=yes ] supplicant-identity=MikroTik
  28. add authentication-types=wpa-psk,wpa2-psk eap-methods="" \
  29. management-protection=allowed mode=dynamic-keys name=profile1 \
  30. supplicant-identity="" wpa-pre-shared-key=1a2b3c4d5e wpa2-pre-shared-key=\
  31. 1a2b3c4d5e
  32. add authentication-types=wpa-psk,wpa2-psk eap-methods="" group-ciphers=\
  33. tkip,aes-ccm management-protection=allowed mode=dynamic-keys name=ipad \
  34. supplicant-identity="" unicast-ciphers=tkip,aes-ccm wpa-pre-shared-key=\
  35. 88888888 wpa2-pre-shared-key=88888888
  36. /interface wireless
  37. set [ find default-name=wlan1 ] band=2ghz-g/n channel-width=20/40mhz-eC \
  38. country=germany disabled=no distance=indoors frequency=2437 mode=\
  39. ap-bridge multicast-helper=full security-profile=profile1 ssid=Test_16 \
  40. station-roaming=enabled wireless-protocol=802.11
  41. add disabled=no keepalive-frames=disabled mac-address=6E:3B:6B:4F:F3:57 \
  42. master-interface=wlan1 multicast-buffering=disabled name=wlan2 \
  43. security-profile=ipad ssid=IPadOne station-roaming=enabled \
  44. wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
  45. /ip pool
  46. add name=dhcp_pool1 ranges=192.168.8.2-192.168.8.254
  47. add name=dhcp_pool2 ranges=192.168.16.20-192.168.16.150
  48. /ip dhcp-server
  49. add address-pool=dhcp_pool1 authoritative=after-2sec-delay disabled=no \
  50. interface=wlan2 lease-time=10m name=dhcp2
  51. add address-pool=dhcp_pool2 disabled=no interface=bridge lease-time=1d10m \
  52. name=dhcp1
  53. /user group
  54. set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,pas\
  55. sword,web,sniff,sensitive,api,romon,dude,tikapp"
  56. /interface bridge port
  57. add bridge=bridge interface=wlan1
  58. add bridge=bridge hw=no interface=ether3
  59. add bridge=bridge hw=no interface=ether4
  60. /ip firewall connection tracking
  61. set tcp-established-timeout=10m
  62. /ip neighbor discovery-settings
  63. set discover-interface-list=discover
  64. /interface list member
  65. add interface=ether2 list=discover
  66. add interface=ether3 list=discover
  67. add interface=ether4 list=discover
  68. add interface=wlan1 list=discover
  69. add interface=bridge list=discover
  70. add interface=wlan2 list=discover
  71. add interface=l2tp-Brat list=discover
  72. add interface=bridge list=mactel
  73. add interface=bridge list=mac-winbox
  74. /ip address
  75. add address=192.168.16.1/24 interface=bridge network=192.168.16.0
  76. add address=192.168.8.1/24 interface=wlan2 network=192.168.8.0
  77. /ip dhcp-client
  78. add comment=defconf disabled=no interface=ether1
  79. add interface=ether2
  80. /ip dhcp-server network
  81. add address=192.168.8.0/24 gateway=192.168.8.1
  82. add address=192.168.16.0/24 dns-server=1.1.1.1,193.41.60.2 gateway=\
  83. 192.168.16.1
  84. /ip dns
  85. set allow-remote-requests=yes
  86. /ip dns static
  87. add address=192.168.8.1 name=router
  88. /ip firewall filter
  89. add action=drop chain=forward comment="No Internet" disabled=yes \
  90. out-interface=ether1 src-address-list=!Internet
  91. add action=add-src-to-address-list address-list=allow-ip \
  92. address-list-timeout=1h chain=input comment="Port Knocking 357 --> 385" \
  93. packet-size=385 protocol=icmp
  94. add action=drop chain=input icmp-options=8:0 in-interface=ether1 packet-size=\
  95. !385 protocol=icmp
  96. add action=drop chain=input icmp-options=8:0 in-interface=ether2 packet-size=\
  97. !385 protocol=icmp
  98. add action=drop chain=input comment="drop ssh brute forcers" dst-port=22 \
  99. protocol=tcp src-address-list=ssh_blacklist
  100. add action=add-src-to-address-list address-list=ssh_blacklist \
  101. address-list-timeout=1w3d chain=input connection-state=new dst-port=22 \
  102. protocol=tcp src-address-list=ssh_stage3
  103. add action=add-src-to-address-list address-list=ssh_stage3 \
  104. address-list-timeout=1m chain=input connection-state=new dst-port=22 \
  105. protocol=tcp src-address-list=ssh_stage2
  106. add action=add-src-to-address-list address-list=ssh_stage2 \
  107. address-list-timeout=1m chain=input connection-state=new dst-port=22 \
  108. protocol=tcp src-address-list=ssh_stage1
  109. add action=add-src-to-address-list address-list=ssh_stage1 \
  110. address-list-timeout=1m chain=input connection-state=new dst-port=22 \
  111. protocol=tcp
  112. add action=drop chain=input comment="drop winbox brute forcers" dst-port=8291 \
  113. protocol=tcp src-address-list=winbox_blacklist
  114. add action=add-src-to-address-list address-list=winbox_blacklist \
  115. address-list-timeout=1w3d chain=input connection-state=new dst-port=8291 \
  116. protocol=tcp src-address-list=winbox_stage3
  117. add action=add-src-to-address-list address-list=winbox_stage3 \
  118. address-list-timeout=1m chain=input connection-state=new dst-port=8291 \
  119. protocol=tcp src-address-list=winbox_stage2
  120. add action=add-src-to-address-list address-list=winbox_stage2 \
  121. address-list-timeout=1m chain=input connection-state=new dst-port=8291 \
  122. protocol=tcp src-address-list=winbox_stage1
  123. add action=add-src-to-address-list address-list=winbox_stage1 \
  124. address-list-timeout=1m chain=input connection-state=new dst-port=8291 \
  125. protocol=tcp
  126. add action=accept chain=input comment=SSH dst-port=22 protocol=tcp \
  127. src-address-list=allow-ip
  128. add chain=input comment=PPTP dst-port=1723 protocol=tcp
  129. add action=accept chain=input protocol=ipsec-esp
  130. add action=accept chain=input comment=L2TP dst-port=1701,4500,500 protocol=\
  131. udp
  132. add action=accept chain=input comment=WinBox dst-port=8291 protocol=tcp \
  133. src-address-list=allow-ip
  134. add chain=input comment=IPTV protocol=igmp
  135. add chain=input comment=IPTV dst-port=1234 protocol=udp
  136. add chain=input comment="default configuration" protocol=icmp
  137. add chain=input comment="default configuration" connection-state=established
  138. add chain=input comment="default configuration" connection-state=related
  139. add action=drop chain=input comment="default configuration" in-interface=\
  140. ether1
  141. add action=drop chain=input comment="default configuration" in-interface=\
  142. ether2
  143. add chain=forward comment="default configuration" connection-state=\
  144. established
  145. add chain=forward comment="default configuration" connection-state=related
  146. add action=drop chain=forward comment="default configuration" \
  147. connection-state=invalid
  148. /ip firewall nat
  149. add action=masquerade chain=srcnat comment="defconf: masquerade"
  150. /ip route
  151. add distance=1 dst-address=192.168.11.0/24 gateway=172.16.10.98
  152. /ip service
  153. set telnet disabled=yes
  154. set ftp disabled=yes
  155. set www disabled=yes
  156. set api disabled=yes
  157. set api-ssl disabled=yes
  158. /ip ssh
  159. set allow-none-crypto=yes forwarding-enabled=remote
  160. /system clock
  161. set time-zone-name=Europe/Kiev
  162. /system identity
  163. set name=MikroBR
  164. /system ntp client
  165. set enabled=yes primary-ntp=91.198.10.1 secondary-ntp=178.136.117.33
  166. /tool mac-server
  167. set allowed-interface-list=mactel
  168. /tool mac-server mac-winbox
  169. set allowed-interface-list=mac-winbox
  170.  
Advertisement
Add Comment
Please, Sign In to add comment