NFS shares don't work behind OpenVPN

Stane1983

Cadet
Joined
Mar 10, 2023
Messages
7
Hi guys,

here's my problem. I have set up OpenVPN on my TrueNAS Core and that works well.

My home network: 192.168.10.x
VPN: 10.20.0.x
When I try to mount NFS share via VPN it fails. Worked before when VPN server was not on TrueNAS so I think it has to do something with TrueNAS firewall perhaps?

I can access all machines on my home vpn. When I ssh into any of them it sees it as I accessed from my TrueNAS IP (192.168.10.50).

Here's my fw script:
Code:
#!/bin/bash

ipfw -q -f flush
ipfw -q nat 1 config if em0
# OpenVPN requires NAT
ipfw -q add nat 1 all from 10.20.0.0/24 to any out via em0
ipfw -q add nat 1 all from any to any in via em0
# Jails that require NAT
ipfw -q add nat 2 all from 172.16.0.0/24 to any out via em0
ipfw -q add nat 2 all from any to any in via em0


Thanks
 
Top