LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2003, 09:34 PM   #1
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Rep: Reputation: 16
samba and ip masquerading = iptable/routing conflict?


New day old isssue. I have an xp pro client recieving an internet connection from a rh9 server who id masquerading eth0's dynamic internet feed. eth1 (linux) to hub on to xp pro. We all ping host names and xp can use winvnc and see all files on the server. however samba is not functional. netwk neighborhood detcts no server shares. Could the iptable script that is use for forwarding have effected sambas ability to be seen. or (hopefully) is there some smb.conf entry off or lacking?
please help. I had a mcse buddy look @ it today. he thinks its the servers issue (of course he does). I m not sure though.
oh yea m$ hosts and lmhosts are conifiged as are the reg hacks + patch applied.
thanx
 
Old 04-25-2003, 09:39 PM   #2
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 16
# Samba config file. a jacob hack
# from UNKNOWN (127.0.0.1)
# Date: 2003/04/25 19:22:06
# server 192.168.1.1
#M$ 192.168.1.2

# Global parameters
[global]
workgroup = OURHOUSE
netbios name = LINUX
netbios aliases = linux$
server string = linux PDC
interfaces = eth1
bind interfaces only = Yes
encrypt passwords = Yes
update encrypted = Yes
hosts equiv = /etc/hosts.equiv
null passwords = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password %n\n *passwd: *all*authentication*tokens*updated*successfully*
passwd chat debug = Yes
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 50
name resolve order = lmhosts host hosts wins bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
logon script = /usr/local/samba/lib/netlogon/STARTUP.BAT
logon home = \\linux$\%U\.profile
domain logons = Yes
os level = 64
preferred master = Yes
domain master = Yes
wins support = Yes
guest account = SMBGUEST
admin users = randi jacob root
write list = randi jacob root
printer admin = randi jacob root
hosts allow = linux randi linux$

[netlogon]
path = /usr/local/samba/lib/netlogon
admin users = root jacob randi
write list = jacob root randi
printer admin = jacob root randi
read only = No
guest ok = Yes
hosts allow = 192.168.1.1 192.168.1.2/255.255.255.0 randi linux linux$

[public]
comment = Public Stuff
path = /home/public
admin users = randi,root
write list = jacob
force group = users
read only = No
create mask = 0775
force create mode = 0775
directory mask = 0775
force directory mode = 0775
guest ok = Yes
hide dot files = No

[homes]
comment = Home Directories
path = /home
valid users = %S
read only = No
create mask = 0600
directory mask = 0700
guest ok = Yes

[jacob]
path = /home/jacob
admin users = randi,jacob,root
read only = No
inherit permissions = Yes
guest ok = Yes
hide dot files = No
map system = Yes
map hidden = Yes
mangled names = No
locking = No

[profiles]
path = /etc/samba/profiles/
read only = No
create mask = 0600
directory mask = 0700
profile acls = Yes

[shared]
path = /shared
read only = No
guest ok = Yes

[randi]
path = /home/randi
admin users = randi,jacob,root
write list = root jacob
read only = No
guest ok = Yes

[documents]
path = /home/public/documents
guest ok = Yes

[commands]
path = /home/public/commands
guest ok = Yes
 
Old 04-25-2003, 09:46 PM   #3
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 16
SMB/CIFS clients, when they start up, may wish to locate an SMB/CIFS server. That is, they wish to know what IP number a specified host is using.

alnong those lines...

Amongst other services, nmbd will listen for such requests, and if its own NetBIOS name is specified it will respond with the IP number of the host it is running on. Its "own NetBIOS name" is by default the primary DNS name of the host it is running on, but this can be overridden with the -n option (see OPTIONS below). Thus nmbd will reply to broadcast queries for its own name(s). Additional names for nmbd to respond on can be set via parameters in the smb.conf(5) configuration file.

is this my problem? hmmm
 
Old 04-26-2003, 11:32 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Do you have WINS resolution active in the XP clients?
You won't see any browse list from the server until after each client has logged on to the PDC and the WINS server and delivered their share lists.

What do you get in the client if you "net view \\server" or "net view \\192.168.1.1" ?

Last edited by peter_robb; 04-26-2003 at 11:33 AM.
 
Old 04-26-2003, 02:19 PM   #5
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 16
well i got it working. but as is the case in so many of my new "projects" im not so clear about what it is that I did or the specific factor causing the problem. I believe that this M$ formatted logon.bat did the trick though. Its funny because i have read a tremendous number of smb.conf templetes and i had not seen any reference to the critical nature of this entry. perhaps this was a semi unique case it that the routing and iptables on the server where tweaked because of its role as ip masquerader or NAT.
At any rate I am trying to put all of the pieces together today so that I better understand various configurations and approaches to troubleshooting. thank for your help. without folks willing to help id be floundering.



@echo off

echo "Configuring time and date.."
NET TIME \\NETBIOSNAMESAMBASERVER\ /SET /YES

echo "setting up Network drives.."
NET USE Z: \\NETBIOSNAMESAMBASERVER\PUBLIC
NET USE P: \\NETBIOSNAMESERVER\HOMES
 
Old 04-26-2003, 03:11 PM   #6
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
When you do a 'net use' or 'net view', it forces a share transaction and then caches them locally in the client.

We get similar problems getting browse lists through vpn tunnels.
Talk directly and presto, the magic list suddenly appears...

Placing the WINS on the gateway usually fixes these problems though.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 NIC's stopped routing, iptable problem? stakhous Linux - Networking 7 04-10-2005 03:46 PM
iptable routing help DarkCaesar Linux - Networking 11 09-17-2004 05:54 AM
Ipchain ,iptable and ip Masquerading help!! hitesh_linux Linux - General 3 06-10-2003 10:47 AM
router not routing/masquerading. Why? Pcghost Linux - Networking 1 03-24-2003 10:30 AM
IP MAsquerading /Routing Problem krpotdar Linux - Networking 0 09-27-2001 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration