Jailed Samba not getting broadcasts

Nejc Škoberne nejc at skoberne.net
Thu Apr 24 11:44:22 UTC 2008


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


More information about the freebsd-net mailing list