ÔõÑùÔÚ Ubuntu 22.04 ÖÐ×°ÖúÍʹÓà Wireshark
wireshark ÊÇ×ÔÓÉ¿ªÔ´µÄ¡¢¿çƽ̨µÄ¡¢»ùÓÚ gui µÄÍøÂçÊý¾Ý°üÆÊÎöÆ÷£¬¿ÉÓÃÓÚ linux¡¢windows¡¢macos¡¢solaris µÈ¡£Ëüʵʱ²¶»ñÍøÂçÊý¾Ý°ü²¢ÒÔÈËÀà¿É¶ÁµÄÃûÌ÷ºÆðËüÃÇ¡£ËüʹÎÒÃÇÄܹ»¼à¿Ø΢¹Û²ãÃæµÄÍøÂçÊý¾Ý°ü¡£ËüÉÐÓÐÒ»¸öÃûΪ tshark µÄÏÂÁîÐгÌÐò£¬ËüÖ´ÐÐÓë wireshark ÏàͬµÄ¹¦Ð§£¬µ«Í¨¹ýÖն˶ø²»ÊÇͨ¹ý gui¡£
Wireshark ¿ÉÓÃÓÚÍøÂç¹ÊÕÏɨ³ý¡¢ÆÊÎö¡¢Èí¼þºÍͨѶÐÒ鿪·¢£¬Ò²¿ÉÓÃÓÚ½ÌÓýÄ¿µÄ¡£Wireshark ʹÓÃÃûΪ pcap µÄ¿âÀ´²¶»ñÍøÂçÊý¾Ý°ü¡£
Wireshark µÄ¹¦Ð§
Ö§³Ö¼ì²éÊý°ÙÖÖÐÒé
Äܹ»ÊµÊ±²¶»ñÊý¾Ý°ü²¢ÉúÑÄËüÃÇÒÔ¹©ÒÔºóÀëÏßÆÊÎö
һЩÓÃÓÚÆÊÎöÊý¾ÝµÄ¹ýÂËÆ÷
²¶»ñµÄÊý¾Ý¿ÉÒÔ¶¯Ì¬Ñ¹ËõÏ¢ÕùѹËõ
Ö§³Ö¶àÖÖÊý¾ÝÆÊÎöÎļþÃûÌã¬Êä³öÒ²¿ÉÒÔÉúÑÄΪ XML¡¢CSV¡¢´¿Îı¾ÃûÌÃ
¿ÉÒÔ´ÓÒÔÌ«Íø¡¢WiFi¡¢À¶ÑÀ¡¢USB¡¢Ö¡Öм̡¢ÁîÅÆ»·µÈ¶àÖÖ½Ó¿Ú²¶»ñÊý¾Ý
ÏȾöÌõ¼þ
Ԥװ Ubuntu 22.04
¾ßÓÐ sudo ȨÏÞµÄÍâµØÓû§
»¥ÁªÍøÅþÁ¬
Wireshark ×°Öð취
´Ó Ubuntu ¿ÍÕ»×°ÖÃ
Wireshark °ü¿ÉÔÚĬÈ쵀 Ubuntu ¿ÍÕ»ÖÐÕÒµ½£¬²¢ÇÒ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî¼òÆÓµØ×°Öᣵ«Äã¿ÉÄÜÎÞ·¨»ñµÃ×îа汾µÄ wireshark¡£
$ sudo apt update$ sudo apt install wireshark
µÇ¼ºó¸´ÖÆ
Apt-Command-Install-Wireshark-Ubuntu
Ñ¡Ôñ ¡°Yes¡± ÔÊÐí·Ç³¬µÈÓû§Ê¹Óà Wireshark ²¶»ñÊý¾Ý°ü£º
Allow-Non-SuperUsers-To-Capture-Packets-Wireshark-Ubuntu
×°ÖÃÀֳɺ󣬻á¼û Wireshare UI¡£ÔÚ¡°Ô˶¯Activities¡±ÖÐËÑË÷¡°Wireshark¡±£¬È»ºóµã»÷ËüµÄͼ±ê¡£
Wireshark-UI-Ubuntu-Linux-Desktop
ÒÔÉÏÈ·ÈÏÄãµÄ Wireshark ×°ÖÃÒÑÀÖ³ÉÍê³É¡£
×°ÖÃ×îеİ汾
ÈôÊÇҪװÖÃ×îа汾µÄ Wireshark£¬ÎÒÃDZØÐèʹÓÃÒÔÏ apt ÏÂÁîÆôÓùٷ½ Wireshark ¿ÍÕ»£º
$ sudo add-apt-repository ppa:wireshark-dev/stable$ sudo apt update
µÇ¼ºó¸´ÖÆ
ÏÖÔÚ£¬×°ÖÃ×îа汾µÄ Wireshark£¬ÔËÐУº
$ sudo apt install wireshark -y
µÇ¼ºó¸´ÖÆ
×°Öà Wireshark ºó£¬ÑéÖ¤Æä°æ±¾£º
$ wireshark --version
µÇ¼ºó¸´ÖÆ
Wireshark-Version-Check-Ubuntu-Linux
ÒªÔÊÐíͨË×Óû§Ê¹Óà Wireshark ʹÓúͲ¶»ñÊý¾Ý°ü£¬ÇëÔËÐÐÒÔÏÂÏÂÁ
$ sudo dpkg-reconfigure wireshark-common
µÇ¼ºó¸´ÖÆ
Ñ¡Ôñ ¡°Yes¡± ²¢°´»Ø³µ¼ü¡£
Allow-Regular-User-Use-Wireshark-Ubuntu
ʹÓà usermod ÏÂÁÍâµØÓû§Ìí¼Óµ½ wireshark ×é:
$ sudo usermod -aG wireshark $USER$ newgrp wireshark
µÇ¼ºó¸´ÖÆ
ҪʹÉÏÊö¸ü¸ÄÉúЧ£¬ÇëÖØÐÂÆô¶¯ÏµÍ³¡£
$ sudo reboot
µÇ¼ºó¸´ÖÆ
ʹÓà Wireshark ²¶»ñÊý¾Ý°ü
Æô¶¯ Wireshark£¬´Ó¡°Ô˶¯¡±->ËÑË÷ ¡°wireshark¡±¡£
Access-Wireshark-Ubuntu-Desktop
Access-Wireshark-Ubuntu-Desktop
µ¥»÷ Wireshark ͼ±ê£¬
Choose-Interface-Wireshark-UI-Ubuntu
ËùÓÐÕâЩ¶¼ÊÇÎÒÃÇ¿ÉÒÔ²¶»ñÍøÂçÊý¾Ý°üµÄ½Ó¿Ú¡£Æ¾Ö¤ÄãϵͳÉϵĽçÃ棬´ËÒ³Ãæ¿ÉÄÜ»áÓÐËù²î±ð¡£
ÎÒÃÇÑ¡Ôñ ¡°enp0s3¡± À´²¶»ñ¸Ã½Ó¿ÚµÄÍøÂçÁ÷Á¿¡£ÔÚÑ¡Ôñ½Ó¿ÚÖ®ºó£¬ÎÒÃǾͿÉÒÔ×îÏÈÌî³äÎÒÃÇÍøÂçÉÏËùÓÐ×°±¸µÄÍøÂçÊý¾Ý°ü£¨ÇëÉó²éÒÔϵĽØͼ£©
Capturing-Packets-WireShark-UI-Ubuntu
µÚÒ»´Î¿´µ½´ËÒ³Ãæʱ£¬ÎÒÃÇ¿ÉÄܻᱻ´ËÆÁÄ»ÖÐÏÔʾµÄÊý¾ÝÑÍû£¬²¢ÇÒ¿ÉÄÜ»áÏëµ½ÔõÑùÕûÀíÕâЩÊý¾Ý£¬µ«²»±Øµ£ÐÄ£¬Wireshark µÄ×î¼Ñ¹¦Ð§Ö®Ò»¾ÍÊÇËüµÄ¹ýÂËÆ÷¡£
ÎÒÃÇ¿ÉÒÔƾ֤ IP µØµã¡¢¶Ë¿ÚºÅ¶ÔÊý¾Ý¾ÙÐÐÅÅÐò/¹ýÂË£¬»¹¿ÉÒÔʹÓÃÔ´ºÍÄ¿µÄ¹ýÂËÆ÷¡¢Êý¾Ý°ü¾ÞϸµÈ£¬»¹¿ÉÒÔ½« 2 ¸ö»ò¸ü¶à¹ýÂËÆ÷×éºÏÔÚÒ»ÆðÒÔ½¨Éè¸üÖÜÈ«µÄËÑË÷¡£ÎÒÃÇ¿ÉÒÔÔÚ¡°Ó¦ÓÃÏÔʾ¹ýÂËÆ÷Apply a Display Filter¡±Ñ¡ÏÖбàд¹ýÂËÆ÷£¬Ò²¿ÉÒÔÑ¡ÔñÒѽ¨ÉèµÄ¹æÔòÖ®Ò»¡£ÈôÊÇÄãÏëÑ¡ÔñÔ¤½¨¹ýÂËÆ÷£¬µã»÷¡°ìºÆ족ͼ±ê£¬È»ºóÑ¡Ôñ¡°Ó¦ÓÃÏÔʾ¹ýÂËÆ÷¡±Ñ¡Ï¡£
IP-Based-Filtering-WireShark-UI-Ubuntu
ÎÒÃÇ»¹¿ÉÒÔƾ֤ÑÕÉ«´úÂëÀ´¹ýÂËÊý¾Ý£¬Ä¬ÈÏÇéÐÎÏ£¬Ç³×ÏÉ«ÊÇ TCP Á÷Á¿£¬Ç³À¶É«ÊÇ UDP Á÷Á¿£¬ÐþÉ«±êʶÓйýʧµÄÊý¾Ý°ü£¬ÒªÉó²éÕâЩ´úÂëµÄ¼ÄÒ壬Çëµ¥»÷¡°Éó²éView¡±->¡°ÑÕÉ«¹æÔòColoring Rules¡±£¬ÎÒÃÇÒ²¿ÉÒÔ¸ü¸ÄÕâЩ´úÂë¡£
Coloring-Rules-WireShark-Ubuntu
»ñµÃËùÐèµÄЧ¹ûºó£¬ÎÒÃÇ¿ÉÒÔµ¥»÷ÈκⶻñµÄÊý¾Ý°üÒÔ»ñÈ¡ÓйظÃÊý¾Ý°üµÄ¸ü¶àÏêϸÐÅÏ¢£¬Õ⽫ÏÔʾÓйظÃÍøÂçÊý¾Ý°üµÄËùÓÐÊý¾Ý¡£
Òª×èÖ¹²¶»ñÊý¾Ý°ü£¬Çëµ¥»÷ºìÉ«×èÖ¹°´Å¥£¬È»ºó½«²¶»ñµÄÊý¾Ý°üÉúÑĵ½ÎļþÖС£
Save-Captured-Packets-Wireshark-Ubuntu
×ܽá
Wireshark ÊÇÒ»¿îºÜÊÇÇ¿Ê¢µÄ¹¤¾ß£¬ÐèҪһЩʱ¼äÀ´Ë³Ó¦ºÍÕÆÎÕËü£¬ÕâƪÎÄÕ½«×ÊÖúÄã×îÏÈʹÓá£
ÒÔÉϾÍÊÇÔõÑùÔÚ Ubuntu 22.04 ÖÐ×°ÖúÍʹÓà WiresharkµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡