Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. # dec/12/2016 16:45:48 by RouterOS 6.37.3
  2. # software id = RE4F-WKP7
  3. #
  4. /interface ethernet
  5. set [ find default-name=ether2 ] name=ether2-master
  6. set [ find default-name=ether3 ] master-port=ether2-master
  7. set [ find default-name=ether4 ] master-port=ether2-master
  8. set [ find default-name=ether5 ] master-port=ether2-master
  9. /ip neighbor discovery
  10. set ether1 discover=no
  11. /interface vlan
  12. add interface=ether1 loop-protect-disable-time=0s loop-protect-send-interval=0s name=vlan10 \
  13. vlan-id=10
  14. /interface pppoe-client
  15. add add-default-route=yes allow=pap disabled=no interface=vlan10 max-mru=1480 max-mtu=1480 \
  16. mrru=1500 name=pppoe-snap password=password123 use-peer-dns=yes user=user@snap.co.nz
  17. /interface wireless security-profiles
  18. set [ find default=yes ] supplicant-identity=MikroTik
  19. /ip hotspot profile
  20. set [ find default=yes ] html-directory=flash/hotspot
  21. /ip pool
  22. add name=dhcp ranges=192.168.1.20-192.168.1.254
  23. /ip dhcp-server
  24. add address-pool=dhcp disabled=no interface=ether2-master name=defconf
  25. /ip address
  26. add address=192.168.1.2/24 comment=defconf interface=ether2-master network=192.168.1.0
  27. /ip dhcp-client
  28. add comment=defconf dhcp-options=hostname,clientid interface=ether1
  29. /ip dhcp-server lease
  30. add address=192.168.1.70 client-id=ff:cb:39:a:c7:0:2:0:0:ab:11:dc:4:7b:d1:5c:f:4b:88 \
  31. mac-address=E8:39:35:EE:21:B2 server=defconf
  32. /ip dhcp-server network
  33. add address=192.168.1.0/24 comment=defconf gateway=192.168.1.2 netmask=24
  34. /ip dns
  35. set allow-remote-requests=yes
  36. /ip dns static
  37. add address=192.168.1.2 name=router
  38. add address=192.168.1.70 name=mc.oriontransfer.co.nz
  39. add address=192.168.1.70 name=backup.oriontransfer.co.nz
  40. /ip firewall filter
  41. add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=\
  42. established,related
  43. add action=accept chain=forward comment="defconf: accept established,related" \
  44. connection-state=established,related
  45. add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
  46. add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" \
  47. connection-nat-state=!dstnat connection-state=new in-interface=pppoe-snap
  48. add action=accept chain=input protocol=icmp
  49. add action=accept chain=input connection-state=established
  50. add action=accept chain=input connection-state=related
  51. add action=drop chain=input in-interface=pppoe-snap
  52. /ip firewall nat
  53. add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=pppoe-snap
  54. add action=dst-nat chain=dstnat comment="Basic services: Web/SSH, etc." dst-port=22,80 \
  55. in-interface=pppoe-snap protocol=tcp to-addresses=192.168.1.70
  56. add action=dst-nat chain=dstnat comment="Minecraft Server" dst-port=25565 in-interface=\
  57. pppoe-snap protocol=tcp to-addresses=192.168.1.70 to-ports=25565
  58. /ip upnp
  59. set enabled=yes
  60. /ip upnp interfaces
  61. add interface=pppoe-snap type=external
  62. add interface=ether2-master type=internal
  63. /ipv6 address
  64. add eui-64=yes from-pool=upstream-ipv6 interface=ether2-master
  65. /ipv6 dhcp-client
  66. add add-default-route=yes interface=pppoe-snap pool-name=upstream-ipv6 request=prefix
  67. /ipv6 firewall filter
  68. add action=accept chain=forward connection-state=established in-interface=pppoe-snap
  69. add action=accept chain=forward connection-state=related in-interface=pppoe-snap
  70. add action=accept chain=forward in-interface=pppoe-snap protocol=icmpv6
  71. add action=accept chain=forward dst-port=22,80 in-interface=pppoe-snap protocol=tcp
  72. add action=accept chain=forward dst-port=25565 in-interface=pppoe-snap protocol=tcp
  73. add action=accept chain=forward dst-port=25565 in-interface=pppoe-snap protocol=udp
  74. add action=drop chain=forward in-interface=pppoe-snap
  75. add action=accept chain=input connection-state=established in-interface=pppoe-snap
  76. add action=accept chain=input connection-state=related in-interface=pppoe-snap
  77. add action=accept chain=input in-interface=pppoe-snap protocol=icmpv6
  78. add action=accept chain=input dst-port=546 in-interface=pppoe-snap protocol=udp
  79. add action=drop chain=input in-interface=pppoe-snap
  80. /system clock
  81. set time-zone-name=Pacific/Auckland
  82. /system identity
  83. set name=MikroTikKitchen
  84. /system routerboard settings
  85. set memory-frequency=1200DDR protected-routerboot=disabled
  86. /tool mac-server
  87. set [ find default=yes ] disabled=yes
  88. add interface=ether2-master
  89. /tool mac-server mac-winbox
  90. set [ find default=yes ] disabled=yes
  91. add interface=ether2-master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement