when i startup samba it seems like nmbd is trying to use the wrong from-address of the interface its sending packets from im using samba 2.2.1a my internal network is eth0 with subnet 192.168.0.0/24 and the external network is eth1 with subnet 10.252.35.0/24 here is a pice of my logs: nmbd[2818]: [2001/09/22 16:11:14, 0] libsmb/nmblib.c:send_udp(776) kernel: IN= OUT=eth1 SRC=192.168.0.1 DST=10.2.1.2 LEN=96 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=137 DPT=137 LEN=76 nmbd[2818]: Packet send failed to 10.2.1.2(137) ERRNO=Operation not permitted (10.2.1.2 is my wins server and 192.168.0.1 is the addres of eth0) why is nmbd using the wrong source ip? if i set interfaces= line in smb.conf to eth1 nmbd uses the right from address, but thats not a good solution have i missed something in the config file? i think nmbd in samba 2.0.x did the same thing
I am no expert on this but no one has responded yet so I will take a shot: It says that the source IP is 192.168.0.1. So, that is your samba machine I suppose. It says the destination is 10.2.1.2. That is on the external network I conclude. What IP are you known by to the external network, eth1? This says you failed to send a packet from 192.168.0.1, from eth1, which sounds right, since that is a private number. What do you see with ifconfig? Can you interact with your external network properly otherwise? BTW, is samba working properly despite this error message? Joel On Sun, Sep 23, 2001 at 09:13:37PM +0200, Torbj?rn Jansson wrote:> when i startup samba it seems like nmbd is trying to use the wrong > from-address of the interface its sending packets from > > im using samba 2.2.1a > my internal network is eth0 with subnet 192.168.0.0/24 and the external > network is eth1 with subnet 10.252.35.0/24 > here is a pice of my logs: > > nmbd[2818]: [2001/09/22 16:11:14, 0] libsmb/nmblib.c:send_udp(776) > kernel: IN= OUT=eth1 SRC=192.168.0.1 DST=10.2.1.2 LEN=96 TOS=0x00 PREC=0x00 > TTL=64 ID=0 DF PROTO=UDP SPT=137 DPT=137 LEN=76 > nmbd[2818]: Packet send failed to 10.2.1.2(137) ERRNO=Operation not > permitted > > (10.2.1.2 is my wins server and 192.168.0.1 is the addres of eth0) > > why is nmbd using the wrong source ip? > if i set interfaces= line in smb.conf to eth1 nmbd uses the right from > address, but thats not a good solution > have i missed something in the config file? >
> -----Original Message----- > From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On > Behalf Of Joel Hammer > Sent: Monday, September 24, 2001 4:36 AM > To: samba@lists.samba.org > Subject: Re: nmbd tries to send from wrong ip > > > I am no expert on this but no one has responded yet so I will take a shot: > It says that the source IP is 192.168.0.1. So, that is your samba > machine I > suppose. > It says the destination is 10.2.1.2. That is on the external network I > conclude. > What IP are you known by to the external network, eth1? This says > you failed to > send a packet from 192.168.0.1, from eth1, which sounds right, > since that is a private > number. > What do you see with ifconfig? > Can you interact with your external network properly otherwise? > BTW, is samba working properly despite this error message? > Joeli have a filter in iptables on eth1 that denys everyone trying to send packets that has a source-ip from my internal network, thats why it says "operation not permitet" my external ip on eth1 is 10.252.32.x i can a access hosts on my external network with no problem i can also access the internet with no problems i can access shares on samba, but nmbd wont register as a domain masterbrowser unless i force it to use only the external eth1 interface