Jailed Samba not getting broadcasts
Dewayne Geraghty
dewayne_freebsd at yahoo.com
Thu Apr 24 09:50:00 UTC 2008
Nejc koberne <nejc at 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.
More information about the freebsd-net
mailing list