Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Ian Smith
On Thu, 24 Apr 2008, [windows-1252] Nejc Škoberne wrote: > > I can't help wondering what would happen if you assigned the single jail > > IP to be the subnet's broadcast address, in this case 192.168.15.255 ? > > You mean if I did this: > > jail_samba_ip="192.168.15.255" > > ? I can't e

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Nejc Škoberne
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 0x broadcast 192.168.15.255 in the ifconfig output (after restart) Okay. Now I can see this fr

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Miroslav Lachman
Nejc Škoberne 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): if

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Nejc Škoberne
Hey, I can't help wondering what would happen if you assigned the single jail IP to be the subnet's broadcast address, in this case 192.168.15.255 ? You mean if I did this: jail_samba_ip="192.168.15.255" ? I can't even ssh to the host then? And it doesn't work. Nejc

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Ian Smith
On Thu, 24 Apr 2008, [windows-1252] Nejc Škoberne wrote: > > 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 0xff00 broadcast 192.168.15.255 >

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Dewayne Geraghty
Nejc Škoberne <[EMAIL PROTECTED]> 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 (re

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Nejc Škoberne
Hey, 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 mtu 1500 options=1b inet 10.1.2.2 netmask 0x broa

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Nejc Škoberne
Hey, The firewalling allows UDP137,138; TCP 139,445; and WINS is defined on the client end; so name resolution occurs via the PDC. I'm afraid that Maybe this is the reason why it works for you. I don't want to use WINS, only NetBIOS broadcasts. Windows machines have no WINS server set up. T

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Nejc Škoberne
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

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Bjoern A. Zeeb
On Thu, 24 Apr 2008, Nejc ?koberne wrote: Hi, .. seem to be ignored by samba (although I can see them with tcpdump). This works for you? so what kind of setup do you have? is the jail IP on a real interface or on loopback? is the jail IP an alias or a primary IP? what netmask does ifconfig

Re: Jailed Samba not getting broadcasts

2008-04-24 Thread Nejc Škoberne
Hello Dewayne, I have encountered a similar problem, when I configured a SAMBA PDC over the wan (through IPSEC of course). You might like to consider using these in your smb.conf: hosts allow = 10.1. 10.2. remote announce = 10.1.1.255 10.2.1.255 remote browse sync = 10.1.1.255 10.2.1.255 I

Jailed Samba not getting broadcasts

2008-04-24 Thread Nejc Škoberne
Hello, I am trying to run Samba server inside a jail and use NetBIOS broadcasts. Is there any way to let Samba "see" the broadcasts even if it is running in a jail? One guy at freebsd-questions hinted that jailed processes cannot see the broadcasts. If this is not possible at the moment, how a