Capturing Network Traffic with Raw Sockets in Go
Capturing Network Traffic with Raw Sockets in Go
The most common library for capturing network traffic in Go is github.com/google/gopacket, which requires libpcap and therefore must be compiled with CGO enabled. To reduce environmental dependencies, we can use raw sockets to capture network traffic and then leverage gopacket's protocol parsing ...
Posted on Wed, 20 May 2026 20:31:02 +0000 by kingnutter
Docker Network Fundamentals
Computer Network Model
Network Interfaces in Linux
(1) View network interfaces (NICs)
ip link show
ls /sys/class/net
ip a
ifconfig
(2) Network Interface Details
- Interpreting `ip a` output:
State: UP/DOWN/UNKNOWN
link/ether: MAC address
inet: Assigned IP address
- Configuration files:
cat /etc/sysconfig/network- ...
Posted on Mon, 18 May 2026 01:12:04 +0000 by Fractal
Understanding Load Balancing with LVS: ARP Protocol Analysis and DR Mode Implementation
3.4 Packet Capture in Linux
ARP Resolution Process: Wireshark packet capture workflow
# Install packet capture software
yum install -y wireshark
# Capture ARP packets on interface eth1
tshark -i eth1 -f arp
# Sample output:
# 1 0.000000000 Vmware_2e:aa:48 -> Broadcast ARP 42 Who has 172.16.1.51? Tell 172.16.1.61
# 2 0.000263929 Vmware_c ...
Posted on Sun, 10 May 2026 22:21:36 +0000 by hatrickpatrick