(E-Mail Removed) writes:
>
> Can anyone point me to a good resource that describes what I need
> to do on both ends of the VPN (work and home machines) to enable
> this setup? If you're up to it, an explanatory post would be even
> better!
Actually, it should "just work". Presumably, the VPN server is
assigning you a "trusted" IP address on the workplace LAN. If the NFS
machines exporting the directories are set up to permit access to this
trusted IP address, you just need to mount the filesystems normally.
(Note that, as with any NFS mount, you need to either make sure your
home computer uses the same uids and gids as the servers, especially
for your username and group, or else set up some other mechanism to do
the mapping. See the "exports(5)" manpage under "User ID Mapping".)
The NATting isn't an issue. The VPN connection itself is being
NATted, but the NFS traffic is flowing over the tunnel without address
translation.
The iptables configuration might be an issue. You need to make sure
that the NFS traffic arriving from the various work servers won't be
refused. I haven't used Firestarter, so I can't give you very
concrete advice. You may need to list all the machines serving you
NFS directories as trusted hosts (or it may just work).
Once you've verified that you can manually mount and access NFS
directories when the VPN is up, you can automate the process by
sticking appropriate entries in "/etc/fstab":
workhost1:/home/jonesbr /the/local/mountpoint/one nfs noauto,intr 0 0
workhost2:/home/jonesbr /the/local/mountpoint/two nfs noauto,intr 0 0
The "noauto" option ensures they won't be automatically mounted on
bootup. The "intr" option ensures you can Ctrl-C out of a stuck file
operation if your VPN goes down unexpectedly.
Assuming your VPN is set up with a PPTP client that uses "pppd", the
scripts in "/etc/ppp/ip-up.d" and "/etc/ppp/ip-down.d" will be called
when the connection goes up or down, and you can stick files in there
to mount and unmount the directories. Since you only want these run
when the VPN goes up or down (and not when your PPPOE---which also
uses "pppd" and runs these scripts---goes up or down), you want to add
an identifying line to the "/etc/ppp/peers/xxx" file for your VPN:
ipparam workvpn
and then check for this value in your scripts:
/etc/ppp/ip-up.d/mounthome:
#!/bin/sh
if [ "$PPP_IPPARAM" = workvpn ]
then
mount /the/local/mountpoint/one
mount /the/local/mountpoint/two
fi
/etc/ppp/ip-down.d/mounthome:
#!/bin/sh
if [ "$PPP_IPPARAM" = workvpn ]
then
umount /the/local/mountpoint/one
umount /the/local/mountpoint/two
fi
Make sure to "chmod 755" these scripts.
--
Kevin <(E-Mail Removed)>