I was able to get routing to my local network "working".
My Truenas is 10.15.207.10 on my lan, main nic is bge0
My VPN server is configured Server = 10.9.0.0/24, Device Type=TUN, Topolgy=SUBNET
Services > OpenVPN Server > Additional Parameters:
Code:
local 10.15.207.10
push "route 10.15.207.0 255.255.255.0"
route 10.15.207.10 255.255.255.0 10.9.0.1
push "dhcp-option DNS 10.15.207.1"
Create a file on the USB drive...Admittedly, I don't know where this should go. I put it in /data/ipfw.rules If there is a more proper place for me to store this file, please let me know.
/data/ipfw.rules
Code:
ipfw -q -f flush
ipfw -q nat 1 config if bge0
ipfw -q add nat 1 all from 10.9.0.0/24 to any out via bge0
ipfw -q add nat 1 all from any to any in via bge0
Create the following tunables
System > Tunables:
Code:
Variable=gateway_enable
Value=yes
Type=rc
Description=ip forwarding
Enabled=yes
Code:
Variable=firewall_enable
Value=YES
Type=rc
Description=firewall for openvpn
Enabled=yes
Code:
Variable=firewall_script
Value=/data/ipfw.rules
Type=rc
Description=firewall rules for openvpn
Enabled=yes
Reboot, once the machine is up, vpn in and try to access a machine on your LAN.