I have a nbd server setup with the following config
[generic]
user = nbd
group = nbd
port = 98745
[export]
exportname = /dev/ubuntu-vg/lv0
authfile = /etc/nbd-server/allow
without an allow file this works flawlessly.
after adding the following allow file
10.0.0.0/24
with an ip of 10.0.0.10 i get
Negotiation: ..Error: Connection not allowed by server policy. Server said: Access denied by server configuration
and on the server
Spawned a child process
virtstyle ipliteral
connect from 10.0.0.10, assigned file is /dev/ubuntu-vg/nfs-lv
client address does not match 2/10: address family mismatch (IPv4 vs IPv6?)
message repeated 2 times: [ client address does not match 2/10: address family mismatch (IPv4 vs IPv6?)]
Client '10.0.0.10' is not authorized to access
Negotiation failed: Connection reset by peer
any thoughts? I'm stumped, as per the docs here this should work as is.
to be thorough I've also added 127.0.0.1 and 10.0.0.10 to the allow file and received the same results, trying each line individually as well.
I get ip checking isn't exactly secure but if it makes things lightly more difficult for malicious actors I'd like to enable it. Please also make sure suggestions use the new style format.