Access consume folder from scanner/network
-
Hey there,
I'm using paperless-ngx and nextcloud on my cloudron and being happy with it. But there is one thing I can't get to work.
My setup:
WAN --- Unifi Gateway ___(port 80/443)___ Cloudron (172.16.101.1/23) \__________________ scanner (172.16.10.10/23)
What I would like to do:
I would like to have my local Brother scanner to have access to the consume folder of my paperless-ngx app on the local network. I also want to share the consume folder (read/write) and archive folder (read only) of paperless-ngx with nextcloud.What I did already:
First I tried to install a nfs server and followed this guide (https://docs.cloudron.io/guides/nfs-share/) and opened port 2049 in the cloudron firewall.ACCEPT tcp -- anywhere anywhere tcp dpt:nfs ACCEPT udp -- anywhere anywhere udp dpt:nfs
I created a folder
/srv/nfs
and exported (/etc/exports
) it. I have granted access to the nfs folder to paperless-ngx and nextcloud by creating a volume and add it as storage in the app config.I can connect to the nfs share from localhost, but cannot access it from the local network.
showmount -e 172.16.101.1
runs in a timeout. To me it looks like the cloudron firewall is blocking my traffic.I also thought about to use the integrated ftp server, but I can only access the ftp server if I open port 222 on the WAN side and forward it to cloudron (what I would not like to do).
Do you have any ideas/tips how to solve this? I would appreciate your feedback.
Kind regards!
-
I had to set a static port for mountd in
/etc/nfs.conf
and also had to open port 111 (PortMapper) and the mountd port in the cloudron firewall.rpcinfo -p
helped me with this. Now I can access my nfs server.btw: Your guide for the nfs share (https://docs.cloudron.io/guides/nfs-share/) is outdated. Since ubuntu 22.04 you have to deactivate NFSv3 in
/etc/nfs.conf
.
https://lansible.com/2023/10/disable-nfsv3-on-ubuntu-22.04-and-newer/Thanks!