Advertisement
willianmp

Intalando Cliente sxt

Aug 5th, 2017
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /interface ethernet
  2. set [ find default-name=ether1 ] name=LAN
  3. /interface wireless
  4. set [ find default-name=wlan1 ] name=WAN
  5. /ip neighbor discovery
  6. set LAN discover=no
  7. ###########################################################################Auterar password e user ######################################
  8. /interface pppoe-client
  9. add add-default-route=yes dial-on-demand=yes disabled=no interface=WAN name=pppoe-client password=xxxxx use-peer-dns=yes user=speed@speed
  10. /ppp profile
  11. set *0 use-encryption=require
  12. /ip pool
  13. add name=dhcp_pool ranges=192.168.100.2-192.168.100.254
  14. /ip dhcp-server
  15. add add-arp=yes address-pool=dhcp_pool authoritative=yes disabled=no interface=LAN name=dhcp
  16. /queue tree
  17. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=1024k name=Download packet-mark="" parent=LAN priority=8
  18. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=614k max-limit=1024k name=614k_download packet-mark=leve_traffic parent=Download priority=1 queue=default-small
  19. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=430k max-limit=1024k name=430k_download packet-mark=pesado_traffic parent=Download priority=8 queue=default-small
  20. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=256k name=Upload packet-mark="" parent=WAN priority=8
  21. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=153k max-limit=256k name=153k_upload packet-mark=leve_traffic parent=Upload priority=1 queue=default-small
  22. add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=107k max-limit=256k name=107k_upload packet-mark=pesado_traffic parent=Upload priority=8 queue=default-small
  23. /ip address
  24. add address=192.168.100.1/24 interface=LAN network=192.168.100.0
  25. /ip dhcp-client
  26. add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=WAN
  27. /ip dhcp-server network
  28. add address=192.168.100.0/24 gateway=192.168.100.1
  29. /ip dns
  30. set allow-remote-requests=yes
  31. /ip firewall filter
  32. add action=accept chain=input comment="Aceita acesso externo a SSH,Winbox e HTTP" dst-port=8291,64888,80 protocol=tcp
  33. /ip firewall mangle
  34. add action=mark-connection chain=forward connection-mark=!trafego_pesado_conn new-connection-mark=all_conn
  35. add action=mark-connection chain=forward connection-bytes=500000-0 connection-mark=all_conn connection-rate=200k-100M new-connection-mark=trafego_pesado_conn protocol=tcp
  36. add action=mark-connection chain=forward connection-bytes=500000-0 connection-mark=all_conn connection-rate=200k-100M new-connection-mark=trafego_pesado_conn protocol=udp
  37. add action=mark-packet chain=forward connection-mark=trafego_pesado_conn new-packet-mark=pesado_traffic passthrough=no
  38. add action=mark-packet chain=forward connection-mark=all_conn new-packet-mark=leve_traffic passthrough=no
  39. /ip firewall nat add action=masquerade chain=srcnat out-interface=WAN
  40. /ip firewall nat add action=masquerade chain=srcnat out-interface=pppoe-client
  41. /ip service
  42. set telnet disabled=yes
  43. set ftp disabled=yes
  44. set ssh port=64888
  45. set api disabled=yes
  46. set api-ssl disabled=yes
  47. /system clock
  48. set time-zone-name=America/Manaus
  49. /system ntp client
  50. set enabled=yes server-dns-names=a.ntp.br,b.ntp.br
  51. ###########Editar nome do cliente#############
  52. /system identity
  53. set name=Instalcao_nova_nome_cliente
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement