Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. /interface l2tp-server
  2. add name=l2tp-L2TP-worker-01 user=L2TP-worker-01
  3. /interface bridge
  4. add admin-mac=CC:2D:E0:FF:79:09 auto-mac=no comment=defconf name=bridge
  5. /interface ethernet
  6. set [ find default-name=ether1 ] speed=100Mbps
  7. set [ find default-name=ether2 ] speed=100Mbps
  8. set [ find default-name=ether3 ] speed=100Mbps
  9. set [ find default-name=ether4 ] speed=100Mbps
  10. set [ find default-name=ether5 ] speed=100Mbps
  11. /interface list
  12. add comment=defconf name=WAN
  13. add comment=defconf name=LAN
  14. /interface wireless security-profiles
  15. set [ find default=yes ] supplicant-identity=MikroTik
  16. /ip hotspot profile
  17. set [ find default=yes ] html-directory=flash/hotspot
  18. /ip pool
  19. add name=default-dhcp ranges=192.168.88.10-192.168.88.254
  20. add name=L2TP-pool ranges=172.16.10.2-172.16.10.254
  21. /ip dhcp-server
  22. add address-pool=default-dhcp disabled=no interface=bridge name=defconf
  23. /ppp profile
  24. add address-list=remote-workers change-tcp-mss=no local-address=172.16.10.1 name=profile-remote-workers remote-address=L2TP-pool use-compression=no use-encryption=no use-mpls=no use-upnp=no
  25. /interface bridge port
  26. add bridge=bridge comment=defconf interface=ether2
  27. add bridge=bridge comment=defconf interface=ether3
  28. add bridge=bridge comment=defconf interface=ether4
  29. add bridge=bridge comment=defconf interface=ether5
  30. add bridge=bridge comment=defconf interface=sfp1
  31. /ip neighbor discovery-settings
  32. set discover-interface-list=LAN
  33. /interface l2tp-server server
  34. set authentication=mschap2 default-profile=profile-remote-workers enabled=yes ipsec-secret=IPSec5wqsf9S7fcVCfpEhnwNh7J436-f keepalive-timeout=120 use-ipsec=yes
  35. /interface list member
  36. add comment=defconf interface=bridge list=LAN
  37. add comment=defconf interface=ether1 list=WAN
  38. /ip address
  39. add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
  40. /ip dhcp-client
  41. add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
  42. /ip dhcp-server network
  43. add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
  44. /ip dns
  45. set allow-remote-requests=yes
  46. /ip dns static
  47. add address=192.168.88.1 name=router.lan
  48. /ip firewall filter
  49. add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked disabled=yes
  50. add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid disabled=yes
  51. add action=accept chain=input comment="defconf: accept ICMP" disabled=yes protocol=icmp
  52. add action=drop chain=input comment="defconf: drop all not coming from LAN" disabled=yes in-interface-list=!LAN
  53. add action=accept chain=forward comment="defconf: accept in ipsec policy" disabled=yes ipsec-policy=in,ipsec
  54. add action=accept chain=forward comment="defconf: accept out ipsec policy" disabled=yes ipsec-policy=out,ipsec
  55. add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related disabled=yes
  56. add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked disabled=yes
  57. add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid disabled=yes
  58. add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new disabled=yes in-interface-list=WAN
  59. add action=accept chain=input comment="accept input L2TP" disabled=yes port=1701,500,4500 protocol=udp
  60. add action=accept chain=input comment="accept input ipsec" disabled=yes protocol=ipsec-esp
  61. add action=accept chain=forward comment="accept from VPN-remote-workers" disabled=yes src-address-list=remote-workers
  62. /ip firewall mangle
  63. add action=change-mss chain=forward in-interface=l2tp-L2TP-worker-01 new-mss=1400 passthrough=yes protocol=tcp tcp-flags=syn tcp-mss=1400-65535
  64. add action=change-mss chain=forward new-mss=1400 out-interface=l2tp-L2TP-worker-01 passthrough=yes protocol=tcp tcp-flags=syn tcp-mss=1400-65535
  65. /ip firewall nat
  66. add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
  67. /ip firewall service-port
  68. set ftp disabled=yes
  69. set tftp disabled=yes
  70. set irc disabled=yes
  71. set h323 disabled=yes
  72. set sip disabled=yes
  73. set pptp disabled=yes
  74. set udplite disabled=yes
  75. set dccp disabled=yes
  76. set sctp disabled=yes
  77. /ppp secret
  78. add name=L2TP-worker-01 password=IQ15-t1BgDSGq30Em64Jqn0OcwFIcIkI profile=profile-remote-workers service=l2tp
  79. /system clock
  80. set time-zone-name=Europe/Moscow
  81. /system routerboard settings
  82. set silent-boot=no
  83. /tool mac-server
  84. set allowed-interface-list=LAN
  85. /tool mac-server mac-winbox
  86. set allowed-interface-list=LAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement