Wi-Fi connection ช้เกินไป? มี network problems ตลอดขณะขณะ surf 'Net? โอกาสมากที่ wireless network ของคุณกำลัง handle traffic มากกว่าที่ควร โชคดีที่ควบคุม Wi-Fi network ใน Linux ได้ง่าย คุณสามารถใช้ open-source application evillimiter สำหรับ monitoring และ controlling device bandwidth คู่มือนี้ illustrate วิธีทำแบบ step-by-step
Evillimiter คืออะไร?
Evillimiter เป็น free, open-source monitoring tool ที่สามารถ limit bandwidth usage สำหรับ devices connected to a LAN รันบน Linux และ Windows และทำงานได้ without administrative access to the network หมายเหตุ: ไม่ควรใช้ tool นี้บน network ของคนอื่น หลีกเลี่ยง possible legal challenges
วิธีติดตั้ง Evillimiter
ต้อง install evillimiter ก่อนใช้ โชคดีที่ installation straightforward หาก dependencies installed already ต้องการ Python 3 ซึ่งควร available บน most Linux installations by default ในการติดตั้ง evillimiter เปิด terminal และพิมพ์คำสั่งด้านล่าง:
# retrieves source code git clone https://github.com/bitbrute/evillimiter.git # navigates to the source directory cd evillimiter # installs evillimiter sudo python3 setup.py install
วิธีควบคุม Wi-Fi Network ด้วย Evillimiter
เมื่อติดตั้งเสร็จ เริ่ม monitor devices connected to personal Wi-Fi ก่อนอื่น start application ด้วยคำสั่ง:
sudo evillimiter
ต้องการ sudo/root privileges เพื่อรันและใช้ evillimiter เพราะมัน handle network controller และต้องการ access low-level kernel parameters ตอนรันครั้งแรก evillimiter จะแสดงข้อมูลบางอย่างเกี่ยวกับ Wi-Fi network รวมถึง interface name, gateway IP, MAC, และ netmask
Interactive console คือที่พิมพ์ commands สำหรับ monitoring bandwidth usage Evillimiter มอบ handful of commands สำหรับ ease of control ดู list of available commands ได้ด้วยการใส่ ? หรือ help ใน interactive console
(Main) >>> help
ต้อง scan local network ก่อน monitor connected devices ใช้คำสั่ง scan ของ evillimiter
(Main) >>> scan
จะ scan สำหรับ all hosts connected to Wi-Fi และ report number of active devices ตอนนี้ดู hosts และ limit bandwidth usage ได้ ใช้คำสั่ง hosts สำหรับดู all active hosts
(Main) >>> hosts
จะแสดง list of devices ที่ connected to Wi-Fi network Evillimiter assign ID ให้แต่ละ device และแสดง IP และ MAC information Status field แสดงว่า bandwidth ถูก limited สำหรับ device แล้วหรือยัง
ตอนนี้ limit bandwidth สำหรับ device ได้ด้วยคำสั่ง limit
(Main) >>> limit 2 100kbit
คำสั่งนี้ limit bandwidth ของ device ที่สอง (ID=2) ไป 100 kilobits สามารถ limit หลาย devices พร้อมกันด้วย comma-separated list
(Main) >>> limit 2,3 50kbit
คำสั่งนี้จะ limit bandwidth ของ device ที่สองและสามไป 50 kbit
Bandwidth limitation set สำหรับ both upload และ download speeds แต่สามารถ limit upload/download speeds แยกกันได้ คำสั่งถัดไป limit download speed ของ device ที่สองไป 100 kbit per second
(Main) >>> limit 2 100kbit --download
สามารถ block Internet connection สำหรับ host device ด้วยคำสั่ง block วิธีนี้คุณสามารถ control Wi-Fi users ได้โดยตรงจาก terminal
(Main) >>> block 2
คำสั่งนี้จะ block device ที่สองจากการใช้ network resources ใช้ flags --upload และ --download สำหรับ block one-way traffic
(Main) >>> block 2 --download
สมมติอยาก stream gaming sessions สามารถ block all other Wi-Fi devices ด้วยคำสั่งด้านล่าง
(Main) >>> block all
จนตอนนี้เราแสดงวิธี scan, limit, และ block devices ด้วย evillimiter ใน Linux อย่า forget free these devices เมื่อเสร็จ ใช้คำสั่ง free ตามด้วย host ID
(Main) >>> free 1,2,3 (Main) >>> free all
เพื่อออกจาก interactive console พิมพ์ quit หรือ exit ใน command window
(Main) >>> quit
จะ exit current session และคืน terminal prompt
ต่อไปคือสอง features เพิ่มเติมของ evillimiter เนื่องจาก interactive console มีสี อาจไม่รัน properly ในบาง environments สามารถ install packages ที่จำเป็นสำหรับ color-coding หรือใช้ option --colorless ในกรณีเหล่านั้น
sudo evillimiter --colorless
ถ้ารันใน terminal จะเริ่ม colorless interactive session สำหรับ evillimiter ผู้คนใช้ mode นี้ whenever facing problems with ASCII colors
สุดท้าย option -f ช่วย resolve issues with Linux iptables configuration หรือ network parameters
sudo evillimiter -f
Tips About Using Evillimiter
Evillimiter ใช้ ARP spoofing และ traffic shaping เพื่อ cut users จาก LAN connections ดังนั้นไม่ดีที่จะ run application นี้ใน background นานเกินไป สามารถ throttle network resources และอาจทำให้ frequent kernel panics
แนะนำใช้ tools เหล่านี้ only when it's essential บวกกับ tool ไม่ work at all สำหรับ IPv6 connections นอกจากนี้ หาก facing problems regarding network interfaces ลอง flashing the configuration
สรุป
เห็นได้ว่าคุณสามารถควบคุม Wi-Fi network ใน Linux ได้ง่ายด้วย evillimiter ติดตั้งง่าย และทำงานดีแม้ไม่มี admin access หากอยากเรียนรู้เพิ่มเติมเกี่ยวกับ Wi-Fi security ลองอ่าน complete guide to home Wi-Fi security