Advertisement
dustojnikhummer

Mikrotik

Aug 5th, 2021
732
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. # aug/05/2021 17:01:05 by RouterOS 6.48.3
  2. # software id = 29KN-YBQP
  3. #
  4. # model = RBD52G-5HacD2HnD
  5. # serial number =
  6. /interface bridge
  7. add arp=proxy-arp name=FullBridge
  8. /interface list
  9. add name=WAN
  10. add name=LAN
  11. /interface wireless security-profiles
  12. set [ find default=yes ] supplicant-identity=MikroTik
  13. add authentication-types=wpa2-psk eap-methods="" group-key-update=3m mode=\
  14. dynamic-keys name=password1 supplicant-identity=""
  15. /interface wireless
  16. set [ find default-name=wlan1 ] band=2ghz-onlyn disabled=no mode=ap-bridge \
  17. security-profile=password1 ssid=Tomsik_2G wps-mode=disabled
  18. set [ find default-name=wlan2 ] band=5ghz-onlyac channel-width=20/40mhz-XX \
  19. country="czech republic" disabled=no frequency=5280 mode=ap-bridge \
  20. security-profile=password1 ssid=Tomsik_5G wps-mode=disabled
  21. /ip pool
  22. add name=dhcp ranges=10.0.1.20-10.0.1.200
  23. add name=vpnpool ranges=10.0.1.201-10.0.1.240
  24. /ip dhcp-server
  25. add address-pool=dhcp disabled=no interface=FullBridge lease-time=5m name=\
  26. dhcp1
  27. /ppp profile
  28. add bridge=FullBridge change-tcp-mss=yes dns-server=10.0.1.1,10.10.10.10 \
  29. interface-list=LAN local-address=10.0.1.253 name=my-l2tp-profile \
  30. remote-address=vpnpool
  31. /interface bridge port
  32. add bridge=FullBridge interface=ether2
  33. add bridge=FullBridge interface=ether3
  34. add bridge=FullBridge interface=ether4
  35. add bridge=FullBridge interface=ether5
  36. add bridge=FullBridge interface=wlan1
  37. add bridge=FullBridge interface=wlan2
  38. /ip neighbor discovery-settings
  39. set discover-interface-list=!dynamic
  40. /interface l2tp-server server
  41. set authentication=mschap1,mschap2 default-profile=my-l2tp-profile enabled=\
  42. yes use-ipsec=yes
  43. /interface list member
  44. add interface=ether1 list=WAN
  45. add interface=FullBridge list=LAN
  46. /interface sstp-server server
  47. set default-profile=default-encryption
  48. /ip address
  49. add address=100.71.22.3/24 interface=ether1 network=100.71.22.0
  50. add address=10.0.1.1/24 interface=FullBridge network=10.0.1.0
  51. /ip cloud
  52. set ddns-enabled=yes
  53. /ip dhcp-client
  54. add interface=wlan2
  55. /ip dhcp-server lease
  56.  
  57. /ip dhcp-server network
  58. add address=10.0.1.0/24 dns-server=10.100.0.100,10.10.10.10,1.1.1.1 gateway=\
  59. 10.0.1.1 netmask=24
  60. add address=100.71.22.0/24 gateway=100.71.22.3 netmask=24
  61. /ip dns
  62. set servers=10.100.0.100,10.10.10.10,1.1.1.1,8.8.8.8
  63. /ip firewall filter
  64. add action=accept chain=input comment="VPN: allow IKE" dst-port=500 \
  65. in-interface=ether1 protocol=udp
  66. add action=accept chain=input comment="VPN: allow L2TP" dst-port=1701 \
  67. in-interface=ether1 protocol=udp
  68. add action=accept chain=input comment="VPN: allow IPsec NAT-T" dst-port=4500 \
  69. in-interface=ether1 protocol=udp
  70. add action=accept chain=input in-interface=ether1 protocol=ipsec-esp
  71. add action=accept chain=input in-interface=ether1 protocol=ipsec-ah
  72. /ip firewall nat
  73. add action=masquerade chain=srcnat out-interface-list=WAN
  74. /ip route
  75. add distance=1 gateway=100.71.22.253
  76. /ip service
  77. set telnet disabled=yes
  78. set ftp disabled=yes
  79. set www disabled=yes
  80. set ssh disabled=yes
  81. set api disabled=yes
  82. set api-ssl disabled=yes
  83. /ppp profile
  84. set *FFFFFFFE local-address=192.168.89.1 remote-address=*5
  85. /ppp secret
  86. add disabled=yes name=vpn
  87. add name=tomsikr profile=my-l2tp-profile service=l2tp
  88. /system clock
  89. set time-zone-name=Europe/Prague
  90. /system identity
  91. set name=TomsikrMT
  92. /system logging
  93. add prefix="L2TP_LOG ===> " topics=l2tp
  94. add prefix="IPSEC_LOG ===> " topics=ipsec
  95. /system routerboard settings
  96. set auto-upgrade=yes
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement