Compare commits

...

3 Commits

Author SHA1 Message Date
Adam Leskis 145f5bd4e7 Merge branch 'docs/add_port_number_to_installation' into 'main'
add in port access information to install docs

See merge request veilid/veilid!273
2024-05-06 21:59:18 +00:00
Christien Rioux aec31443a0 consider nodes with allocated relays as disqualified from being a relay themselves 2024-05-05 16:52:35 -04:00
Adam Leskis 563b7c358a add in port access information to install docs
This refers to issue https://gitlab.com/veilid/veilid/-/issues/375
2024-04-22 14:52:49 +01:00
2 changed files with 16 additions and 1 deletions

View File

@ -109,3 +109,7 @@ To start your headless Veilid node without systemd, run:
```shell
sudo -u veilid veilid-server
```
## Post Install
To let veilid access other nodes, you'll need to open up access to port 5150 for both tcp and udp. You can additionally open port 5151 as well, though if 5150 is open, that should be enough.

View File

@ -163,10 +163,21 @@ impl RoutingTable {
if e.has_node_info(RoutingDomain::LocalNetwork.into()) {
return false;
}
let Some(node_info) = e.node_info(RoutingDomain::PublicInternet) else {
let Some(signed_node_info) = e.signed_node_info(RoutingDomain::PublicInternet) else {
return false;
};
// Until we have a way of reducing a SignedRelayedNodeInfo to a SignedDirectNodeInfo
// See https://gitlab.com/veilid/veilid/-/issues/381
// We should consider nodes with allocated relays as disqualified from being a relay themselves
// due to limitations in representing the PeerInfo for relays that also have relays.
let node_info = match signed_node_info {
SignedNodeInfo::Direct(d) => d.node_info(),
SignedNodeInfo::Relayed(_) => {
return false;
}
};
// Disqualify nodes that don't have relay capability or require a relay themselves
if !(node_info.has_capability(CAP_RELAY) && node_info.is_fully_direct_inbound()) {
// Needs to be able to accept packets to relay directly