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

Any way to set valid IP addresses? #50

Open
gatopeich opened this issue Apr 2, 2020 · 3 comments
Open

Any way to set valid IP addresses? #50

gatopeich opened this issue Apr 2, 2020 · 3 comments

Comments

@gatopeich
Copy link

Thanks for this great tool!

In Google Cloud Kubernetes environment, packets with "bad" IP address seem to be directly discarded.

Any way we could specify some source & destination addresses in command line?

@jwbensley
Copy link
Owner

Hi @gatopeich at present the only way would be with the -C argument. Currently that argument expects a text file which contains a single frame, with the hex byte values, like these examples, and it will sent that frame continuously: https://github.com/jwbensley/Etherate/tree/master/custom%20frames

That is your only option write now. I'm planning to modify the argument so that it loads a frame from a PCAP file instead. That way you can quickly generate any frame/packet you want in something like Scappy, save it as PCAP and EtherateMT will be able to load it.

@gatopeich
Copy link
Author

Thanks. Have you considered Wireshark Hex Dump format?

@gatopeich
Copy link
Author

BTW here is my 10-line IP packet generator you may use if you want:
https://gist.github.com/gatopeich/fc302a0662d574c218302334f7b0cb33#file-rawflood-cpp-L166
It produces just something recognizable by Wireshark...

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