Skip to content

学习29-sockops遇到报错“iperf3: error - unable to send control message: Permission denied #117

@YuSongHao

Description

@YuSongHao

系统版本:Ubuntu-22.04
内核版本:6.5.0-28-generic

步骤:root用户按29-sockops的readme步骤,安装依赖和submodule之后,完成make和 load.sh,使用sudo iperf3 -s -p 5001建立tcp服务端,使用sudo iperf3 -c 127.0.0.1 -p 5001进行测试。

表现:iperf3报错error - unable to send control message: Permission denied.
简单debug发现是bpf_redirect.bpf.c中最后的bpf_msg_redirect_hash返回了SK_DROP(0)。

想求助下一步应该如何排查和解决。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions