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

Feature? #3

Closed
deanbushmiller opened this issue Aug 2, 2019 · 3 comments
Closed

Feature? #3

deanbushmiller opened this issue Aug 2, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@deanbushmiller
Copy link

deanbushmiller commented Aug 2, 2019

No description provided.

@deanbushmiller
Copy link
Author

Setting SRC and DST for the pcap in the interface might be helpful instead of pulling from docker image my example "Running on http://172.17.0.2:5000/" My pcap files have 172.17.0.2 as both SRV & DST

@amit-raut amit-raut added the enhancement New feature or request label Aug 2, 2019
@amit-raut
Copy link
Contributor

Thank you for the feature request @deanbushmiller :)

I implemented to have SRC/DST IP to be 10.10.10.1 and 10.10.10.2 respectively here but I removed that because of inconsistent behavior of tcpprep and tcprewrite :(

I created issue for it with appneta/tcpreplay here

I have another thought of doing this which I'll try to implement in next release, but in my opinion this should not be a problem for testing Snort or IDS signatures generated by Re2Pcap

Thank you,
Amit

@amit-raut
Copy link
Contributor

amit-raut commented Aug 4, 2019

Thank you for the recommendation. 🙂

With c74eac7 I implemented following

SRC IP: 10.10.10.1
DST IP: 172.17.0.2 (Re2Pcap Container's IP Address)

If you need to update the DST IP please use tcprewrite -D [172.17.0.2/32]:[<Required IP/CIDR>] -i in.pcap -o out.pcap as mentioned here or you can use tcpprep or tcprewrite to set endpoints as mentioned here.

I hope this helps.

Thank you,
Amit
Cisco Talos

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

No branches or pull requests

2 participants