在 AWS Lambda 中捕获流量 [英] Capture Traffic In AWS Lambda

查看:89
本文介绍了在 AWS Lambda 中捕获流量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 AWS Lambda 中捕获从我的 python 函数发起的所有流量请求,并创建一个 pcap 文件进行分析.

I want to capture all traffic request initiated from my python function in AWS Lambda and create a pcap file for analysis.

在 python 函数中,我使用无头铬浏览器并打开输入 URL.

In python function i am using headless chromium browser and opening an input URL.

推荐答案

您可以激活 VPC 流量镜像在 AWS Lambda 函数使用的 ENI 上,但这只是暂时的,因为 Lambda 函数可以随着时间的推移添加和删除 ENI.

You could possible activate VPC Traffic Mirroring on the ENI used by the AWS Lambda function, but this would only be temporary because Lambda functions can add and remove ENIs over time.

流量镜像是一项 Amazon VPC 功能,可用于从 Amazon EC2 实例的弹性网络接口复制网络流量.然后,您可以将流量发送到带外安全和监控设备,以进行内容检查、威胁监控和故障排除.

Traffic Mirroring is an Amazon VPC feature that you can use to copy network traffic from an elastic network interface of Amazon EC2 instances. You can then send the traffic to out-of-band security and monitoring appliances for Content inspection, Threat monitoring and Troubleshooting.

镜像流量将发送到 Amazon EC2 实例,您可以在其中(以某种方式)捕获和分析流量.

The mirrored traffic would be sent to an Amazon EC2 instance, where you could (somehow) capture and analyze the traffic.

这篇关于在 AWS Lambda 中捕获流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆