Advertisement
Guest User

Untitled

a guest
Jul 27th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. /system reset-configuration no-defaults=yes
  2. /interface bridge add name=LAN
  3. /interface ethernet
  4. set [ find default-name=ether2 ] name=ether2-master-computer
  5. set [ find default-name=ether3 ] name=ether3-phone
  6. set [ find default-name=ether4 ] name=ether4-printer
  7. /interface wireless
  8. set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
  9. disabled=no distance=indoors frequency=auto mode=ap-bridge name=wlan1-2G \
  10. ssid=TSGx wireless-protocol=802.11
  11. set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
  12. 20/40/80mhz-Ceee disabled=no distance=indoors frequency=auto mode=\
  13. ap-bridge name=wlan2-5G ssid=TSGx wireless-protocol=802.11
  14. /interface wireless security-profiles
  15. set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=\
  16. dynamic-keys supplicant-identity=MikroTik wpa2-pre-shared-key=12monkeys
  17. add authentication-types=wpa2-eap eap-methods=eap-ttls-mschapv2 mode=\
  18. dynamic-keys mschapv2-password=norgren1 mschapv2-username=norgren1 name=\
  19. norgren supplicant-identity=MikroTik wpa2-pre-shared-key=12monkeys
  20. /ip dhcp-server option
  21. add code=66 name="PBX Option 66" value=\
  22. "'ftp://polycom:A6T31iF589g4i42@phone.terrasvc.com'"
  23. add code=160 name="PBX Option 160" value=\
  24. "'ftp://polycom:A6T31iF589g4i42@phone.terrasvc.com'"
  25. /ip dhcp-server option sets
  26. add name=default options="PBX Option 66,PBX Option 160"
  27. /ip hotspot profile
  28. set [ find default=yes ] html-directory=flash/hotspot
  29. /ip pool
  30. add name=default ranges=10.1.51.100-10.1.51.200
  31. /ip dhcp-server
  32. add address-pool=default disabled=no interface=LAN lease-time=3d name=default
  33. /interface bridge port
  34. add bridge=LAN comment=defconf interface=ether2-master-computer
  35. add bridge=LAN comment=defconf interface=wlan1-2G
  36. add bridge=LAN comment=defconf interface=wlan2-5G
  37. add bridge=LAN interface=ether3-phone
  38. add bridge=LAN interface=ether4-printer
  39. add bridge=LAN interface=ether5
  40. /interface list member
  41. add interface=ether2-master-computer list=discover
  42. add interface=ether3-phone list=discover
  43. add interface=ether4-printer list=discover
  44. add interface=ether5 list=discover
  45. add interface=wlan1-2G list=discover
  46. add interface=wlan2-5G list=discover
  47. add interface=LAN list=discover
  48. add interface=LAN list=mactel
  49. add interface=LAN list=mac-winbox
  50. /ip address
  51. add address=10.1.51.1/24 interface=LAN network=10.1.51.0
  52. /ip dhcp-client
  53. add comment=defconf dhcp-options=hostname,clientid disabled=no interface=\
  54. ether1 use-peer-dns=no
  55. /ip dhcp-server network
  56. add address=10.1.51.0/24 dhcp-option-set=default dns-server=\
  57. 10.1.51.1,10.1.0.4,10.1.1.90 domain=terrasvc.com gateway=10.1.51.1 \
  58. ntp-server=10.1.0.5
  59. /ip dns
  60. set allow-remote-requests=yes servers=10.1.0.4
  61. /ip dns static
  62. add address=10.1.51.1 name=router
  63. /ip firewall filter
  64. add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
  65. add action=accept chain=input comment="defconf: accept established,related" \
  66. connection-state=established,related
  67. add action=drop chain=input comment="defconf: drop all from WAN" \
  68. in-interface=ether1
  69. add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
  70. connection-state=established,related
  71. add action=accept chain=forward comment="defconf: accept established,related" \
  72. connection-state=established,related
  73. add action=drop chain=forward comment="defconf: drop invalid" \
  74. connection-state=invalid
  75. add action=drop chain=forward comment=\
  76. "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
  77. connection-state=new in-interface=ether1
  78. /ip firewall nat
  79. add action=masquerade chain=srcnat comment="defconf: masquerade" \
  80. out-interface=ether1
  81. /ip route
  82. add distance=1 dst-address=10.0.0.0/8 gateway=10.1.0.1
  83. add distance=1 dst-address=10.1.1.0/24 gateway=10.1.200.1
  84. /system clock
  85. set time-zone-name=America/Los_Angeles
  86. /system routerboard settings
  87. set silent-boot=no
  88. /tool mac-server
  89. set allowed-interface-list=mactel
  90. /tool mac-server mac-winbox
  91. set allowed-interface-list=mac-winbox
  92. /interface ovpn-client
  93. add cipher=aes256 connect-to=216.243.2.74 name=\
  94. ovpn-Everett-Wave password=yUWuJap6mac8Ezaf profile=default-encryption \
  95. user=suddath
  96. add cipher=aes256 connect-to=174.127.185.34 \
  97. name=ovpn-Westin-Wave password=yUWuJap6mac8Ezaf profile=\
  98. default-encryption user=suddath
  99. /system reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement