Diego, I had the same problem (have a pfSense acting as VPN client, and
from the server I can ping the other side, from the lan I can't).
Here's what you have to do:
First, disable automatic outbound nat rules, or else this will only work
for a few seconds
Second, edit /tmp/rules.debug and add the line "nat on tun0 from
YOUR-LAN-SUBNET/24 to any -> (tun0)" bellow "Outbound nat rules"
Tird, save and run "/sbin/pfctl -f /tmp/rules.debug"
More info at http://cvstrac.pfsense.com/tktview?tn=1466
Post by Diego A. GomezPost by Chris BuechlerPost by Diego A. GomezHow I can to write a nat rule in command line?
you don't.
you can manually edit config.xml, add the rule, remove the
config.cache and reload the filter rules but that's not suggested
since you could blow up your config.
I need to write a nat rule for tun0 (VPN) interfase
Can I do it through config.xml?
Thanks!