Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2008 13:44:10 +0200
From:      =?windows-1252?Q?Nejc_=8Akoberne?= <nejc@skoberne.net>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, freebsd-net@freebsd.org
Subject:   Re: Jailed Samba not getting broadcasts
Message-ID:  <4810728A.8090902@skoberne.net>
In-Reply-To: <48106E76.7030503@quip.cz>
References:  <254549.19682.qm@web46005.mail.sp1.yahoo.com>	<481047FF.4080707@skoberne.net>	<20080424084727.G66744@maildrop.int.zabbadoz.net>	<48105269.4040303@skoberne.net> <48106E76.7030503@quip.cz>

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

> Try not to use jail_samba_interface="rl0" for "auto aliasing" and add
> 
> ifconfig_rl0_alias0="inet 192.168.15.201 netmask 255.255.255.0"
> 
> This should give you
> inet 192.168.15.201 netmask 0xffffffff broadcast 192.168.15.255
> in the ifconfig output (after restart)

Okay. Now I can see this from inside the 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 0xffffff00 broadcast 192.168.15.255
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active

and this on the 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 0xffffff00 broadcast 192.168.15.255
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active

So the netmask is correct now, I guess. But nevertheless, it still doesn't work.
I simply cannot access my Samba directly by name (\\freebsd) but I can access it
via IP (\\192.168.15.201) normally.

My rc.conf is now as follows (the relevant lines):

ifconfig_rl0="192.168.15.198 netmask 255.255.255.0"
ifconfig_rl0_alias0="192.168.15.201 netmask 255.255.255.0"
defaultrouter="192.168.15.1"
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.infrax.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"
#=--------------------------------------------------------------=#

Any other ideas?

Thanks,
Nejc



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