Cách quản lý băng thông với hồ sơ người dùng Mikrotik Hotspot

Nếu bạn muốn chia sẻ băng thông của mình giữa các nhóm người dùng điểm phát sóng khác nhau theo cách mà các hoạt động của một nhóm này không ảnh hưởng đến tốc độ duyệt web của những người khác, thì hồ sơ người dùng điểm phát sóng Mikrotik là tính năng bạn cần và bài đăng này sẽ cho bạn thấy mọi thứ bạn cần phải làm gì để làm cho nó đúng.

Hồ sơ người dùng điểm phát sóng Mikrotik là một tính năng có thể được sử dụng khi thiết lập điểm phát sóng Mikrotik để phân loại người dùng điểm phát sóng thành các nhóm. Các nhóm này sau đó được ấn định tốc độ băng thông từ băng thông có sẵn từ ISP.

Điểm phát sóng Mikrotik cho phép phân phối phạm vi phủ sóng internet không dây trong khuôn viên trường, khách sạn, thị trấn, v.v., theo cách thức xác thực được xử lý bởi máy chủ điểm phát sóng từ một vị trí trung tâm thay vì phương pháp thông thường là mỗi điểm truy cập xử lý xác thực người dùng riêng biệt .

Một số lợi ích của điểm phát sóng bao gồm đăng nhập một lần (bất kể người dùng đang kết nối từ đâu), chuyển vùng, mật khẩu dễ dàng, quản lý người dùng và băng thông, v.v.

Cấu trúc mạng

Yêu cầu phòng thí nghiệm

Phòng thí nghiệm này được thực hiện bằng máy Mikrotik RB 750 với giấy phép cấp 4.

Thực hiện

Bước đầu tiên là thiết lập máy chủ điểm phát sóng. Để thực hiện việc này, hãy nhấp vào IP> điểm phát sóng> thiết lập điểm phát sóng và làm theo hướng dẫn sau. Với một vài cú nhấp chuột, tại đây và đó, bạn đã hoàn tất việc thiết lập máy chủ điểm phát sóng của mình ngay lập tức. Một số chi tiết phải được nhập trong khi thiết lập máy chủ điểm phát sóng bao gồm những điều sau: chọn giao diện mà điểm phát sóng được cấu hình, nhập IP giao diện, xác định nhóm điểm phát sóng, nhập IP giao diện làm IP máy chủ dns chính.

Sau khi cấu hình máy chủ điểm phát sóng, hãy cấu hình hồ sơ người dùng điểm phát sóng Mikrotik. Hồ sơ người dùng điểm phát sóng cho phép bạn chỉ định tốc độ tải xuống / tải lên được phép cho tất cả người dùng được đính kèm với một hồ sơ cụ thể. Trong menu điểm phát sóng, nhấp vào tab hồ sơ người dùng và nhập tên và xếp hạng như được đánh dấu trong hình dưới đây.

Bạn có thể lặp lại các bước để tạo thêm hồ sơ người dùng. Sau khi hồ sơ người dùng điểm phát sóng đã được tạo, hãy nhấp vào tab người dùng để tạo người dùng điểm phát sóng và gán họ vào các hồ sơ khác nhau. Người dùng sẽ kế thừa tốc độ được phân bổ cho hồ sơ người dùng điểm phát sóng được chỉ định của họ. Xem hình ảnh bên dưới để biết cách tạo người dùng.

Với thiết lập này, người dùng có tên là user1 và bất kỳ người dùng nào khác được chỉ định cho người quản lý có tên hồ sơ đều sẽ có tốc độ tải lên và tải xuống 2mbps được chia sẻ với nhau. Nếu tạo một hồ sơ khác và chỉ định chúng 1mbps, hồ sơ người dùng sẽ đảm bảo rằng 2mbps sẽ luôn được dành cho người dùng được chỉ định cho hồ sơ người quản lý. Đây là một cách tốt để đảm bảo rằng một số hệ thống không chiếm toàn bộ băng thông có sẵn cho tất cả.

User Profile

Properties

Property Description
add-mac-cookie (yes|no; Default: yes) Allows to add mac cookie for users. Read more>>
address-list (string; Default: ) Name of the address list in which users IP address will be added. Useful to mark traffic per user groups for queue tree configurations.
address-pool (string |none; Default: none) IP pool name from which the user will get IP. When user has improper network settings configuration on the computer, HotSpot server makes translation and assigns correct IP address from the pool instead of incorrect one
advertise (yes | no; Default: no) Enable forced advertisement popups. After certain interval specific web-page is being displayed for HotSpot users. Advertisement page might be blocked by browsers popup blockers.
advertise-interval (time[,time[,..]]; Default: 30m,10m) Set of intervals between advertisement popups. After the list is done, the last value is used for all further advertisements, 10 minutes
advertise-timeout (time | immediately | never; Default: 1m) How long advertisement is shown, before blocking network access for HotSpot client. Connection to Internet is not allowed, when advertisement is not shown.
advertise-url (string[,string[,..]]; Default: ) List of URLs that is show for advertisement popups. After the last URL is used, list starts from the begining.
idle-timeout (time | none; Default: none) – thời gian chờ nhàn rỗi Thời gian không hoạt động tối đa cho các ứng dụng HotSpot được ủy quyền. Bộ hẹn giờ đang được đếm, khi không có lưu lượng truy cập nào đến từ máy khách đó và đi qua bộ định tuyến, chẳng hạn như máy tính bị tắt. Người dùng đã đăng xuất, bị loại khỏi danh sách máy chủ lưu trữ, địa chỉ mà người dùng sử dụng được giải phóng, khi hết thời gian chờ
incoming-filter (string; Default: ) Name of the firewall chain applied to incoming packets from the users of this profile, jump rule is required from built-in chain (input, forward, output) to chain=hotspot
incoming-packet-mark (string; Default: ) Packet mark put on incoming packets from every user of this profile
keepalive-timeout (time | none; Default: ) Thời gian chờ liên tục cho các khách hàng HotSpot được ủy quyền. Được sử dụng để phát hiện rằng máy tính của khách hàng còn sống và có thể truy cập được. Người dùng đã đăng xuất, khi đạt đến giá trị thời gian chờ
mac-cookie-timeout (time; Default: 3d) Chọn thời gian chờ mac-cookie từ lần đăng nhập hoặc đăng xuất gần đây nhất. Read more>>
name (string; Default: ) Descriptive name of the profile
on-login (string; Default: “”) Script name to be executed, when user logs in to the HotSpot from the particular profile. It is possible to get username from internal user and interface variable. For example, :log info “User $user logged in!” . If hotspot is set on bridge interface, then interface variable will show bridge as actual interface unless use-ip-firewall’ is set in bridge settings.


List of available variables:

  • $user
  • $username (alternative var name for $user)
  • $address
  • $”mac-address”
  • $interface
on-logout (string; Default: “”) Script name to be executed, when user logs out from the HotSpot.It is possible to get username from internal user and interface variable. For example, :log info “User $user logged in!” . If hotspot is set on bridge interface, then interface variable will show bridge as actual interface unless use-ip-firewall is set in bridge settings.


List of available variables:

  • $user
  • $username (alternative var name for $user)
  • $address
  • $”mac-address”
  • $interface
  • $cause

Starting with v6.34rc11 some additional variables are available:

  • $uptime-secs – final session time in seconds
  • $bytes-in – bytes uploaded
  • $bytes-out – bytes downloaded
  • $bytes-total – bytes up + bytes down
  • $packets-in – packets uploaded
  • $packets-out – packets downloaded
  • $packets-total – packets up + packets down
open-status-page (always | http-login; Default: always) Option to show status page for user authenticated with mac login method. For example to show advertisement on status page (alogin.html)
  • http-login – open status page only for HTTP login (includes cookie and HTTPS)
  • always – open HTTP status page in case of mac login as well
outgoing-filter (string; Default: ) Name of the firewall chain applied to outgoing packets from the users of this profile, jump rule is required from built-in chain (input, forward, output) to chain=hotspot
outgoing-packet-mark (string; Default: ) Packet mark put on outgoing packets from every user of this profile
rate-limit (string; Default: “”) Simple dynamic queue is created for user, once it logs in to the HotSpot. Rate-limitation is configured in the following form [rx-rate[/tx-rate] [rx-burst-rate[/tx-burst-rate] [rx-burst-threshold[/tx-burst-threshold] [rx-burst-time[/tx-burst-time] [priority] [rx-rate-min[/tx-rate-min]]]]. For example, to set 1M download, 512k upload for the client, rate-limit=512k/1M
session-timeout (time; Default: 0s) – thời gian chờ của phiên  Thời gian phiên được phép cho khách hàng. Sau thời gian này, người dùng đăng xuất vô điều kiện
shared-users (integer; Default: 1) Allowed number of simultaneously logged in users with the same HotSpot username
status-autorefresh (time | none; Default: none) – trạng thái tự động làm mới Khoảng thời gian tự động làm mới trang trạng thái HotSpot
transparent-proxy (yes |; Default: yes) Use transparent HTTP proxy for the authorized users of this profile

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Mr. Tuấn

Cảm ơn quý khách đã đặt hàng - Liên hệ với kinh doanh để được giá tốt nhất - Hotline : 0989 642 293 Bỏ qua