Advertisement
Guest User

Untitled

a guest
Oct 17th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. # oct/17/2016 11:43:53 by RouterOS 6.36.2
  2. # software id = G7AH-T8X9
  3. #
  4. /interface bridge
  5. add name=bridge1
  6. /interface pppoe-client
  7. add add-default-route=yes disabled=no interface=ether1 name=ParsOnline \
  8. password=11048834 user=2186037306
  9. /ip hotspot profile
  10. add dns-name=besna-service.com hotspot-address=192.168.203.2 name=hsprof1
  11. /ip hotspot user profile
  12. set [ find default=yes ] mac-cookie-timeout=5d shared-users=unlimited
  13. /ip pool
  14. add name=hs-pool-5 ranges=192.168.203.1,192.168.203.3-192.168.203.254
  15. add name=pool1 ranges=192.168.100.1,192.168.100.3-192.168.100.254
  16. /ip dhcp-server
  17. add address-pool=hs-pool-5 disabled=no interface=ether5 lease-time=1h name=\
  18. dhcp1
  19. /ip hotspot
  20. add address-pool=hs-pool-5 disabled=no interface=ether5 name=hotspot1 profile=\
  21. hsprof1
  22. /interface bridge port
  23. add bridge=bridge1 interface=ether3
  24. add bridge=bridge1 interface=ether2
  25. add bridge=bridge1 interface=ether4
  26. /interface bridge settings
  27. set use-ip-firewall-for-pppoe=yes use-ip-firewall-for-vlan=yes
  28. /ip address
  29. add address=192.168.1.100/24 interface=bridge1 network=192.168.1.0
  30. add address=192.168.203.2/24 interface=ether5 network=192.168.203.0
  31. add address=10.198.8.122/24 interface=ether2 network=10.198.8.0
  32. /ip dhcp-server network
  33. add address=192.168.203.0/24 comment="hotspot network" gateway=192.168.203.2
  34. /ip dns
  35. set servers=4.2.2.4,8.8.8.8
  36. /ip firewall filter
  37. add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
  38. disabled=yes
  39. add action=accept chain=forward disabled=yes dst-address=192.168.1.101 \
  40. src-address=192.168.203.0/24
  41. add action=drop chain=forward disabled=yes dst-address=192.168.1.0/24 \
  42. src-address=192.168.203.0/24
  43. /ip firewall nat
  44. add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
  45. disabled=yes
  46. add action=masquerade chain=srcnat comment="masquerade hotspot network" \
  47. src-address=192.168.203.0/24
  48. add action=masquerade chain=srcnat src-address=192.168.1.0/24
  49. add action=accept chain=srcnat src-address=10.198.8.0/30
  50. add action=masquerade chain=srcnat src-address=10.105.40.34
  51. /ip hotspot user
  52. add name=admin password=sharax22180
  53. add address=192.168.203.64 mac-address=00:23:24:00:FF:20 name=server password=\
  54. server
  55. add name=9212 password=2612
  56. /ip route
  57. add distance=1 gateway=10.198.8.121
  58. /system clock
  59. set time-zone-name=Asia/Tehran
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement