前言¶ 我们常用的 tcpdump 抓包工具的一个核心能力是支持使用 pcap-filter 包过滤语法对流量进行过滤,只对符合条件的特定流量进行抓包。 当我们使用 eBPF 技术开发网络相关的工具的时候,如果也能支持 pcap-filter 包过滤语法的话, 想必会极大的提升用户体验。 因此,我开发的 ptcpdump 工具也内置了对 pcap-filter 包过滤语法的支持。 使用常规方法为 eBPF 程序增加 pcap-filter 支持...| mozillazg's Blog
Preface A core feature of the common tcpdump packet capture tool is its support for the pcap-filter syntax. This lets it filter traffic and capture only specific packets matching the filter. When developing network-related tools with eBPF, supporting the pcap-filter syntax would greatly improve user experience. That's why the ptcpdump tool I developed includes built-in support for the pcap-filter syntax. Adding pcap-filter support to eBPF programs the usual way involves complex logic. However...| mozillazg's Blog
前言 本文将按变更顺序介绍一下 ptcpdump 从上次的 v0.26 之后的 v0.27 版本到最新的 v0.32 版本期间所发布的主要变更内容。 主要变更内容 新增 -q/--quiet 参数 新增 -q/--quiet 参数用于精简输出内容: 13:50:35.524360 lo curl.345650 Out IP 127.0.0.1.58694 > 127.0.0.1.8000: tcp 0, ParentProc [bash.345626] 新增 --context 参数 新增 --context 参数用于指定输出中包含的上下文信息,可以通过这个参数控制只显示特定...| mozillazg's Blog
本文将简单探索一下前段时间 GKE 官宣的名为 Workload Identity Federation for GKE 的特性。 功能介绍¶ Workload Identity Federation for GKE 是原有的 GKE Workload Identity 特性的改进版本, 核心的改进是减少了需要配置的信息,提升了用户体验。 使用方法¶ 可以通过下面几个步骤体验该特性: 创建一个启用 Workload Identity Federation for GKE 特性的 GKE 集群。具体启用位置是:创建集群 - 安全 - 启用 Wor...| mozillazg's Blog
In this article, we will briefly explore a feature called "Workload Identity Federation for GKE" that was recently announced by GKE in their official blog. Features Overview Workload Identity Federation for GKE is an improved version of the original GKE Workload Identity feature. The main improvement is that it needs less configuration and offers better user experience. How to Use Follow these steps to try this feature: Create a GKE cluster with Workload Identity Federation for GKE enabled. Y...| mozillazg's Blog
前言¶ 距离 上次首次介绍ptcpdump 项目已经过去好几个月了, 最近这几个月我一直在持续开发这个项目, 本文将按变更顺序介绍一下从上次的 v1.16 版本到最新的 v1.26 版本期间所发布的主要变更内容。 主要变更内容¶ 兼容老版本的 TencentOS/OpenCloudOS 系统¶ 根据用户 反馈 , 之前的版本无法在老版本的 TencentOS/OpenCloudOS 上运行, 当前最新版本已经支持了如下 TencentOS/OpenCloudOS 系...| mozillazg's Blog
Preface It has been several months since the last introduction of the ptcpdump project. Over these past months, I have been continuously developing this project. This article will introduce the major changes released from the previous v1.16 version to the latest v1.26 version in chronological order. Main changes Compatible with older versions of TencentOS/OpenCloudOS system Base on user feedback the older versions were not compatible with previous editions of TencentOS/OpenCloudOS. However, t...| mozillazg's Blog
我跟同事合著的新书《eBPF 云原生安全:原理与实践》在 8 月底的时候已经正式对外发售了。 好像还没在博客中宣传过这个消息,今天特意发篇文章来打个广告。 广告时间¶ 我跟同事合著的由机械工业出版社出版的新书《eBPF 云原生安全:原理与实践》现已正式出版发售,各大电商平台上均有现货! 推荐对 eBPF 或安全感兴趣的朋友们关注一下。下面是一些链接资源,供大家...| mozillazg's Blog