# Linstor-gateway, connect iscsi target, nfs export to linux, vmware, window via linstor-gateway

**URL:** <https://forums.linbit.com/t/linstor-gateway-connect-iscsi-target-nfs-export-to-linux-vmware-window-via-linstor-gateway/296>\
**Category:** General\
**Created:** [September 11, 2024, 1:35am UTC](https://forums.linbit.com/t/linstor-gateway-connect-iscsi-target-nfs-export-to-linux-vmware-window-via-linstor-gateway/296 "2024-09-11T01:35:24Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![buidiep](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@buidiep](https://forums.linbit.com/u/buidiep)\
**Post date:** [September 21, 2024, 12:31am UTC](https://forums.linbit.com/t/linstor-gateway-connect-iscsi-target-nfs-export-to-linux-vmware-window-via-linstor-gateway/296/21 "2024-09-21T00:31:34Z")

</div>

![image](https://canada1.discourse-cdn.com/flex003/uploads/linbit/original/1X/c18fb0cd1616130215cd3b920940130e8d45c3c1.png)

---

<div class="post-metadata">

**Author:** ![Ryan](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/ryan/32/42_2.png) [@Ryan](https://forums.linbit.com/u/Ryan)\
**Post date:** [September 25, 2024, 8:09pm UTC](https://forums.linbit.com/t/linstor-gateway-connect-iscsi-target-nfs-export-to-linux-vmware-window-via-linstor-gateway/296/22 "2024-09-25T20:09:53Z")

</div>

After seeing this thread again, and still not resolved, I’m realizing this is Proxmox (Debian 12). Have you gone through the steps to fix the portblock resource agent on all nodes? It’s documented in this [blog post](https://linbit.com/blog/highly-available-nfs-for-proxmox-with-linstor-gateway/) under “Portblock Resource Agent Workaround”. This is necessary for both NFS and iSCSI.

Long story short, [Debian 12 ships a version of iptables with a regression that interacts with the portblock resource agent version they also ship](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067733). The newer resource agents are able to workaround the behavior of the specific iptables version, and later versions of iptables reverted the behavior entirely.

* * *

The fix:

Copy the [portblock resource agent from upstream](https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/portblock) to each node:

```sh
wget -O /usr/lib/ocf/resource.d/heartbeat/portblock \
https://raw.githubusercontent.com/ClusterLabs/resource-agents/main/heartbeat/portblock

```

* * *

If you have an existing export, I’d just delete and recreate it and see if that resolves the behavior.

Without this fix the resource would “flap” between hosts in my cluster, seemingly juggling where NFS was active, but running `linstor-gateway nfs list` showed normal output before I caught on to the flapping behavior.

[Previous page](https://forums.linbit.com/t/linstor-gateway-connect-iscsi-target-nfs-export-to-linux-vmware-window-via-linstor-gateway/296.md?page=1)
