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

resolve external ip #168

Closed
ReubenM opened this issue Jul 30, 2015 · 5 comments
Closed

resolve external ip #168

ReubenM opened this issue Jul 30, 2015 · 5 comments
Assignees
Milestone

Comments

@ReubenM
Copy link

ReubenM commented Jul 30, 2015

Just fyi, I noticed fwknop is resolving external ip using a web app you're hosting.
Thought I would mention that you can get it via a DNS lookup:

dig myip.opendns.com @208.67.220.220 +short

The advantage being that it should still work in cases where web traffic might be blocked.

@mrash
Copy link
Owner

mrash commented Jul 31, 2015

Agreed this should be an option. There was some discussion of this feature on the fwknop mailing list as well in this thread:

http://sourceforge.net/p/fwknop/mailman/message/34166016/

I think the default resolution strategy should be via HTTPS since otherwise a MITM attack becomes a lot easier, but still it would be good to have resolution via opendns as an option. And if the user wants to make this the default via a config variable in ~/.fwknoprc that's fine too.

@mrash mrash modified the milestones: fwknop-2.7.0, fwknop-2.8.0 Sep 5, 2015
@mrash mrash modified the milestones: fwknop-2.7.0, fwknop-2.8.0 Sep 19, 2015
@mrash mrash self-assigned this Sep 19, 2015
@rennhak
Copy link

rennhak commented Apr 11, 2016

Doesn't work for fwknop via --resolve-url but DNS method would be eg. dig +short myip.opendns.com @resolver1.opendns.com

@mrash
Copy link
Owner

mrash commented Apr 13, 2016

An easy way to use the dig resolution strategy would be:

fwknop -A tcp/22 -a ``dig myip.opendns.com @208.67.220.220 +short -D serverIP

@mrash
Copy link
Owner

mrash commented Apr 22, 2016

I think the backtics solution is the way to go on this. Closing this issue. If there is a need to build this directly into the client please elaborate and re-open this issue.

@mrash mrash closed this as completed Apr 22, 2016
@rennhak
Copy link

rennhak commented Apr 22, 2016

Apologies for the delayed answer. Indeed, its a nice solution. Thank your for solving this!

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

3 participants