No - OpenVPN configs are only interpreted by OpenVPN not your shell.
Please excuse my ignorance, isn't client-nat an option of OpenVPN and environmental variables also part of OpenVPN? I'm confused by which part is the shell? The client-nat option is in the .ovpn config file.
The problem i'm trying to solve is that the client itself will always send traffic from itself through the tunnel using the TAP's IP (assigned from the Server DHCP) instead of the IP from the local network interface. Other devices on the network use the box with OpenVPN to as a gateway send traffic to us, but since their traffic has their actual network IP everything works great. Only the box running OpenVPN has the issue.
If i happen to know the IP that DHCP will assign to the TAP, and i put that in the client-nat option, everything works great. But the TAP assigned IP changes. So if i could tell the client-nat option the current TAP IP then life would be groovy.
Any suggestions?