Guest User

Untitled

a guest
Jul 4th, 2021
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.31 KB | None | 0 0
  1. jul/04/2021 10:46:53 by RouterOS 6.47.10
  2. # software id = PYXQ-BLFN
  3. #
  4. # model = RB4011iGS+
  5. # serial number = F0260E4A13CD
  6. /interface bridge
  7. add admin-mac=2C:C8:1B:65:35:C5 arp=proxy-arp auto-mac=no igmp-snooping=yes \
  8. name=lan-bridge protocol-mode=none
  9. /interface ethernet
  10. set [ find default-name=sfp-sfpplus1 ] arp=proxy-arp l2mtu=1598 loop-protect=\
  11. off
  12. /interface vlan
  13. add interface=sfp-sfpplus1 name=vlan1.4 vlan-id=4
  14. add interface=sfp-sfpplus1 loop-protect=off name=vlan1.6 vlan-id=6
  15. /interface ethernet switch port
  16. set 0 default-vlan-id=0
  17. set 1 default-vlan-id=0
  18. set 2 default-vlan-id=0
  19. set 3 default-vlan-id=0
  20. set 4 default-vlan-id=0
  21. set 5 default-vlan-id=0
  22. set 6 default-vlan-id=0
  23. set 7 default-vlan-id=0
  24. set 8 default-vlan-id=0
  25. set 9 default-vlan-id=0
  26. set 10 default-vlan-id=0
  27. set 11 default-vlan-id=0
  28. /interface list
  29. add name=WAN
  30. add name=LAN
  31. /interface wireless security-profiles
  32. set [ find default=yes ] supplicant-identity=MikroTik
  33. /ip dhcp-client option
  34. add code=60 name=option60-vendorclass value="'IPTV_RG'"
  35. /ip dhcp-server option
  36. add code=60 name=option60-vendorclass value="'IPTV_RG'"
  37. add code=28 name=option28-broadcast value="'192.168.88.255'"
  38. /ip dhcp-server option sets
  39. add name=IPTV options=option60-vendorclass,option28-broadcast
  40. /ip pool
  41. add name=lan-dhcp ranges=192.168.88.64-192.168.88.191
  42. /ip dhcp-server
  43. add address-pool=lan-dhcp disabled=no interface=lan-bridge name=lan-server
  44. /ppp profile
  45. set *0 only-one=yes use-compression=yes use-ipv6=no use-upnp=no
  46. add name=default-ipv6 only-one=yes use-compression=yes use-upnp=no
  47. /interface pppoe-client
  48. add add-default-route=yes allow=pap interface=vlan1.6 keepalive-timeout=20 \
  49. max-mru=1500 max-mtu=1500 name=pppoe-client profile=default-ipv6 \
  50. use-peer-dns=yes [email protected]
  51. /routing bgp instance
  52. set default disabled=yes
  53. /interface bridge port
  54. add bridge=lan-bridge comment=LAN interface=ether2
  55. add bridge=lan-bridge comment=LAN interface=ether3
  56. add bridge=lan-bridge comment=LAN interface=ether4
  57. add bridge=lan-bridge comment=LAN interface=ether5
  58. add bridge=lan-bridge comment=LAN interface=ether6
  59. add bridge=lan-bridge comment=LAN interface=ether7
  60. add bridge=lan-bridge comment=LAN interface=ether8
  61. add bridge=lan-bridge comment=LAN interface=ether9
  62. add bridge=lan-bridge comment=LAN interface=ether10
  63. /ip neighbor discovery-settings
  64. set discover-interface-list=none
  65. /interface list member
  66. add interface=sfp-sfpplus1 list=WAN
  67. add interface=ether1 list=WAN
  68. add interface=lan-bridge list=LAN
  69. add interface=vlan1.4 list=WAN
  70. add interface=vlan1.6 list=WAN
  71. add interface=pppoe-client list=WAN
  72. /ip address
  73. add address=192.168.88.1/24 comment=mgmt-ip interface=lan-bridge network=\
  74. 192.168.88.0
  75. /ip dhcp-client
  76. add comment=defconf disabled=no interface=ether1
  77. add default-route-distance=210 dhcp-options=option60-vendorclass disabled=no \
  78. interface=vlan1.4 use-peer-dns=no use-peer-ntp=no
  79. /ip dhcp-server lease
  80. add address=192.168.88.20 comment="Decoder 1" dhcp-option-set=IPTV \
  81. mac-address=00:02:9B:E5:D0:49 server=lan-server
  82. /ip dhcp-server network
  83. add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
  84. /ip dns
  85. set allow-remote-requests=yes cache-max-ttl=1d servers=\
  86. 194.109.6.66,194.109.9.99
  87. /ip dns static
  88. add address=192.168.88.1 name=firsthome.kzp.home
  89. /ip firewall filter
  90. add action=accept chain=input comment=\
  91. "DEF: accept established,related,untracked" connection-state=\
  92. established,related,untracked
  93. add action=drop chain=input comment="DEF: drop invalid" connection-state=\
  94. invalid log=yes
  95. add action=accept chain=input comment="DEF: accept ICMP" protocol=icmp
  96. add action=accept chain=input comment=\
  97. "DEF: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
  98. add action=accept chain=input dst-address=192.168.88.1 dst-port=2222 \
  99. in-interface-list=LAN protocol=tcp
  100. add action=drop chain=input comment="DEF: drop all not coming from LAN" \
  101. in-interface-list=!LAN log=yes
  102. add action=accept chain=forward comment="DEF: accept in ipsec policy" \
  103. ipsec-policy=in,ipsec
  104. add action=accept chain=forward comment="DEF: accept out ipsec policy" \
  105. ipsec-policy=out,ipsec
  106. add action=fasttrack-connection chain=forward comment="DEF: fasttrack" \
  107. connection-state=established,related
  108. add action=accept chain=forward comment=\
  109. "DEF: accept established,related, untracked" connection-state=\
  110. established,related,untracked
  111. add action=drop chain=forward comment="DEF: drop invalid" connection-state=\
  112. invalid log=yes
  113. add action=drop chain=forward comment="DEF: drop all from WAN not DSTNATed" \
  114. connection-nat-state=!dstnat connection-state=new in-interface-list=WAN \
  115. log=yes
  116. /ip firewall nat
  117. add action=masquerade chain=srcnat comment="IPTV: range 1" dst-address=\
  118. 213.75.112.0/21 out-interface=vlan1.4
  119. add action=masquerade chain=srcnat comment="IPTV: range 2" dst-address=\
  120. 217.166.0.0/16 out-interface=vlan1.4
  121. # pppoe-client not ready
  122. add action=masquerade chain=srcnat comment="DEF: masquerade" ipsec-policy=\
  123. out,none out-interface=pppoe-client src-address=192.168.0.0/16
  124. add action=masquerade chain=srcnat ipsec-policy=out,none out-interface=ether1 \
  125. src-address=192.168.0.0/16
  126. /ip service
  127. set telnet disabled=yes
  128. set ftp disabled=yes
  129. set www disabled=yes
  130. set ssh address=192.168.88.0/24 port=2222
  131. set api disabled=yes
  132. set winbox disabled=yes
  133. set api-ssl disabled=yes
  134. /ip ssh
  135. set strong-crypto=yes
  136. /ipv6 address
  137. # address pool error: pool not found: 0 (4)
  138. add address=::1 from-pool=0 interface=lan-bridge
  139. /ipv6 dhcp-client
  140. add add-default-route=yes interface=pppoe-client pool-name=0 \
  141. pool-prefix-length=48 request=prefix use-peer-dns=no
  142. /ipv6 firewall filter
  143. # no interface
  144. add action=accept chain=input connection-state=established in-interface=\
  145. pppoe-client
  146. # no interface
  147. add action=accept chain=input connection-state=related in-interface=\
  148. pppoe-client
  149. # no interface
  150. add action=accept chain=input in-interface=pppoe-client protocol=icmpv6
  151. # no interface
  152. add action=accept chain=input comment="DHCPv6 for public addresses" \
  153. dst-address=fe80::/64 dst-port=546 in-interface=pppoe-client log-prefix=\
  154. DHCPv6 protocol=udp
  155. # no interface
  156. add action=reject chain=input in-interface=pppoe-client reject-with=\
  157. icmp-port-unreachable
  158. # no interface
  159. add action=accept chain=forward connection-state=related in-interface=\
  160. pppoe-client
  161. # no interface
  162. add action=accept chain=forward connection-state=established in-interface=\
  163. pppoe-client
  164. # no interface
  165. add action=reject chain=forward in-interface=pppoe-client reject-with=\
  166. icmp-no-route
  167. /ipv6 nd
  168. set [ find default=yes ] disabled=yes
  169. add advertise-mac-address=no hop-limit=64 interface=lan-bridge
  170. /routing igmp-proxy
  171. set quick-leave=yes
  172. /routing igmp-proxy interface
  173. add alternative-subnets=0.0.0.0/0 interface=vlan1.4 upstream=yes
  174. add interface=lan-bridge
  175. /system clock
  176. set time-zone-name=Europe/Amsterdam
  177. /system identity
  178. set name=firsthome
  179. /system logging
  180. add topics=firewall,pppoe,ppp
  181. /tool bandwidth-server
  182. set enabled=no
  183. /tool mac-server
  184. set allowed-interface-list=none
  185. /tool mac-server mac-winbox
  186. set allowed-interface-list=none
  187. /tool sniffer
  188. set file-name=capture-20210307-02.pcap filter-interface=sfp-sfpplus1 \
  189. filter-stream=yes streaming-enabled=yes streaming-server=192.168.88.191
  190.  
Advertisement
Add Comment
Please, Sign In to add comment