Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2008 02:37:30 -0700 (PDT)
From:      Dewayne Geraghty <dewayne_freebsd@yahoo.com>
To:        Nejc "Škoberne" <nejc@skoberne.net>, "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Jailed Samba not getting broadcasts
Message-ID:  <249262.97716.qm@web46015.mail.sp1.yahoo.com>
In-Reply-To: <48105269.4040303@skoberne.net>

next in thread | previous in thread | raw e-mail | index | archive | help


Nejc Škoberne <nejc@skoberne.net> wrote:    Hi,

> so what kind of setup do you have?

Sorry, forgot to provide it. I am running latest Samba 3 on FreeBSD 7.0 server.
You can get my smb.conf here:

http://stuff.skoberne.net/smb.conf (without "remote" entries suggested by Dewayne)

My rc.conf (relevant lines):

ifconfig_rl0="192.168.15.198 netmask 255.255.255.0"
jail_enable="YES"
jail_sysvipc_allow="YES"
jail_socket_unixiproute_only="NO"

#=---------------------------- Jails ---------------------------=#
jail_list="samba"
#=--------------------------------------------------------------=#
jail_samba_rootdir="/usr/jail/samba"
jail_samba_hostname="samba.domain.local"
jail_samba_ip="192.168.15.201"
jail_samba_interface="rl0"
jail_samba_devfs_enable="YES"
jail_samba_procfs_enable="YES"
jail_samba_devfs_ruleset="devfsrules_samba_jail"
#=--------------------------------------------------------------=#

My /etc/devfs.rules:

[devfsrules_samba_jail=6]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path bpf0 unhide

> is the jail IP on a real interface or on loopback?

Real interface. "rl0" in my case.

> is the jail IP an alias or a primary IP?

Alias - how to make it primary IP?

> what netmask does ifconfig show for this IP?

Host:

rl0: flags=8843 metric 0 mtu 1500
options=8
ether 00:40:f4:27:7e:a8
inet 192.168.15.198 netmask 0xffffff00 broadcast 192.168.15.255
inet 192.168.15.201 netmask 0xffffffff broadcast 192.168.15.201
media: Ethernet autoselect (100baseTX )
status: active

Jail:

rl0: flags=8843 metric 0 mtu 1500
options=8
ether 00:40:f4:27:7e:a8
inet 192.168.15.201 netmask 0xffffffff broadcast 192.168.15.201
media: Ethernet autoselect (100baseTX )
status: active

Hmm, I guess this is the reason why Samba doesn't see the broadcasts - the mask
in the jail is /32, not /24. I read somewhere this cannot be changed?

> Are you running single-IP jail as shipped with FreeBSD, or are you
> running with patches?

Single ip jail. No patches.

Thanks a lot,
Nejc
_______________________________________________

   
   
  
I think you've answered the question.  Thanks Bjorn, I setup samba within a jail a few years ago and had forgotten the interface setup.  Nejc, this is my interface config, the jail is at 10.1.2.46
  inside: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 10.1.2.2 netmask 0xffff0000 broadcast 10.1.255.255
        inet 10.1.5.88 netmask 0xffffffff broadcast 10.1.5.88
        inet 10.1.2.46 netmask 0xffffff00 broadcast 10.1.2.255
        ether 00:40:63:e4:5b:50
        media: Ethernet autoselect (1000baseTX <full-duplex>)
  Enjoy :)

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?249262.97716.qm>