Advertisement
Guest User

mikrotik hotspot problem

a guest
Dec 12th, 2019
1,321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. [admin@DNSBA] /ip address> print det
  2. Flags: X - disabled, I - invalid, D - dynamic
  3. 0 ;;; defconf
  4. address=192.168.88.1/24 network=192.168.88.0 interface=bridge actual-interface=bridge
  5.  
  6. 1 address=192.168.87.1/32 network=192.168.87.1 interface=ether2 actual-interface=ether2
  7.  
  8. 2 address=10.5.51.253/24 network=10.5.51.0 interface=wlan1 actual-interface=wlan1
  9.  
  10. 3 ;;; hotspot network
  11. address=10.5.50.1/24 network=10.5.50.0 interface=wlan1 actual-interface=wlan1
  12.  
  13. 4 D address=192.168.12.139/24 network=192.168.12.0 interface=ether1 actual-interface=ether1
  14.  
  15. [admin@DNSBA] > /ip dhcp-server print det
  16. Flags: D - dynamic, X - disabled, I - invalid
  17. 0 name="defconf" interface=bridge lease-time=10m address-pool=default-dhcp bootp-support=static authoritative=yes
  18. use-radius=no lease-script=""
  19.  
  20. 1 I name="wlandhcp" interface=wlan1 lease-time=10m address-pool=wlanpool bootp-support=static authoritative=yes
  21. use-radius=no lease-script=""
  22.  
  23. [admin@DNSBA] > /ip pool print det
  24. 0 name="default-dhcp" ranges=192.168.88.10-192.168.88.254
  25.  
  26. 1 name="tamu" ranges=10.10.123.2-10.10.123.127
  27.  
  28. 2 name="wlanpool" ranges=10.5.50.2-10.5.50.253
  29.  
  30. 3 name="hs-pool-1" ranges=10.5.51.1-10.5.51.252
  31.  
  32. [admin@DNSBA] /ip hotspot> print det
  33. Flags: X - disabled, I - invalid, S - HTTPS
  34. 0 name="hotspot1" interface=wlan1 address-pool=hs-pool-1 profile=hsprof1 idle-timeout=5m keepalive-timeout=none
  35. login-timeout=none addresses-per-mac=2 ip-of-dns-name=10.5.51.253 proxy-status="running"
  36.  
  37. [admin@DNSBA] /ip hotspot user profile> print detail
  38. Flags: * - default
  39. 0 * name="default" address-pool=hs-pool-1 idle-timeout=none keepalive-timeout=2m status-autorefresh=1m shared-users=1
  40. add-mac-cookie=yes mac-cookie-timeout=3d address-list="" transparent-proxy=no
  41.  
  42.  
  43. [admin@DNSBA] /ip hotspot> host print det
  44. Flags: S - static, H - DHCP, D - dynamic, A - authorized, P - bypassed
  45. 0 A mac-address=9C:6B:72:A7:60:9F address=10.5.50.253 to-address=10.5.51.252 server=hotspot1 uptime=54s
  46. keepalive-timeout=2m found-by="UDP :12251 -> 10.5.50.1:53"
  47.  
  48.  
  49.  
  50. [admin@DNSBA] > /ip firewall nat print det
  51. Flags: X - disabled, I - invalid, D - dynamic
  52. 0 D chain=dstnat action=jump jump-target=hotspot hotspot=from-client
  53.  
  54. 1 D chain=hotspot action=jump jump-target=pre-hotspot
  55.  
  56. 2 D chain=hotspot action=redirect to-ports=64872 protocol=udp dst-port=53
  57.  
  58. 3 D chain=hotspot action=redirect to-ports=64872 protocol=tcp dst-port=53
  59.  
  60. 4 D chain=hotspot action=redirect to-ports=64873 protocol=tcp hotspot=local-dst dst-port=80
  61.  
  62. 5 D chain=hotspot action=redirect to-ports=64875 protocol=tcp hotspot=local-dst dst-port=443
  63.  
  64. 6 D chain=hotspot action=jump jump-target=hs-unauth protocol=tcp hotspot=!auth
  65.  
  66. 7 D chain=hotspot action=jump jump-target=hs-auth protocol=tcp hotspot=auth
  67.  
  68. 8 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=80
  69.  
  70. 9 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=3128
  71.  
  72. 10 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=8080
  73.  
  74. 11 D chain=hs-unauth action=jump jump-target=hs-smtp protocol=tcp dst-port=25
  75.  
  76. 12 D chain=hs-auth action=redirect to-ports=64874 protocol=tcp hotspot=http
  77.  
  78. 13 D chain=hs-auth action=jump jump-target=hs-smtp protocol=tcp dst-port=25
  79.  
  80. 14 X ;;; place hotspot rules here
  81. chain=unused-hs-chain action=passthrough
  82.  
  83. 15 ;;; defconf: masquerade
  84. chain=srcnat action=masquerade out-interface-list=WAN ipsec-policy=out,none
  85.  
  86. 16 ;;; masquerade hotspot network
  87. chain=srcnat action=masquerade src-address=10.5.51.0/24
  88.  
  89. 17 D chain=hs-unauth action=redirect to-ports=64875 protocol=tcp in-interface=wlan1 dst-port=443
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement