Advertisement
bindallkeystoexplode

Mikrotik config 15-05-2016

May 14th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. # may/15/2016 12:44:02 by RouterOS 6.30.4
  2. # software id = G7S8-6MTA
  3. #
  4. /interface bridge
  5. add admin-mac=E4:8D:8C:5B:62:5A auto-mac=no name=bridge-local
  6. /interface wireless
  7. set [ find default-name=wlan1 ] band=2ghz-onlyn channel-width=20/40mhz-Ce \
  8. country=australia disabled=no distance=indoors frequency=auto l2mtu=1600 \
  9. mode=ap-bridge rx-chains=0,1 ssid=MikroTik-5B625D tx-chains=0,1 \
  10. wireless-protocol=802.11
  11. /interface ethernet
  12. set [ find default-name=ether1 ] name=ether1-gateway
  13. set [ find default-name=ether2 ] name=ether2-master-local
  14. set [ find default-name=ether3 ] master-port=ether2-master-local name=\
  15. ether3-slave-local
  16. set [ find default-name=ether4 ] master-port=ether2-master-local name=\
  17. ether4-slave-local
  18. /interface pppoe-client
  19. add add-default-route=yes disabled=no interface=ether1-gateway name=pppoe-out1 \
  20. password=*SNIP* service-name=iiNet use-peer-dns=yes user=\
  21. *SNIP*
  22. /ip neighbor discovery
  23. set ether1-gateway discover=no
  24. /interface wireless security-profiles
  25. set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=\
  26. dynamic-keys wpa-pre-shared-key=crystalcastles wpa2-pre-shared-key=\
  27. crystalcastles
  28. /ip ipsec policy group
  29. add name=group1
  30. /ip pool
  31. add name=dhcp ranges=192.168.131.100-192.168.131.253
  32. /ip dhcp-server
  33. add address-pool=dhcp disabled=no interface=bridge-local name=default
  34. /interface bridge port
  35. add bridge=bridge-local interface=ether2-master-local
  36. add bridge=bridge-local interface=wlan1
  37. /ip address
  38. add address=192.168.131.254/24 comment="default configuration" interface=\
  39. ether2-master-local network=192.168.131.0
  40. /ip dhcp-client
  41. add comment="default configuration" dhcp-options=hostname,clientid interface=\
  42. ether1-gateway
  43. /ip dhcp-server network
  44. add address=192.168.131.0/24 comment="default configuration" gateway=\
  45. 192.168.131.254 netmask=24
  46. /ip dns
  47. set allow-remote-requests=yes
  48. /ip dns static
  49. add address=192.168.131.254 name=router
  50. /ip firewall filter
  51. add chain=input comment="default configuration" protocol=icmp
  52. add chain=input comment="default configuration" connection-state=\
  53. established,related
  54. add action=drop chain=input comment="default configuration" in-interface=\
  55. ether1-gateway
  56. add action=fasttrack-connection chain=forward comment="default configuration" \
  57. connection-state=established,related
  58. add chain=forward comment="default configuration" connection-state=\
  59. established,related
  60. add action=drop chain=forward comment="default configuration" connection-state=\
  61. invalid
  62. add action=drop chain=forward comment="default configuration" \
  63. connection-nat-state=!dstnat connection-state=new in-interface=\
  64. ether1-gateway
  65. /ip firewall nat
  66. add chain=srcnat dst-address=172.16.0.0/24 src-address=192.168.131.0/24
  67. add action=masquerade chain=srcnat comment="default configuration" \
  68. out-interface=pppoe-out1
  69. /ip ipsec peer
  70. add address=58.166.115.192/32 policy-template-group=group1 secret=test
  71. /ip ipsec policy
  72. add dst-address=172.16.0.0/24 sa-dst-address=58.166.115.192 sa-src-address=\
  73. 124.168.156.150 src-address=192.168.131.0/24 tunnel=yes
  74. /ip service
  75. set telnet disabled=yes
  76. set www disabled=yes
  77. /ip upnp
  78. set enabled=yes
  79. /ip upnp interfaces
  80. add interface=bridge-local type=internal
  81. add interface=pppoe-out1 type=external
  82. /system clock
  83. set time-zone-name=Australia/Sydney
  84. /system routerboard settings
  85. set cpu-frequency=650MHz protected-routerboot=disabled
  86. /tool mac-server
  87. set [ find default=yes ] disabled=yes
  88. add interface=ether2-master-local
  89. add interface=ether3-slave-local
  90. add interface=ether4-slave-local
  91. add interface=wlan1
  92. add interface=bridge-local
  93. /tool mac-server mac-winbox
  94. set [ find default=yes ] disabled=yes
  95. add interface=ether2-master-local
  96. add interface=ether3-slave-local
  97. add interface=ether4-slave-local
  98. add interface=wlan1
  99. add interface=bridge-local
  100. /tool romon port
  101. add
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement