From b65bcb1c4c3ebbd478fe90d159379d1f56312d7f Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 24 Jan 2026 21:41:17 -0500 Subject: [PATCH] Filter out integrated devices and firewall interfaces - PCI: Exclude USB controller, Audio device, Encryption controller, Multimedia controller (integrated motherboard devices) - Network: Also filter fwbr*, fwln*, fwpr*, tap* interfaces (firewall bridges and VM tap devices) Co-Authored-By: Claude Opus 4.5 --- proxDoc.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/proxDoc.sh b/proxDoc.sh index 68370ac..f459bf3 100755 --- a/proxDoc.sh +++ b/proxDoc.sh @@ -152,8 +152,8 @@ get_network_info() { get_detailed_network() { echo -e "\n${GREEN}=== Network Interface Statistics ===${NC}" - # Show only physical interfaces and bridges, skip veth* (container interfaces) - for iface in $(ls /sys/class/net | grep -v lo | grep -v "^veth"); do + # Show only physical interfaces and bridges, skip virtual/firewall interfaces + for iface in $(ls /sys/class/net | grep -v lo | grep -v -E "^veth|^fwbr|^fwln|^fwpr|^tap"); do ip -s link show "$iface" 2>/dev/null done echo -e "\n${GREEN}=== Network Statistics ===${NC}" @@ -169,8 +169,8 @@ get_detailed_network() { get_hardware_info() { echo -e "${GREEN}BIOS Version:${NC} $(dmidecode -s bios-version)" echo -e "\n${GREEN}=== PCI Devices ===${NC}" - # Show all interesting devices, exclude bridges and internal infrastructure - lspci | grep -v -E "Host bridge|PCI bridge|ISA bridge|SMBus|IOMMU|Dummy" + # Show interesting devices, exclude bridges, infrastructure, and integrated motherboard devices + lspci | grep -v -E "Host bridge|PCI bridge|ISA bridge|SMBus|IOMMU|Dummy|USB controller|Audio device|Encryption controller|Multimedia controller" } get_motherboard_info() { @@ -225,8 +225,8 @@ get_memory_details() { get_nic_details() { echo -e "\n${GREEN}=== Network Interface Details ===${NC}" - # Show only physical interfaces and bridges, skip veth* (container interfaces) - for iface in $(ls /sys/class/net | grep -v lo | grep -v "^veth"); do + # Show only physical interfaces and bridges, skip virtual/firewall interfaces + for iface in $(ls /sys/class/net | grep -v lo | grep -v -E "^veth|^fwbr|^fwln|^fwpr|^tap"); do echo -e "\n${GREEN}Interface: $iface${NC}" # Get driver info