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

feat(p2p): allow listener bind to differ from the tor forward address #5357

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Apr 26, 2023

Description

Add p2p.tor.listener_address_override config to allow a listener bind address that differs from the forward_address for incoming tor connections.

Motivation and Context

This is useful for docker setups where containers are addressed by DNS. In this case, the forward_address would be /dns4/my_base_node/tcp/xxxxx and the listener_address_override="/ip4/0.0.0.0/tcp/xxxxx"

How Has This Been Tested?

Manually by setting the override to "/ip4/0.0.0.0/tcp/12345" and the forward_address to /dns4/localhost/tcp/12345

What process can a PR reviewer use to test or verify this change?

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

@sdbondi sdbondi changed the title fix: added missing log4rs features feat(p2p): allow listener bind to be different to tor forward address Apr 26, 2023
@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Apr 26, 2023
@sdbondi sdbondi force-pushed the p2p-configurable-listener-with-tor-transport branch from 1323736 to a46555a Compare April 26, 2023 12:07
@sdbondi sdbondi force-pushed the p2p-configurable-listener-with-tor-transport branch from a46555a to 20c9781 Compare April 26, 2023 12:09
@sdbondi sdbondi changed the title feat(p2p): allow listener bind to be different to tor forward address feat(p2p): allow listener bind to differ from the tor forward address Apr 26, 2023
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label May 2, 2023
@stringhandler stringhandler merged commit 857fb55 into tari-project:development May 2, 2023
11 of 12 checks passed
@sdbondi sdbondi deleted the p2p-configurable-listener-with-tor-transport branch May 2, 2023 07:44
SWvheerden added a commit that referenced this pull request May 8, 2023
##
[0.50.0-pre.1](v0.50.0-pre.0...v0.50.0-pre.1)
(2023-05-08)


### Features

* add miner timeout config option
([5331](#5331))
([aea14f6](aea14f6))
* chat ffi ([5349](#5349))
([f7cece2](f7cece2))
* chat scaffold
([5244](#5244))
([5b09f8e](5b09f8e))
* improve message encryption
([5288](#5288))
([7a80716](7a80716))
* **p2p:** allow listener bind to differ from the tor forward address
([5357](#5357))
([857fb55](857fb55))


### Bug Fixes

* add SECURITY.md Vulnerability Disclosure Policy
([5351](#5351))
([72daaf5](72daaf5))
* added missing log4rs features
([5356](#5356))
([b9031bb](b9031bb))
* allow public addresses from command line
([5303](#5303))
([349ac89](349ac89))
* clippy issues with config
([5334](#5334))
([026f0d5](026f0d5))
* default network selection
([5333](#5333))
([cf4b2c8](cf4b2c8))
* make the first output optional in the wallet
([5352](#5352))
([bf16140](bf16140))
* remove wallet panic
([5338](#5338))
([536d16d](536d16d))
* wallet .h file for lib wallets
([5330](#5330))
([22a3a17](22a3a17))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants