Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]pcn-iptables-init-xdp/pakcet can not access ingress to redirect #347

Open
liuuwqia opened this issue Oct 21, 2020 · 2 comments
Open
Labels
bug Something isn't working

Comments

@liuuwqia
Copy link

Describe the bug

For the PCN iptables init XDP mode, after init, the XDP program will be loaded on the network card that supports native. Then, when the message arrives at the network card eno1 with XDP program, the XDP program in the ingress direction will work. From the log, we can see that the data is redirected to the next network card eno2, but the data will be dropped by eno1. I don't know why.

In the same network card eno2 egress direction, go to TC BPF program, so the message can be forwarded, and PCN iptables is also effective.

I don't know whether the XDP program that causes the data stream not communicating is due to the mismatch between the kernel and the libbpf Library of BCC or other reason

To Reproduce

Steps to reproduce the behavior:
Trace can see that it has been redirected to the next port, but the data does not arrive at this port

Expected behavior

Data should be redirected to the next port

Please tell us about your environment:

##ubuntu20.04/kernel 5.4

##polycubectl version
polycubectl:
version: v0.9.0+ [git: (branch/commit): master/b7758768-dirty]
polycubed:
version: v0.9.0+ [git: (branch/commit): master/b7758768-dirty]

@liuuwqia liuuwqia added the bug Something isn't working label Oct 21, 2020
@liuuwqia
Copy link
Author

image

@Arishbiswas
Copy link

how to run an ebpf program locally inside the container shell... i am new to polycube, can anyone tell me if it is possible to run custom ebpf code in pcn-iptables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants