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

NAT_ENABLED error reported when set to false #204

Open
unquietwiki opened this issue Aug 9, 2021 · 2 comments
Open

NAT_ENABLED error reported when set to false #204

unquietwiki opened this issue Aug 9, 2021 · 2 comments

Comments

@unquietwiki
Copy link

Setting both SUBSPACE_IPV6_NAT_ENABLED and SUBSPACE_IPV4_NAT_ENABLED to 0 or false will cause errors saying you have to have at least one NAT turned on. That behavior only makes sense if SUBSPACE_ALLOWED_IPS is not default.

First discovered in #203

@riconnon
Copy link

@unquietwiki
I'm trying to follow your statement:

That behavior only makes sense if SUBSPACE_ALLOWED_IPS is not default

I'm not sure why this is related to SUBSPACE_ALLOWED_IPS at all? Simply, it seems to be that it is always a valid configuration to not NAT if one doesn't want to and that this check could simply be removed.

@riconnon
Copy link

It looks like SUBSPACE_DISABLE_MASQUERADE might be what's intended to be used here, but notably that also disables creating the firewall rules to allow forwarding.
I think that SUBSPACE_IPV4_NAT_ENABLED and SUBSPACE_IPV6_NAT_ENABLED might be poorly named and should not include the word NAT since they also gate configuring the server interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants