Covenant icon indicating copy to clipboard operation
Covenant copied to clipboard

[Bug] Dev branch - Covenant doesn't start if the listener interface is no longer available

Open seckek opened this issue 4 years ago • 2 comments

Feature Request or Bug Bug

Describe the feature request or bug If a listener is configured for an interface that no longer exists (eg. tun0) Covenant is unable to start.

To Reproduce Steps to reproduce the behavior:

  1. Create a listener in covenant
  2. Disable the interface the listener was using (eg. by using "ifconfig eth0 down")
  3. Restart covenant
  4. Observe the "Cannot assign requested address" error.

Expected behavior Covenant should start without the affected listener.

Screenshots Setting up the listener: Cov1 Removing the interface and restarting Covenant: Cov2

seckek avatar Jan 12 '22 04:01 seckek

BindAddress should be 0.0.0.0

xiaoheiccc avatar Feb 11 '22 03:02 xiaoheiccc

Wouldn't 0.0.0.0 listen on all interfaces which is different to using only one interface? I don't think that the intention is for users to always use 0.0.0.0, otherwise why have the option to change the BindAddress

seckek avatar Feb 11 '22 04:02 seckek