我用FreeBSD架設Samba
/var/log/messages常跳出下列訊息
Mar 7 12:05:01 chababa2 smbd[2604]: [2012/03/07 12:05:01.912040, 0] lib/access.c:338(allow_access)
Mar 7 12:05:01 chababa2 smbd[2604]: Denied connection from 50.113.134.42 (50.113.134.42)
Mar 7 12:06:16 chababa2 smbd[2605]: [2012/03/07 12:06:16.986313, 0] printing/print_cups.c:110(cups_connect)
Mar 7 12:06:16 chababa2 smbd[2605]: Unable to connect to CUPS server localhost:631 - No such file or directory
Mar 7 12:06:16 chababa2 smbd[1823]: [2012/03/07 12:06:16.987228, 0] printing/print_cups.c:487(cups_async_callback)
Mar 7 12:06:16 chababa2 smbd[1823]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Mar 7 12:07:32 chababa2 smbd[2655]: [2012/03/07 12:07:32.133499, 0] printing/print_cups.c:110(cups_connect)
Mar 7 12:07:32 chababa2 smbd[2655]: Unable to connect to CUPS server localhost:631 - No such file or directory
Mar 7 12:07:32 chababa2 smbd[2653]: [2012/03/07 12:07:32.134778, 0] printing/print_cups.c:487(cups_async_callback)
網路上搜尋的結果
修改/usr/local/etc/smb.conf
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
# load printers = yes
load printers = no
# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
; printing = cups
printing = bsd
存檔後,samba重新啟動即可
===================================
防火牆上建議設下面規則,防止外面想連進來
deny ip from any to me dst-port 139,445 via tun0