Can forward NFS traffic fine, except from Proxmox and its VMs

foglertech

New Member
Dec 22, 2022
6
0
1
Hello.

I have a NAS directly connected to my Proxmox machine, which forwards all NFS traffic via iptables to the NAS (I can't directly connect the NAS per our system policy). I can connect to the NFS share from every other machine on our network but not from ProxMox or the VMs running on it. When I try to, I get a connection refused error. I've added all the IPs I can think of to the NFS permissions, but nothing seems to work. Has anybody experienced this before? What am I missing? My PREROUTING chain is below:

Bash:
Chain PREROUTING (policy ACCEPT 242K packets, 22M bytes)
 pkts bytes target     prot opt in     out     source               destination
  154  8392 DNAT       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:2049 to:192.168.137.70:2049
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:2049 to:192.168.137.70:2049
  166  8732 DNAT       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:111 to:192.168.137.70:111
   22  1616 DNAT       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:111 to:192.168.137.70:111
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:662 to:192.168.137.70:662
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:662 to:192.168.137.70:662
   53  2772 DNAT       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:892 to:192.168.137.70:892
    3   288 DNAT       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:892 to:192.168.137.70:892
    4   208 DNAT       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:4045 to:192.168.137.70:4045
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:4045 to:192.168.137.70:4045
 
I figured out the problem. I needed to add rules to the OUTPUT chain since traffic is being generated internally; thus it never hits the INPUT chain.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!