LinuxQuestions.org
Visit Jeremy's Blog.
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
  Search this Thread
Old 09-02-2001, 05:24 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
samba interfaces (yes, i'm a muppet)


OK, so i just looked at my samba logs and it seems people have been logging into my samba shares like wildfire for absolutely ages. bugger!

will setting 'allow hosts = 10.0.0.' restrict hosts soley to that subnet?

Also, I'm having trouble writing to vfat samba shares. I've just sussed out that the deal seems to be that i can copy anything up to abuot 200kb after that it's refuses. any help? PLEASE?!

Last edited by acid_kewpie; 09-02-2001 at 05:54 AM.
 
Old 09-02-2001, 07:14 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Always liked the muppets...

Yeah, your allow hosts line should sort out your problem, unless they start faking their IP addresses... you could always use IPTables/IPChains to firewall off your ports on your 'public' interface or look into the interfaces = option so you only listen on a single IP address for connections. My interfaces line is
Code:
interfaces = 192.168.1.2/24
so my box only listens on my 192.168.1.2 interface.

As for the copying - the only thing I can suggest is look at your socket option = line - I had a problem where I could copy smaller files but big transfers just died, I ended up using
Code:
socket options = TCP_NODELAY IPTOS_LOWDELAY
but I'd suggest you read the Samba documention on performance tuning to learn more about these options.

HTH

Jamie...
 
Old 09-03-2001, 11:29 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i tried what you suggested, and no joy. my smb.conf says

[global]
workgroup = swingyourpants
server string = simon
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = eth0
directory mask = 0777
create mask = 0777
log file = /var/log/samba/%m.log
default case = lower
preserve case = yes
mangle case = yes

[mp3]
path = /mp3
comment = mp3
writeable = yes
read only = 0
valid users = chris jon sarah aj

I can copy files in a dos terminal in windows, but windows explorer gives me headaches. any ideas? it really does seem to be all files over 200kb to a vfat (ONLY!) share get denied...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
interfaces littlemidget Linux - Networking 0 01-04-2005 02:15 PM
which muppet are u? Take the quiz mermxx General 8 12-20-2004 02:58 PM
2 inner interfaces d_kilshtein Linux - Networking 5 12-19-2004 08:06 AM
samba: interfaces entry viper1024768 Linux - Networking 2 12-19-2003 08:02 AM
bind named and samba to local interfaces kif Linux - Networking 4 02-07-2003 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:46 PM.

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