You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
5.8 KiB

12 months ago
  1. /interface bridge
  2. add name=bridge-lan
  3. /interface list
  4. add name=WAN
  5. /ip hotspot profile
  6. set [ find default=yes ] html-directory=hotspot
  7. /queue simple
  8. add max-limit=1G/1G name=bridge queue=pcq-upload-default/pcq-download-default \
  9. target=bridge-lan
  10. /snmp community
  11. set [ find default=yes ] addresses=185.123.84.25/32,10.17.24.18/32 name=\
  12. altinea
  13. /interface bridge port
  14. add bridge=bridge-lan interface=ether2
  15. add bridge=bridge-lan interface=ether3
  16. add bridge=bridge-lan interface=ether4
  17. /interface list member
  18. add interface=ether1 list=WAN
  19. /ip dhcp-client
  20. add comment=defconf interface=ether1
  21. /ip dns
  22. set allow-remote-requests=yes servers=8.8.8.8
  23. /ip firewall address-list
  24. add address=185.123.84.200 comment=vpn.altinea.fr list=altinea.safe
  25. add address=185.123.84.50 comment=oxidized.altinea.fr list=altinea.safe
  26. add address=185.123.84.25 comment=icinga2.altinea.fr list=altinea.safe
  27. add address=10.17.24.18 comment=icinga2.altinea.fr list=altinea.safe
  28. add address=158.69.205.82 comment=ext.nagios.altinea.fr list=altinea.safe
  29. add address=10.17.24.0/24 comment=adminvpn.altinea.fr list=altinea.safe
  30. /ip firewall filter
  31. add action=accept chain=forward connection-state=\
  32. established,related,untracked
  33. add action=accept chain=input dst-port=8291 protocol=tcp src-address-list=\
  34. altinea.safe
  35. add action=accept chain=input dst-port=161 protocol=udp src-address-list=\
  36. altinea.safe
  37. add action=accept chain=input dst-port=22 protocol=tcp src-address-list=\
  38. altinea.safe
  39. add action=accept chain=input dst-port=22 in-interface=bridge-lan protocol=\
  40. tcp
  41. add action=accept chain=input dst-port=8291 in-interface=bridge-lan protocol=\
  42. tcp
  43. add action=accept chain=input protocol=icmp
  44. add action=drop chain=input dst-port=53 in-interface-list=WAN protocol=tcp
  45. add action=drop chain=input dst-port=53 in-interface-list=WAN protocol=udp
  46. add action=drop chain=input connection-state="" dst-port=22 protocol=tcp
  47. add action=drop chain=input dst-port=161 protocol=udp
  48. add action=drop chain=input connection-state="" dst-port=8291 protocol=tcp
  49. add action=drop chain=input connection-state=invalid
  50. /ip firewall mangle
  51. add action=change-mss chain=forward new-mss=clamp-to-pmtu passthrough=yes \
  52. protocol=tcp tcp-flags=syn
  53. /ip firewall nat
  54. add action=masquerade chain=srcnat out-interface-list=WAN
  55. /ip firewall service-port
  56. set sip disabled=yes
  57. /ip service
  58. set telnet disabled=yes
  59. set ftp disabled=yes
  60. set www disabled=yes
  61. set api disabled=yes
  62. set api-ssl disabled=yes
  63. /snmp
  64. set contact=noc@altinea.fr enabled=yes
  65. /system clock
  66. set time-zone-name=Europe/Paris
  67. /system note
  68. set show-at-login=no
  69. /tool romon
  70. set enabled=yes
  71. /
  72. :delay 5s;
  73. :global oxidizedcpepub "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDKVHiQwYh8rdWgwAqs5+aNBp6f1gqbUfh9BO+5XG7QigMEYmmawPy9LHwcSADKLuIwaFdfalMYrx90JpNzrDEmvBCep3YlyS1YLRZlLYntSS3G8q70XFPFf84HD9Uh9MAD6qHkZArvhDZ6t0fP2HhqEN8Ud2Dx1qAvn8cdDgjO5zFGNaevQUpVXEcc2lSUkJkzw6F/nH+xJQEd7/a62f8XdcYnzOafLkZwAWR5xCpCbhCIXQ0KEo8+Z5Edc7AvmSFRdc8EC1Upz/LVsR193vNnvm9yTyu5UzhCVVfhNNzNYMX+4NF0MzvG0QlsetGinqzWW0jR8YW5Kcltef2PtaF152P5Pu+mpg3mvxCE9glxjmwegoXhQu6gcxIdUpmcXar2nS9pxnL9LLoZ5kRyXHPpktRSqte2HD8dcgVBqS7AgY9J1hduko9DWkFWiAIM0C0d6702ZXYwFFmnfJcxAFeSbZbvGyjfv0K87/Y2tZNjghZifpzi8+LRgKseoAhE4+8= oxidized-cpe@altinea.fr";
  74. /file print file=oxidized-cpe.txt;
  75. :delay 10;
  76. /file set oxidized-cpe.txt content=$oxidizedcpepub;
  77. :delay 10;
  78. /user add name=oxidized group=read password=azELMAkGA1UEBhMCQ04xETAPBgNVBAgMCFNoYW5naGFpMREwDwYDVQQKDAh0ZWFt;
  79. :delay 10s;
  80. /user ssh-keys import user=oxidized public-key-file=oxidized-cpe.txt
  81. :delay 10;
  82. :global supportpub "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDo7t//wpsOExn87AoUItPWZ/AF1e2UcKTaO6CVtpEh3b+Z4/vZ+LaFaczssGcPLcUpZEGB/UNkIPITAK2gXjT+2GLzQQ9DfLu9fNeE+AaWo7VZFM1Aviua0Zo2prDTCgXJ+z8kRuzvBfxuOKPNsLwxg/y3CYC+YSUb+00ZAi0I51x1VRfCIfoZqvMbEH1CIj7MRRuKu1B7Ue80vvC7XpgIZGvQepxc2j1vDSKHozM+/l3QdZBEbqdkUnO90i8XSRBpLRVadsgotg5uggKYzMQfvnuTYodmQKM3nk057wj7fmGIFNJxhH20bOTXUG8Yf80OLDsOJNqxQQgsrGVAVYL3wuP1UfDCLNXfOz81equ+S5JQuAMDRsnux+D06D/vmdEaqALMRtH2iSmlumYpRYxzYNKsrLa6Wi2oDmedFj7MpTJXRaA5a3AUNoj7S6BmG0jsTCAKOp2/i91O9zYZoedGuusUkurfdnP6qMIxpeX1zaWkWRnl1f6DhshKgOsI/t/6rPP+j0Jar/WMKLS/fmUI6OTbteQzePiQiKvVWJv8QDs4o0Krl9/LazmWhF4exElfbujjBRTk5Xf6x+0qgnAOGy2WKU9tiYIspK/I6T5O4H3L4B1S2nJppl28hHf53PuEFH8B1ezYJrY/8GPskVh35m1uiQJZ7GR7ZQOas8KWUw== support@altinea.fr";
  83. :delay 10s;
  84. /file print file=support-pub.txt;
  85. :delay 10;
  86. /file set support-pub.txt content=$supportpub;
  87. /user set admin password=BQAwazELMAkGA1UEBhMCQ04xETAPBgNVBAgMCFNoYW5naGFpMREwDwYDVQQKDAh0;
  88. :delay 10s;
  89. /user ssh-keys import user=admin public-key-file=support-pub.txt;
  90. :delay 10s;
  91. /system script
  92. add name=imperial owner=admin policy=read source=":beep frequency=500 length=500ms;\
  93. \n:delay 500ms;\
  94. \n:beep frequency=500 length=500ms;\
  95. \n:delay 500ms;\
  96. \n:beep frequency=500 length=500ms;\
  97. \n:delay 500ms;\
  98. \n:beep frequency=400 length=500ms;\
  99. \n:delay 400ms;\
  100. \n:beep frequency=600 length=200ms;\
  101. \n:delay 100ms;\
  102. \n:beep frequency=500 length=500ms;\
  103. \n:delay 500ms;\
  104. \n:beep frequency=400 length=500ms;\
  105. \n:delay 400ms;\
  106. \n:beep frequency=600 length=200ms;\
  107. \n:delay 100ms;\
  108. \n:beep frequency=500 length=500ms;\
  109. \n:delay 1000ms;\
  110. \n:beep frequency=750 length=500ms;\
  111. \n:delay 500ms;\
  112. \n:beep frequency=750 length=500ms;\
  113. \n:delay 500ms;\
  114. \n:beep frequency=750 length=500ms;\
  115. \n:delay 500ms;\
  116. \n:beep frequency=810 length=500ms;\
  117. \n:delay 400ms;\
  118. \n:beep frequency=600 length=200ms;\
  119. \n:delay 100ms;\
  120. \n:beep frequency=470 length=500ms;\
  121. \n:delay 500ms;\
  122. \n:beep frequency=400 length=500ms;\
  123. \n:delay 400ms;\
  124. \n:beep frequency=600 length=200ms;\
  125. \n:delay 100ms;\
  126. \n:beep frequency=500 length=500ms;\
  127. \n:delay 1000ms;"
  128. run imperial
  129. /