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

Bittorent recognition from packet payload #48

Open
chipakis opened this issue Feb 14, 2023 · 1 comment
Open

Bittorent recognition from packet payload #48

chipakis opened this issue Feb 14, 2023 · 1 comment

Comments

@chipakis
Copy link

Hello, i am trying to recognize whether the incoming packet belongs to a bittorrent activity. What i've done so far is to create a copy of the packet to CPU and from there try to inspect inside the packet payload for traces of bittorrent activity and change the priority channel, is it possible that it can somehow workout?
Secondly, i am trying also to add NAT services on my network for some internet connection, but i haven't found the way to do it yet, is there a way to do it?

@edgar-costa
Copy link
Collaborator

  1. For the bittorrent question. You will have to look at how bit torrent packets look like and write a script that does the parsing according to your needs.

  2. Directly with P4 utils there is no available NAT services. But you can setup that yourself. You will have to configure one node at the root namespace to act as NAT, look for some linux tutorial about that, and then you configure the hosts and devices in your emulated network such that traffic destined to the internet go to the NAT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants