我需要能够获取在端口 8001 到端口 8002 上接收到的数据包的副本。我尝试了以下操作,但出现错误 --tee 未定义。
sudo iptables -t nat -A PREROUTING -p TCP -s 127.0.0.1 --sport 8001 -j DNAT --to-destination 127.0.0.1:8002 --tee
linux iptables tcp
iptables ×1
linux ×1
tcp ×1