FreeBSD 7.0 jail and Samba 3
Johan Hendriks
Johan at double-l.nl
Thu Apr 17 10:46:40 UTC 2008
>> I am trying to get latest Samba running under FreeBSD 7.0 jail
>> environment. I happen
>> to have problems with "visibility" of the Samba server on the network -
>> I cannot connect
>> to it using its NetBIOS name. To be able to run nmbd, I have to use the
>> "interfaces"
>> parameter in smb.conf like this:
>>
>> interfaces = 192.168.1.2/24 127.0.0.1
>>
>> If I don't set this, nmbd fails to run (it says it cannot find
>> interfaces). However, if
>> I try the identical configuration on a "non-jailed" Samba (on a FreeBSD
>> 6.2 though) it
>> runs seamlessly - I can connect to it from another box by running
>> "smbclient //server/share".
>>
>> Is there any way to make NetBIOS work for jailed Samba server on FreeBSD
>> 7.0?
>Is there really nobody who could help me out here?
>Thanks,
>Nejc
I think you will need to remove 127.0.0.1
Just use 192.168.1.2/24
There is no 127.0.0.1 on a jailed system
This is the output of ifconfig on my jail server
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:19:bb:d1:66:06
inet 192.168.100.200 netmask 0xffffff00 broadcast 192.168.100.255
inet 192.168.100.201 netmask 0xffffffff broadcast 192.168.100.201
inet 192.168.100.202 netmask 0xffffffff broadcast 192.168.100.202
inet 192.168.100.203 netmask 0xffffffff broadcast 192.168.100.203
inet 192.168.100.204 netmask 0xffffffff broadcast 192.168.100.204
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
pflog0: flags=0<> metric 0 mtu 33204
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
and here it is from my jailed server
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:19:bb:d1:66:06
inet 192.168.100.202 netmask 0xffffffff broadcast 192.168.100.202
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
pflog0: flags=0<> metric 0 mtu 33204
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
as you can see the interface lo0 is there but no ip 127.0.0.1
regards,
Johan Hendriks
Double L Automatisering
More information about the freebsd-questions
mailing list