Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. /interface ethernet
  2. set [ find default-name=ether2 ] name=ether2-master
  3. set [ find default-name=ether5 ] master-port=ether4
  4. /interface l2tp-client
  5. add connect-to=184.107.96.114 disabled=no max-mru=1410 max-mtu=1410 mrru=1600 \
  6. name=l2tp-out1 password=1xxx user=Jxxxx
  7. /ip neighbor discovery
  8. set ether1 discover=no
  9. /ip dhcp-server option
  10. add code=66 name=Option66 value="'xxxx'"
  11. /ip hotspot profile
  12. set [ find default=yes ] html-directory=flash/hotspot
  13. /ip pool
  14. add name=DHCP ranges=192.168.88.10-192.168.88.200
  15. add name=Phone ranges=172.16.150.50-172.16.150.150
  16. /ip dhcp-server
  17. add address-pool=DHCP disabled=no interface=ether2-master name=defconf
  18. add address-pool=Phone disabled=no interface=ether4 name=Phone
  19. /snmp community
  20. add addresses=1xxxxx name="xxxx"
  21. /ip address
  22. add address=192.168.88.1/24 comment=defconf interface=ether2-master network=\
  23. 192.168.88.0
  24. add address=172.16.150.1/24 interface=ether4 network=172.16.150.0
  25. /ip cloud
  26. set ddns-enabled=yes
  27. /ip dhcp-client
  28. add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
  29. add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
  30. interface=ether3
  31. /ip dhcp-server network
  32. add address=172.16.150.0/24 dhcp-option=Option66 gateway=172.16.150.1
  33. add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
  34. /ip dns
  35. set allow-remote-requests=yes
  36. /ip dns static
  37. add address=192.168.88.1 name=router
  38. /ip firewall address-list
  39. add address=172.16.150.0/24 list=Access
  40. /ip firewall filter
  41. add action=accept chain=input comment="defconf: accept established,related" \
  42. connection-state=established,related
  43. add action=accept chain=input src-address-list=Access
  44. add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
  45. add action=drop chain=input comment="defconf: drop all from WAN" in-interface=\
  46. ether1
  47. add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
  48. connection-state=established,related
  49. add action=accept chain=forward comment="defconf: accept established,related" \
  50. connection-state=established,related
  51. add action=drop chain=forward comment="defconf: drop invalid" connection-state=\
  52. invalid
  53. add action=drop chain=forward comment=\
  54. "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
  55. connection-state=new in-interface=ether1
  56. /ip firewall mangle
  57. add action=mark-connection chain=input in-interface=ether3 new-connection-mark=\
  58. no-mark passthrough=no
  59. add action=mark-connection chain=input in-interface=ether1 new-connection-mark=\
  60. no-mark passthrough=no
  61. add action=mark-routing chain=output connection-mark=WAN2_conn \
  62. new-routing-mark=to_WAN1 out-interface=ether1 passthrough=no
  63. add action=mark-routing chain=output connection-mark=WAN1_conn \
  64. new-routing-mark=to_WAN2 out-interface=ether3 passthrough=no
  65. /ip firewall nat
  66. add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=\
  67. all-ethernet src-address-list=""
  68. /ip route
  69. add distance=1 gateway=192.168.2.1
  70. add distance=2 gateway=192.168.15.5
  71. /snmp
  72. set contact=TEST enabled=yes trap-community="xxxx$" trap-version=2
  73. /system clock
  74. set time-zone-name=America/Toronto
  75. /system logging
  76. add disabled=yes topics=snmp
  77. add topics=tftp
  78. add disabled=yes topics=dhcp
  79. /system package update
  80. set channel=release-candidate
  81. /system routerboard settings
  82. set cpu-frequency=850MHz protected-routerboot=disabled
  83. /tool mac-server
  84. set [ find default=yes ] disabled=yes
  85. add interface=ether2-master
  86. /tool mac-server mac-winbox
  87. set [ find default=yes ] disabled=yes
  88. add interface=ether2-master
  89. /tool traffic-monitor
  90. add disabled=yes interface=ether1 name=tmon1 threshold=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement