-
Notifications
You must be signed in to change notification settings - Fork 184
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
feat(iroh-net): Nat-PMP probes and mappings #1283
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 tasks
4 tasks
divagant-martian
changed the title
feat[iroh-net): Nat-PMP probes and mappings
feat(iroh-net): Nat-PMP probes and mappings
Jul 20, 2023
Running the commands on my machine I am getting > RUST_LOG=trace cargo run doctor port-map nat_pmp 2446
2023-07-20T13:03:23.164141Z DEBUG iroh::config: make_config:
Config {
defaults: {},
overrides: {},
sources: [],
cache: Value {
origin: None,
kind: Table(
{},
),
},
}
2023-07-20T13:03:23.164887Z INFO iroh::commands: Metrics server not started, no address provided
2023-07-20T13:03:23.166452Z DEBUG portmapper.service: iroh_net::portmapper: portmap starting
2023-07-20T13:03:23.166623Z TRACE portmapper.service: iroh_net::portmapper: tick: msg Some(UpdateLocalPort { local_port: Some(2446) })
2023-07-20T13:03:23.168735Z DEBUG portmapper.service: iroh_net::portmapper: getting a port mapping for 192.168.178.31:2446 -> None
2023-07-20T13:03:23.180682Z TRACE portmapper.service: iroh_net::portmapper: tick: mapping ready
2023-07-20T13:03:23.180769Z DEBUG portmapper.service: iroh_net::portmapper: failed to get a port mapping Invalid version received
2023-07-20T13:03:33.169541Z DEBUG iroh_net::util: portmap_service completed
Error: Timed out waiting for a port mapping and > RUST_LOG=trace cargo run doctor port-map-probe --enable-nat-pmp
2023-07-20T13:02:57.501823Z DEBUG iroh::config: make_config:
Config {
defaults: {},
overrides: {},
sources: [],
cache: Value {
origin: None,
kind: Table(
{},
),
},
}
2023-07-20T13:02:57.502407Z INFO iroh::commands: Metrics server not started, no address provided
probing port mapping protocols with Config { enable_upnp: false, enable_pcp: false, enable_nat_pmp: true }
2023-07-20T13:02:57.503547Z DEBUG portmapper.service: iroh_net::portmapper: portmap starting
2023-07-20T13:02:57.503682Z TRACE portmapper.service: iroh_net::portmapper: tick: msg Some(Probe { result_tx: _ })
2023-07-20T13:02:57.513680Z DEBUG portmapper.service:portmapper.probe: iroh_net::portmapper::nat_pmp: probe failed: Response is malformed
2023-07-20T13:02:57.513818Z TRACE portmapper.service:portmapper.probe: iroh_net::portmapper: tick: nat_pmp probe ready
2023-07-20T13:02:57.514121Z TRACE portmapper.service: iroh_net::portmapper: tick: probe ready
2023-07-20T13:02:57.514185Z DEBUG portmapper.service: iroh_net::portmapper: probe output portmap={ UPnP: false, PMP: false, PCP: false }
portmap={ UPnP: false, PMP: false, PCP: false }
2023-07-20T13:02:57.514257Z TRACE portmapper.service: iroh_net::portmapper: tick: msg None
2023-07-20T13:02:57.514261Z DEBUG iroh_net::util: portmap_service completed
2023-07-20T13:02:57.514268Z DEBUG portmapper.service: iroh_net::portmapper: portmap service channel dropped. Likely shutting down. |
Works for me! My Results:
and
|
dignifiedquire
approved these changes
Jul 20, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Notes & open questions
Suggested way of trying:
A Mapping
A probe
Change checklist