|
News,
Internal,
Projects,
Home Software, Support, Documentation |
|
안녕하세요 어려운 일이
있을 때마나 이곳을 통해 많은 도움을 받고 있습니다.
지난번에 ipfw 를 삼바와 같이 사용하는 경우에 대해 브로드케스트 되는 패킷을
받도록 설정하라고 도움을 주신분께 감사드립니다.
따로 메일을 보내드렸더니 반송되더라구요.
삼바를 이용해서 파일서버를 운영중인데 몇몇 사용자에게서 이상한 증상을
발견했습니다.
\\samba 또는 \\192.168.0.X 등을 주소창에 입력하여 파일서버에 로그인하고 나서 리스트에
출력된 폴더중 하나를 열려고 하면
10초 정도 반응이 없다가 열립니다. 그 이후에 다른 폴더를 열면 처음 열때와는
다르게 빠르게 열립니다.
오직 접속 후 처음으로 폴더를 열때만 10초 정도 지연되는데 이유를
모르겠습니다.
의심되는 원인은 그 사용자들이 모두 XP 를 사용한다는 것인데
2000 을 사용하는 경우에는 그런 문제가 없었습니다.
제 ipfw 룰과 smb.conf 설정에 일부를
첨부합니다.
또 아래와 같이 설정했을 경우 삼바에 "프린터 및 팩스"가 나타나던데 그것이
안보이게 하는 것도 궁금합니다.
아시는 분에 도움을 부탁드립니다.
00100 check-state
00200 allow tcp from 192.168.3.0/24 to any dst-port 139 in keep-state 00300 allow udp from 192.168.3.0/24 to any dst-port 138 in keep-state 00400 allow udp from 192.168.3.0/24 to any dst-port 137 in keep-state 00900 allow ip from me to any out keep-state 01200 deny ip from any to 127.0.0.0/8 01300 deny ip from 127.0.0.0/8 to any 65535 deny ip from any to any [global]
workgroup = pkpkp # server string is the equivalent of the NT
Description field
server string = File Server # This option is important for security. It
allows you to restrict
# connections to machines which are on your local network. The # following example restricts access to two C class networks and # the "loopback" interface. For more examples of the syntax see # the smb.conf man page hosts allow = 192.168.3. 192.168.4. 127. # If you want to automatically load your
printer list rather
# than setting them up individually then you'll need this load printers = no # you may wish to override the location of
the printcap file
; printcap name = /etc/printcap # on SystemV system setting printcap name to
lpstat should allow
# you to automatically obtain a printer list from the SystemV spool # system ; printcap name = lpstat # It should not be necessary to specify the
print system type unless
# it is non-standard. Currently supported print systems include: # bsd, sysv, plp, lprng, aix, hpux, qnx ; printing = bsd # Uncomment this if you want a guest
account, you must add this to /etc/passwd
# otherwise the user "nobody" is used ; guest account = pcguest # this tells Samba to use a separate log
file for each machine
# that connects log file = /var/log/log.%m # Put a capping on the size of the log files
(in Kb).
max log size = 50 # Security mode. Most people will want user
level security. See
# security_level.txt for details. security = user # Use password server option only with
security = server
# The argument list may include: # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] # or to auto-locate the domain controller/s # password server = * ; password server = <NT-Server-Name> # Note: Do NOT use the now deprecated option
of "domain controller"
# This option is no longer implemented. # You may wish to use password encryption.
Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. # Do not enable this option unless you have read those documents encrypt passwords = yes # Using the following line enables you to
customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ; include = /usr/local/etc/smb.conf.%m # Most people will find that this option
gives better performance.
# See speed.txt and the manual pages for details # You may want to add the following on a Linux system: # SO_RCVBUF=8192 SO_SNDBUF=8192 # socket options = TCP_NODELAY socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=4096 SO_RCVBUF=4096 # Configure Samba to use multiple
interfaces
# If you have multiple network interfaces then you must list them # here. See the man page for details. ; interfaces = 192.168.12.2/24 192.168.13.2/24 # Browser Control Options:
# set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply local master = no # OS Level determines the precedence of this
server in master browser
# elections. The default value should be reasonable ; os level = 33 # Domain Master specifies Samba to be the
Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job ; domain master = yes # Preferred Master causes Samba to force a
local browser election on startup
# and gives it a slightly higher chance of winning the election ; preferred master = yes # Enable this if you want Samba to be a
domain logon server for
# Windows95 workstations. ; domain logons = yes # if you enable domain logons then you may
want a per-machine or
# per user logon script # run a specific logon batch file per workstation (machine) ; logon script = %m.bat # run a specific logon batch file per username ; logon script = %U.bat # Where to store roving profiles (only for
Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username # You must uncomment the [Profiles] share below ; logon path = \\%L\Profiles\%U # Windows Internet Name Serving Support
Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server ; wins support = yes # WINS Server - Tells the NMBD components of
Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z # WINS Proxy - Tells Samba to answer name
resolution queries on
# behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. ; wins proxy = yes # DNS Proxy - tells Samba whether or not to
try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes, # this has been changed in version 1.9.18 to no. dns proxy = no # Client codepage settings
# for Greek users
; client code page=737 # for European users (Latin 1)
; client code page=850 # for European users (Latin 2)
; client code page=852 # for Icelandic users
; client code page=861 # for Cyrillic users
; client code page=866 # for Japanese Users
; client code page=932 ; coding system=cap # for Simplified Chinese Users
; client code page=936 ; coding system=cap # for Korean Users
client code page=949 ; coding system=cap # for Traditional Chinese Users
; client code page=950 ; coding system=cap #============================ Share
Definitions ==============================
[homes] comment = Home Directories browseable = no writeable = yes [sound]
comment = (등록인만 접근가능) path = /data/share/ public = no writeable = no write list = user1 user2 valid users = user3 user4 create mask = 0775 directory mask = 0775 |
_______________________________________________ 한국 FreeBSD 사용자 그룹(KFUG) questions 메일링 리스트 questions at kr.FreeBSD.org http://www.kr.FreeBSD.org/mailman/listinfo/questions
|
Copyright © 1998-2005 Korea FreeBSD Users Group. All rights reserved. webmaster at kr.FreeBSD.org $Date: 2004/01/14 05:01:18 $ |
|