LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-14-2008, 03:59 PM   #1
keysorsoze
Member
 
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295

Rep: Reputation: 30
Samba not fowarding wins request so use iptables?


Hi! I am having a problem with configuring samba to forward wins traffic to another segment on the network. The box in question is on a segment on the DMZ and we need to have it forward all wins destined for port 137 UDP to a server on the internal LAN. What I have read is that WINS is does not traverse through routers. I learned this by doing a

nmblookup mydomain

and discovered it was sending traffic to the broadcast address on my subnet of 172.168.0.255 and timing out. My question is how do we forward Wins traffic from one segment to another?

I put the following line in my smb.conf

wins support = no
wins server = 192.168.5.3

Which I thought was to force all wins traffic to not go to the broadcast address but send directly to the wins server at 192.168.5.3. However no traffic traverses.

One solution I was thinking of was to write an iptables rule on the local host that says any traffic going to the broadcast address 172.168.0.255 with UDP port 137 send to our wins server at 192.168.5.3 port UDP 137.

Is this possible and widely done? I can't seem to get samba to forward all Wins request to another server and have been banging away for a couple of hours. Any insight into this problem would be appreciated.

Thanks
 
Old 08-15-2008, 12:16 PM   #2
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 133

Rep: Reputation: 15
Hello,

this is standard behaviour of MS-OS if not otherwise told they will broadcast for the netbios-name.

Add to your DHCP-Configuration
option netbios-node-type 8; and
option netbios-name-servers 192.168.5.3;

with this configuration your MS-Clients will ask 192.168.5.3 and if this gives no result they will broadcast.

HTH
 
Old 08-15-2008, 01:10 PM   #3
keysorsoze
Member
 
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295

Original Poster
Rep: Reputation: 30
Karpi, thanks for the reply but this is a Linux server on the DMZ, its trying to perform a query to a Windows WINS server using samba-client. I cannot get the Wins traffic to go directly to a Wins server it continues to broadcast looking for a WINS server on the DMZ subnet but doesn't get a response.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables fowarding ComputerHermit_ Linux - Security 7 08-06-2007 12:32 PM
WINS on Samba humbletech99 Linux - Networking 1 05-23-2006 09:58 PM
samba / wins /netbios ulaoulao Linux - Networking 13 08-26-2004 06:52 AM
samba and wins hoover93 Linux - Networking 0 08-16-2004 04:25 PM
Samba WINS Server rmarvin Linux - Networking 0 10-24-2003 12:35 PM


All times are GMT -5. The time now is 01:45 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration