FreeBSD and NFS

abosio

Junior Member
Can anyone help me figure out the right settings for the VM networking configuration and FreeBSD exports so that I can mount NFS no matter where I am?

I am running Parallels Desktop for Mac on Leopard on a Macbook Pro.

When I am connected at the office to the LAN, it works with VM set to Shared networking in the following scenario.

Mac ifconfig:
Code:
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet6 fe80::21e:c2ff:fec3:c773%en1 prefixlen 64 scopeid 0x5 
	inet 10.7.50.58 netmask 0xffff0000 broadcast 10.7.255.255
	ether 00:1e:c2:c3:c7:73 
	media: autoselect status: active
	supported media: autoselect
fw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 4078
	lladdr 00:1f:f3:ff:fe:26:1b:1c 
	media: autoselect <full-duplex> status: inactive
	supported media: autoselect <full-duplex>
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
	inet6 fe80::21c:42ff:fe00:1%en2 prefixlen 64 scopeid 0x7 
	inet 10.211.55.2 netmask 0xffffff00 broadcast 10.211.55.255
	ether 00:1c:42:00:00:01 
	media: autoselect status: active
	supported media: autoselect
en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
	inet6 fe80::21c:42ff:fe00:0%en3 prefixlen 64 scopeid 0x8 
	inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255
	ether 00:1c:42:00:00:00 
	media: autoselect status: active
	supported media: autoselect

FreeBSD ifconfig:
Code:
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:1c:42:e6:45:1c 
	inet 10.211.55.6 netmask 0xffffff00 broadcast 10.211.55.255
	media: Ethernet autoselect (10baseT/UTP)
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
	inet6 ::1 prefixlen 128
	inet 127.0.0.1 netmask 0xff000000

FreeBSD /etc/exports:
Code:
/usr/home/abosio -maproot=abosio 10.211.55.2

Then I can connect with Command-K and Server Address: nfs://10.211.55.6/usr/home/abosio

When I am at home, I only seem to be able to get it to work if I switch to Host-only networking, at which point my VM can't see the internet, which is a problem. I believe the only difference at home is that I am connected to an Airport and my Mac IP becomes 192.168.1.x.

I have tried lots of different ways with Shared and Bridged Ethernet networking on the VM with no success.

If anyone has any ideas about how to make this work, that would be great.
 
I'll try and figure that out. But if it is letting it through at work on Shared setting, wouldn't it still let it through at home?

I discovered FreeBSD doesn't use iptables, but three other firewalls called ipfirewall (ipfw), ipfilter and pf.

But, I was talking about it with the office FreeBSD guy and he was saying there is no firewall-ing on in FreeBSD by default, you just have to enable the services. I had previously enabled nfs in /etc/rc.conf, which is why it works at all.
 
Last edited:
May be missed something, but is it working now,
I did FreeBSD installation and tested at home and work (at home I am using Airport, and installed at work the same connection) in my case it is working.
Please let me know, if problem is there
Just one thing.
I didn't touch anything after install, just allowed nfs export for user home
 
That figures. Are you using Shared or Bridged VM Network Configuration? Any other settings for the VM?

I haven't really done much else to FreeBSD that I can think of.

Can you post your FreeBSD /etc/rc.conf and /etc/exports?
 
Back
Top