Advertisement
Guest User

Untitled

a guest
May 4th, 2015
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. # may/04/2015 17:36:55 by RouterOS 6.28
  2. # software id = 2N2X-1RMX
  3. #
  4. /interface bridge
  5. add name=bridge1 protocol-mode=stp
  6. /interface ethernet
  7. set [ find default-name=ether1 ] name=ether1-gateway
  8. /interface vlan
  9. add interface=ether1-gateway l2mtu=1594 name=vlan3 vlan-id=3
  10. add interface=ether1-gateway l2mtu=1594 name=vlan6 vlan-id=6
  11. /interface pppoe-client
  12. add add-default-route=yes allow=pap,chap disabled=no interface=vlan6 max-mru=\
  13. 1492 max-mtu=1492 name=pppoe-out1 password=adslppp use-peer-dns=yes user=\
  14. adslppp@telefonicanetpa
  15. /ip pool
  16. add name=dhcp ranges=192.168.1.201-192.168.1.249
  17. add name=vpn ranges=192.168.3.10-192.168.3.20
  18. /ip dhcp-server
  19. add address-pool=dhcp disabled=no interface=bridge1 name=dhcp1
  20. /port
  21. set 0 name=serial0
  22. set 1 name=serial1
  23. /ppp profile
  24. set 1 dns-server=192.168.3.250 local-address=192.168.3.250 remote-address=vpn
  25. /queue type
  26. add kind=pcq name=pcq-up pcq-classifier=src-address
  27. add kind=pcq name=pcq-down pcq-classifier=dst-address
  28. /queue simple
  29. add max-limit=3M/30M name=Aaron queue=pcq-up/pcq-down target=192.168.1.242/32 \
  30. total-queue=default
  31. add max-limit=2M/50M name=SERVIDOR queue=pcq-up/pcq-down target=\
  32. 192.168.1.247/32 total-queue=default
  33. /interface bridge port
  34. add bridge=bridge1 interface=ether2
  35. add bridge=bridge1 interface=ether3
  36. add bridge=bridge1 interface=ether4
  37. add bridge=bridge1 interface=ether5
  38. add bridge=bridge1 interface=ether6
  39. add bridge=bridge1 interface=ether7
  40. add bridge=bridge1 interface=ether8
  41. /interface pptp-server server
  42. set authentication=mschap2 enabled=yes
  43. /ip address
  44. add address=192.168.1.1/24 interface=bridge1 network=192.168.1.0
  45. add address=192.168.100.10/24 interface=ether1-gateway network=192.168.100.0
  46. /ip dhcp-client
  47. add add-default-route=no dhcp-options=hostname,clientid disabled=no \
  48. interface=vlan3 use-peer-ntp=no
  49. /ip dhcp-server lease
  50. add address=192.168.1.247 client-id=1:0:e0:81:b1:56:a mac-address=\
  51. 00:E0:81:B1:56:0A server=dhcp1
  52. add address=192.168.1.241 client-id=1:54:4:a6:c5:90:b0 mac-address=\
  53. 54:04:A6:C5:90:B0 server=dhcp1
  54. add address=192.168.1.242 client-id=1:0:12:79:5d:aa:d9 mac-address=\
  55. 00:12:79:5D:AA:D9 server=dhcp1
  56. /ip dhcp-server network
  57. add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1 \
  58. netmask=24
  59. /ip dns
  60. set allow-remote-requests=yes
  61. /ip dns static
  62. add address=192.168.1.1 name=router
  63. /ip firewall filter
  64. add chain=input comment="default configuration" protocol=icmp
  65. add chain=input comment="default configuration" connection-state=established
  66. add chain=input comment="default configuration" connection-state=related
  67. add chain=input disabled=yes dst-port=23,80 in-interface=pppoe-out1 protocol=\
  68. tcp
  69. add chain=input dst-port=8291 in-interface=pppoe-out1 protocol=tcp
  70. add chain=input dst-port=1723 in-interface=pppoe-out1 protocol=tcp
  71. add action=drop chain=input comment="default configuration" in-interface=\
  72. pppoe-out1
  73. add chain=forward comment="default configuration" connection-state=\
  74. established
  75. add chain=forward comment="default configuration" connection-state=related
  76. add action=drop chain=forward comment="default configuration" \
  77. connection-state=invalid
  78. /ip firewall mangle
  79. add action=set-priority chain=postrouting new-priority=4 out-interface=vlan3
  80. add action=set-priority chain=postrouting new-priority=1 out-interface=\
  81. pppoe-out1
  82. /ip firewall nat
  83. add action=masquerade chain=srcnat comment="default configuration" \
  84. out-interface=pppoe-out1
  85. add action=masquerade chain=srcnat comment="default configuration" \
  86. out-interface=ether1-gateway
  87. add action=masquerade chain=srcnat comment="default configuration" \
  88. out-interface=vlan3
  89. add action=dst-nat chain=dstnat disabled=yes dst-port=80 in-interface=\
  90. pppoe-out1 protocol=tcp to-addresses=192.168.1.125
  91. add action=dst-nat chain=dstnat disabled=yes dst-port=21 in-interface=\
  92. pppoe-out1 protocol=tcp to-addresses=192.168.1.125
  93. /ip route
  94. add distance=255 gateway=255.255.255.255
  95. /ip upnp
  96. set enabled=yes
  97. /ip upnp interfaces
  98. add interface=bridge1 type=internal
  99. add interface=pppoe-out1 type=external
  100. /romon port
  101. add disabled=no
  102. /routing rip interface
  103. add interface=vlan3 passive=yes receive=v2
  104. /routing rip network
  105. add network=10.0.0.0/8
  106. /system clock
  107. set time-zone-name=Europe/Madrid
  108. /system ntp client
  109. set enabled=yes primary-ntp=163.117.202.33 secondary-ntp=89.248.104.162
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement