Open
Conversation
Collaborator
|
Port forwarding is the approach most commonly used.
…On Thu, Nov 1, 2018, 07:30 Geoffrey Merck ***@***.*** wrote:
Hi,
This adds a simple UDP Hole punching/NAT Traversal mechanism to enable G2
(Call Sign Routing) for gateways running with non public IP, typically
mobile networks.
I have recently read about UDP hole punching / NAT Traversal which is used
in kademlia protocol. I decided to go for it and to see if it is possible
to implement it to allow G2 to traverse NAT routers.
This turned out to be quite easy yet it has one limitation. There can only
be one gateway behind the NAT router.
This works by sending a dummy 1 byte UDP packet on the G2 port every time
a gateway is seen on the ircddb network. In case both gateway want to talk
together the hole is already punched for DV data to flow through, if
gateways don't NAT router will kill the UDP session after TTL is expired.
73
Geoffrey F4FXL - KC3FRA
------------------------------
You can view, comment on, or merge this pull request online at:
#164
Commit Summary
- First G2 UDP Hole Punching test
- Removed unnecessary loop, using G2_DV_PORT constant
File Changes
- *M* ircDDBGateway/Common/G2ProtocolHandler.cpp
<https://github.com/dl5di/OpenDV/pull/164/files#diff-0> (12)
- *M* ircDDBGateway/Common/G2ProtocolHandler.h
<https://github.com/dl5di/OpenDV/pull/164/files#diff-1> (2)
- *M* ircDDBGateway/ircDDBGateway/IRCDDBGatewayThread.cpp
<https://github.com/dl5di/OpenDV/pull/164/files#diff-2> (3)
Patch Links:
- https://github.com/dl5di/OpenDV/pull/164.patch
- https://github.com/dl5di/OpenDV/pull/164.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#164>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGP0enB3vSpLnmA4bzwaE6RZqB1Vxsrgks5uqwVwgaJpZM4YGdrR>
.
|
Contributor
Author
|
Sure, but not always feasible if you are on a mobile network which is actually a big NAT where you cannot forward anything |
Collaborator
|
Yes, that is true. However, there is another option. See
https://groups.io/g/net-44-vpn/wiki/home (It solves a whole bunch of NAT
issues for Amateur Radio based projects).
…On Thu, Nov 1, 2018 at 10:23 AM Geoffrey Merck ***@***.***> wrote:
Sure, but not always feasible if you are on a mobile network which is
actually a big NAT where you cannot forward anything
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#164 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGP0eqto9-m0i9vqSL3pfX-Sde7htwjYks5uqy3_gaJpZM4YGdrR>
.
--
------------------------------
John D. Hays
Edmonds, WA
K7VE
<http://k7ve.org/blog> <http://twitter.com/#!/john_hays>
|
Contributor
Author
|
This saves the hassle of setting up a VPN and all related stuff. Lots of people do not use VPN on their hotspot and are talking BS about dstar which is decaying. |
This file contains hidden or 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
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.
Hi,
This adds a simple UDP Hole punching/NAT Traversal mechanism to enable G2 (Call Sign Routing) for gateways running with non public IP, typically mobile networks.
I have recently read about UDP hole punching / NAT Traversal which is used in kademlia protocol. I decided to go for it and to see if it is possible to implement it to allow G2 to traverse NAT routers.
This turned out to be quite easy yet it has one limitation. There can only be one gateway behind the NAT router.
This works by sending a dummy 1 byte UDP packet on the G2 port every time a gateway is seen on the ircddb network. In case both gateway want to talk together the hole is already punched for DV data to flow through, if gateways don't NAT router will kill the UDP session after TTL is expired.
73
Geoffrey F4FXL - KC3FRA