Advertisement
Guest User

Untitled

a guest
May 6th, 2014
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. # may/06/2014 08:34:55 by RouterOS 6.12
  2. # software id = 4QHQ-7TG9
  3. #
  4. /interface bridge
  5. add l2mtu=1598 name="Bridge LAN"
  6. /interface ethernet
  7. set [ find default-name=ether1 ] comment="DHCP Belgacom" name=\
  8. "ether 1 - Belgacom"
  9. set [ find default-name=ether2 ] comment="DHCP Voo" name="ether 2 - Voo"
  10. set [ find default-name=ether3 ] comment="LAN ports" name="ether3 - LAN"
  11. set [ find default-name=ether4 ] name="ether4 - LAN"
  12. set [ find default-name=ether5 ] name="ether5 - LAN"
  13. /ip neighbor discovery
  14. set "ether 1 - Belgacom" comment="DHCP Belgacom"
  15. set "ether 2 - Voo" comment="DHCP Voo"
  16. set "ether3 - LAN" comment="LAN ports"
  17. /interface wireless security-profiles
  18. set [ find default=yes ] supplicant-identity=MikroTik
  19. /ip hotspot user profile
  20. set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
  21. mac-cookie-timeout=3d
  22. /ip pool
  23. add name="DHCP Lan" ranges=10.10.10.100-10.10.10.254
  24. /ip dhcp-server
  25. add address-pool="DHCP Lan" disabled=no interface="Bridge LAN" lease-time=3h \
  26. name=LAN
  27. /interface bridge port
  28. add bridge="Bridge LAN" interface="ether3 - LAN"
  29. add bridge="Bridge LAN" interface="ether4 - LAN"
  30. add bridge="Bridge LAN" interface="ether5 - LAN"
  31. /ip address
  32. add address=10.10.10.1/24 interface="Bridge LAN" network=10.10.10.0
  33. /ip dhcp-client
  34. add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
  35. interface="ether 1 - Belgacom" use-peer-dns=no use-peer-ntp=no
  36. add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
  37. interface="ether 2 - Voo" use-peer-dns=no use-peer-ntp=no
  38. /ip dhcp-server network
  39. add address=10.10.10.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.10.10.1
  40. /ip dns
  41. set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
  42. /ip firewall mangle
  43. add action=mark-connection chain=input in-interface="ether 1 - Belgacom" \
  44. new-connection-mark=mangle_BGC
  45. add action=mark-connection chain=input in-interface="ether 2 - Voo" \
  46. new-connection-mark=mangle_VOO
  47. add action=mark-routing chain=output connection-mark=mangle_BGC \
  48. new-routing-mark=routing_BGC
  49. add action=mark-routing chain=output connection-mark=mangle_VOO \
  50. new-routing-mark=routing_VOO
  51. add action=mark-connection chain=prerouting connection-mark=no-mark \
  52. dst-address-type=!local in-interface="Bridge LAN" new-connection-mark=\
  53. mangle_BGC per-connection-classifier=src-address:4/0
  54. add action=mark-connection chain=prerouting connection-mark=no-mark \
  55. dst-address-type=!local in-interface="Bridge LAN" new-connection-mark=\
  56. mangle_VOO per-connection-classifier=src-address:4/3
  57. add action=mark-connection chain=prerouting connection-mark=no-mark \
  58. dst-address-type=!local in-interface="Bridge LAN" new-connection-mark=\
  59. mangle_VOO per-connection-classifier=src-address:4/2
  60. add action=mark-connection chain=prerouting connection-mark=no-mark \
  61. dst-address-type=!local in-interface="Bridge LAN" new-connection-mark=\
  62. mangle_VOO per-connection-classifier=src-address:4/2
  63. /ip firewall nat
  64. add action=masquerade chain=srcnat out-interface="ether 1 - Belgacom"
  65. add action=masquerade chain=srcnat out-interface="ether 2 - Voo"
  66. /ip route
  67. add check-gateway=ping distance=3 gateway="ether 1 - Belgacom" routing-mark=\
  68. routing_BGC
  69. add check-gateway=ping distance=4 gateway="ether 2 - Voo" routing-mark=\
  70. routing_VOO
  71. add check-gateway=ping distance=1 gateway="ether 1 - Belgacom"
  72. add check-gateway=ping distance=2 gateway="ether 2 - Voo"
  73. /ip upnp
  74. set allow-disable-external-interface=no
  75. /system identity
  76. set name=Kirby
  77. /system lcd
  78. set contrast=0 enabled=no port=parallel type=24x4
  79. /system lcd page
  80. set time disabled=yes display-time=5s
  81. set resources disabled=yes display-time=5s
  82. set uptime disabled=yes display-time=5s
  83. set packets disabled=yes display-time=5s
  84. set bits disabled=yes display-time=5s
  85. set version disabled=yes display-time=5s
  86. set identity disabled=yes display-time=5s
  87. set "Bridge LAN" disabled=yes display-time=5s
  88. set "ether 1 - Belgacom" disabled=yes display-time=5s
  89. set "ether 2 - Voo" disabled=yes display-time=5s
  90. set "ether3 - LAN" disabled=yes display-time=5s
  91. set "ether4 - LAN" disabled=yes display-time=5s
  92. set "ether5 - LAN" disabled=yes display-time=5s
  93. /system ntp client
  94. set enabled=yes primary-ntp=195.130.132.18 secondary-ntp=195.13.23.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement