Date: Thu, 24 Apr 2008 11:27:05 +0200 From: =?windows-1252?Q?Nejc_=8Akoberne?= <nejc@skoberne.net> To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> Cc: freebsd-net@freebsd.org Subject: Re: Jailed Samba not getting broadcasts Message-ID: <48105269.4040303@skoberne.net> In-Reply-To: <20080424084727.G66744@maildrop.int.zabbadoz.net> References: <254549.19682.qm@web46005.mail.sp1.yahoo.com> <481047FF.4080707@skoberne.net> <20080424084727.G66744@maildrop.int.zabbadoz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> 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 <full-duplex>) status: active Jail: rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> ether 00:40:f4:27:7e:a8 inet 192.168.15.201 netmask 0xffffffff broadcast 192.168.15.201 media: Ethernet autoselect (100baseTX <full-duplex>) 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48105269.4040303>