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

[client] Fix 'Could not set destination IP.' in hostname resolution in '-P icmp' mode #64

Closed
mrash opened this issue Apr 27, 2013 · 4 comments
Milestone

Comments

@mrash
Copy link
Owner

mrash commented Apr 27, 2013

It seems that hostname resolution is not working when SPA packets are spoofed. Here is the command line to trigger the problem:

fwknop -A tcp/22 -a 127.0.0.2 -D --verbose --verbose -P icmp --icmp-type 8 --icmp-code 0 -Q 1.2.3.4

@fjoncourt
Copy link
Contributor

Hi Michael,

Same problem when the spoof string is an hostname. But reading the man page, it only waits for an ipv4 string.
I am going to fix the above issue.

@mrash
Copy link
Owner Author

mrash commented Apr 27, 2013

Excellent, I've assigned this to the fwknop-2.5 release milestone.

fjoncourt pushed a commit to fjoncourt/fwknop that referenced this issue Apr 27, 2013
@fjoncourt
Copy link
Contributor

Done (check last commit). I have added a test for this. I have not touched the spoof string. If it makes sense to set a hostname instead of an ip address, then it should also be resolved.
I think I will add a constant somewhere to specify AF_INET as the default protocol for resolving hostname. If the default behavior comes to change to AF_INET6 it will be easy to update.

mrash added a commit that referenced this issue Apr 28, 2013
This merges changes from Franck Joncourt for issues #55 (log module for fwknop)
and #64 (hostname resolution not working for -P icmp spoofing).
@mrash
Copy link
Owner Author

mrash commented Apr 28, 2013

Merged, thanks!

@mrash mrash closed this as completed Apr 28, 2013
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