Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.13 KB | None | 0 0
  1. /interface bridge
  2. add admin-mac=D4:CA:6D:07:29:53 auto-mac=no l2mtu=1598 name=bridge-local
  3. /interface wireless
  4. set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-ht-above disabled=no distance=indoors frequency=auto hw-retries=15 l2mtu=2290 mode=ap-bridge ssid=iichan@mikrotik wireless-protocol=802.11
  5. /interface ethernet
  6. set [ find default-name=ether1 ] mac-address=00:04:76:1F:C5:BF name=ether1-gateway
  7. set [ find default-name=ether2 ] name=ether2-master-local
  8. set [ find default-name=ether3 ] name=ether3-slave-local
  9. set [ find default-name=ether4 ] comment=Imouto master-port=ether2-master-local name=ether4-slave-local
  10. set [ find default-name=ether5 ] comment=RAN master-port=ether2-master-local name=ether5-slave-local
  11. /ip neighbor discovery
  12. set ether1-gateway discover=no
  13. set ether4-slave-local comment=Imouto
  14. set ether5-slave-local comment=RAN
  15. /interface wireless security-profiles
  16. set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys wpa-pre-shared-key=wpapresharedkey123456 wpa2-pre-shared-key=wpapresharedkey123456
  17. /ip hotspot user profile
  18. set [ find default=yes ] idle-timeout=none keepalive-timeout=2m mac-cookie-timeout=3d
  19. /ip pool
  20. add name=dhcp ranges=192.168.88.30-192.168.88.254
  21. /ip dhcp-server
  22. add address-pool=dhcp disabled=no interface=bridge-local lease-time=10m name=default
  23. /interface pppoe-client
  24. add ac-name="" add-default-route=yes allow=pap,chap,mschap1,mschap2 default-route-distance=1 dial-on-demand=no disabled=no interface=ether1-gateway keepalive-timeout=60 max-mru=1480 max-mtu=1480 mrru=1600 name=pppoe-out1 password=passfhgrh profile=default service-name="" use-peer-dns=yes user=usrbvfbhvbb
  25. /interface bridge port
  26. add bridge=bridge-local interface=ether2-master-local
  27. add bridge=bridge-local interface=wlan1
  28. /interface l2tp-server server
  29. set default-profile=default enabled=yes
  30. /interface wireless access-list
  31. add interface=wlan1 mac-address=6C:8B:2F:E2:FA:43
  32. /interface wireless connect-list
  33. add interface=wlan1 mac-address=6C:8B:2F:E2:FA:43 security-profile=default
  34. /ip address
  35. add address=192.168.88.1/24 comment="default configuration" interface=ether2-master-local network=192.168.88.0
  36. /ip dhcp-server network
  37. add address=192.168.88.0/24 comment="default configuration" dns-server=192.168.88.1 gateway=192.168.88.1
  38. /ip dns
  39. set allow-remote-requests=yes
  40. /ip dns static
  41. add address=192.168.88.1 name=router
  42. /ip firewall filter
  43. add chain=input comment="default configuration" protocol=icmp
  44. add chain=input comment="default configuration" connection-state=established
  45. add chain=input comment="default configuration" connection-state=related
  46. add chain=forward comment="p2p RAN" dst-address=192.168.88.25 dst-port=31330-31340 in-interface=!ether1-gateway protocol=tcp
  47. add chain=forward comment="p2p RAN" dst-address=192.168.88.25 dst-port=31330-31340 in-interface=!ether1-gateway protocol=udp
  48. add action=drop chain=input comment="default configuration" in-interface=ether1-gateway
  49. add chain=forward comment="default configuration" connection-state=established
  50. add chain=forward comment="default configuration" connection-state=related
  51. add action=drop chain=forward comment="default configuration" connection-state=invalid
  52. /ip firewall nat
  53. add action=masquerade chain=srcnat comment="default configuration" out-interface=pppoe-out1 src-address=192.168.88.0/24 to-addresses=0.0.0.0
  54. add action=dst-nat chain=dstnat dst-port=31330-31340 protocol=tcp to-addresses=192.168.88.25 to-ports=31330-31340
  55. add action=dst-nat chain=dstnat dst-port=31330-31340 protocol=udp to-addresses=192.168.88.25 to-ports=31330-31340
  56. /ip service
  57. set telnet disabled=yes
  58. set ftp address=192.168.88.0/24
  59. set www address=192.168.88.0/24
  60. set ssh address=192.168.88.0/24
  61. set api disabled=yes
  62. set winbox address=192.168.88.0/24
  63. set api-ssl disabled=yes
  64. /ip smb
  65. set enabled=yes interfaces=bridge-local
  66. /ip upnp
  67. set allow-disable-external-interface=no enabled=yes
  68. /ip upnp interfaces
  69. add interface=bridge-local type=internal
  70. add forced-external-ip=79.35.0.113 interface=pppoe-out1 type=external
  71. add disabled=yes interface=ether1-gateway type=external
  72. /system clock
  73. set time-zone-name=Europe/Samara
  74. /system leds
  75. set 0 interface=wlan1
  76. /system note
  77. set note="have a nice day"
  78. /system ntp client
  79. set enabled=yes mode=unicast primary-ntp=91.207.136.50 secondary-ntp=146.185.130.223
  80. /system routerboard settings
  81. set cpu-frequency=700MHz
  82. /system script
  83. add name=alarm policy=ftp,read,policy,test,winbox,password,sniff,sensitive,api source=":for t1 from=1 to=10 step=1 do={\r\
  84.    \n   :for t2 from=300 to=1800 step=40 do={\r\
  85.    \n     :beep frequency=\$t2 length=11ms;\r\
  86.    \n     :delay 11ms;\r\
  87.    \n   }\r\
  88.    \n }"
  89. /tool mac-server
  90. set [ find default=yes ] disabled=yes
  91. add interface=ether2-master-local
  92. add interface=ether3-slave-local
  93. add interface=ether4-slave-local
  94. add interface=ether5-slave-local
  95. add interface=wlan1
  96. add interface=bridge-local
  97. /tool mac-server mac-winbox
  98. set [ find default=yes ] disabled=yes
  99. add interface=ether2-master-local
  100. add interface=ether3-slave-local
  101. add interface=ether4-slave-local
  102. add interface=ether5-slave-local
  103. add interface=wlan1
  104. add interface=bridge-local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement