-
Notifications
You must be signed in to change notification settings - Fork 28
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
Hi, can bpf_redirect_map(...) be used for interface created by VirtualBox? #71
Comments
hello @bradley-code-again |
Hello @kcl17 Docker container workspace.WORKSPACE=/workspaces BPF_SAMPLES_DIR="${WORKSPACE}"/build/samples Compilation environment variable.NUM_THREADS= Docker environment variable.USERNAME=oai-spgwu TODO navarrothiago - Remove hardcoded #24DEVICE_IN= TODO navarrothiago - pass as exec param.GTP_INTERFACE= Test environment variables.TEST_CASE=hello_world Jump server.JUMP_SERVER_NAME= Trex version.TREX_VERSION=v2.87 Trex server configuration.TREX_SERVER_NAME= # Warning: Optional - If you set the name, it must be configured on your ssh config. TREX_SERVER_SSH="${TREX_SERVER_USERNAME}"@"${TREX_SERVER_IP}"TREX_SERVER_UPLOAD_DIR= Trex client configuration.TREX_CLIENT_NAME= # Warning: Optional - If you set the name, it must be configured on your ssh config. TREX_CLIENT_SSH="${TREX_CLIENT_USERNAME}"@"${TREX_CLIENT_IP}"TREX_CLIENT_UPLOAD_DIR= DUT - Device Under Test Configuration.DUT_NAME= # Warning: Optional - If you set the name, it must be configured on your ssh config. Test local configuration.LOCAL_CONFIG_DIR="${WORKSPACE}"/tests/trex/config Test remote configurationREMOTE_CONFIG_DIR="${TREX_SERVER_UPLOAD_DIR}"/config SSH port forwarding configurationLOCAL_HTTP_SSH_PORT_FORWARDING= Programs nameAPI_PROGRAM_NAME=api PYTHONPATH=/workspaces/tests/trex/trex_client/interactive/ |
Hi @restart-again, I dont see any changes in your env file from the default value. Are you able to compile and run as per the steps provided in the help section? |
@bradley-code-again, There might have some issue. Could you try to put your interface in the promiscuous and capture the packet on vboxnet0? I don't know if you have already tried that. Btw, the OAI guys are doing a great job improving this code. PTAL: https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-upf/-/tree/develop/src/upf_app |
@navarrothiago, many thanks for your idea and sharing. I tried with virtualbox again, it is not working. But I find it is working with a L2 link, vboxnet0 is a L3 link. I am wondering if bpf_redirect_map or bpf_redirect only works for L2 link? And in your experiment, you also configured veth somewhere, veth is also a L2 link. Is that right? thanks. |
@restart-again yes. As I recall, veth pairs was used to test locally only. See Section UTs in the README.md |
Hi, thanks for you sharing.
I am trying with your code with two virtual machine created by VirtualBox on the same ubuntu host machine. VirtualBox created two local network vboxnet0 and vboxnet1, I trying to send data from vboxnet1 to vboxnet0 with your code, but it doesn't successfull.
The code runs to bpf_redirect_map(...), and I filled with the correct mac address of vboxnet0, but vboxnet0 always can't received any data at all.
I wondering if bpf_redirect_map(...) can be used with virtual network or not? thanks.
The text was updated successfully, but these errors were encountered: