[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:17520] ¥Ö¡¼¥È»þ¥Ç¡¼¥â¥óºï½ü¤Ë¤Ä¤¤¤ÆRe:Re: Samba ¥¤¥ó¥¹¥È¡¼¥ëÀßÄê



> Èõ¸ý¤Ç¤¹¡¥
> 
> # ¤¢¡¼¡¢SGI ¤Î¥Ñ¥¹¥ï¡¼¥É˺¤ì¤Æ¤·¤Þ¤Ã¤¿¤¤ ...
> 
> From: Shun-ichi TAHARA (Åĸ¶ ½Ó°ì)
>>> ¢¢ ̵ÍѤʥǡ¼¥â¥ó¤òµ¯Æ°¤·¤Ê¤¤¡£Î㤨¤Ð NFS
> ¤òÍøÍѤ·¤Ê¤¤¤Î¤Ê¤é
>>> ´ØÏ¢¤Î¥Ç¡¼¥â¥ó¤òµ¯Æ°¤µ¤»¤Ê¤¤¡£¤Ä¤Þ¤êÅŸ»¤òÅêÆþ¸å¤Ë¼«Æ°µ¯
Æ°¤¹
>>> ¤ë¥Ç¡¼¥â¥ó¤¬ÌµÍѤǤϤʤ¤¤«¤ò¹Í¤¨¤Þ¤¹¡£
>> 
>> ¤³¤Î¤Ø¤ó¤Ï¡¢¥á¥â¥ê¤¬¤É¤¦¤Î¤È¤¤¤¦¤è¤ê¤â¡¢¤à¤·¤í¥»¥­¥å¥ê¥Æ¥£
¤Ë´Ø¤¹¤ë¤â¤Î
>> ¤Ç¤¹¤Í¡£¸ý¤¬Â¿¤¤¤Û¤É·ê¤â³«¤­¤ä¤¹¤¤¤Ã¤Æ¤ä¤Ä¤Ç¤¹¡£
> 
> ³Î¤«¤Ë¡¢¥»¥­¥å¥ê¥Æ¥£¤Î´ÑÅÀ¤Ç¤È¤¤¤¦Ï䷤⤢¤ê¤Þ¤¹¤Í¡£

  ÂçÊѼºÎéÃפ·¤Þ¤·¤¿¡£
  ¤¢¤¯¤Þ¤Ç¤â¥í¡¼¥«¥ë¥ë¡¼¥ë¤Ç¤Î±¿ÍѤʤΤǤ¹¤¬¡¢Plamo3.0¤Ç¿·µ¬
¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿ºÝ¤Ë¡¢

¡Ú¼êË¡£±¡Û¡ÖºÇ¾®¸Â¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤Ã¤Æ¡¢É¬Íפʥѥ屡¼¥¸¤ò
¼êÆ°¤ÇÄɲ乤ë¡×

¤Î¤«¡¢¤½¤ì¤È¤â

¡Ú¼êË¡£²¡Û¡ÖºÇÂç¸Â¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤Ã¤Æ¡¢ÌµÍѤʥѥ屡¼¥¸¤ò
ºï½ü¤¹¤ë¤«¡¢»Ä¤·¤Æ¤ª¤¯¡£¸å¤«¤éɬÍפʤéºï½ü¤¹¤ë¡×

¤ò¹Í¤¨¤Æ¡¢ÅöÊý¤Î̵ÃΤµ¤¬ÂçȾ¤ÎÍýͳ¤Ç¤¹¤¬¡¢»þ´Ö¤Î;͵¤â¤¢¤ê¤Þ
¤»¤ó¤Ç¤·¤¿¤Î¤Ç¡¢¸å¼Ô¤ÎÊýË¡¤òºÎÍѤ·¤Æ¤Þ¤¹¡£
(X-Window̵¤·¤Î¥µ¡¼¥Ð¡¼Ìµ¿Íµ¡¤òÁÛÄꤷ¤Æ¤Þ¤¹¡£¤ÇKDE¤Þ¤Ç¤ÏÆþ¤ì
¤Æ¤Þ¤»¤ó) (^^)

¤Ç¡¢NFS¤À¤±¤Ç¤Ê¤¯¡¢´Á»ú¼­½ñ¥µ¡¼¥Ð¡¼Åù¤Î¾ïÃó¤âºï½ü¤·¤Þ¤·¤¿¡£

/etc/rc.d Æâ¤Î

rc.inet2 Æâ¤Çµ¯Æ°¤¹¤ë
  rpc.portmap ¤Ê¤É¤Î¡¢rpc.xxxx ´ØÏ¢¤Ï¥³¥á¥ó¥È²½¡£

init.d Æâ¤Çµ¯Æ°¤¹¤ë
  can35b2.r ¤È wnn.r ¤âµ¯Æ°¤µ¤»¤Ê¤¤¡£
  ¼Â¹Ô¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò³°¤·¤Þ¤·¤¿¡£

  ¾¤â¥×¥ê¥ó¥¿¡¼¤òÀܳ¤·¤Æ¤Þ¤»¤ó¤Î¤Ç¡¢lpd ¤âΩ¤Á¾å¤²¤Ê¤¤¡£¥Í
¥Ã¥È¥ï¡¼¥¯¥Õ¥¡¥¤¥ë¤Î¡¢rc.inet1
¤¬Â¸ºß¤¹¤ë¤Î¤Ç¡¢rc.inet2Æâ¤Î¡¢lpd
µ¯Æ°¤ò¥³¥á¥ó¥È²½¤Ç¤¹¤Í¡£

  ¾¤Ë̵¤«¤Ã¤¿¤«¤Ê¤¢¡Á¡£¤Ç¡¢µ¯Æ°Ä¾¸å¤Î¥×¥í¥»¥¹¤ò ps ax ¤¢¤¿¤ê
¤Ç³Îǧ¤¹¤ë¤È¡¢getty¤ò½ü¤¤¤Æ¡¢£±£´¥×¥í¥»¥¹¤«¤È»×¤¤¤Þ¤¹¡£(^^)
  ¤â¤Á¤í¤ó¡¢¤½¤³¤«¤éxntpd¡¢PostgreSQL¤Ê¤É¤¬µ¯Æ°¤µ¤ì¤Æ¹Ô¤¯»ö¤È
¤Ê¤ê¤Þ¤¹¡£

¤Ç¡¢¥á¥ó¥Æ¥Ê¥ó¥¹¤ÇNFS¥Þ¥¦¥ó¥È¥µ¡¼¥Ð¡¼¤Ë¤·¤¿¤¯¤Ê¤ì¤Ð¡¢/etc/rc.d 
²¼¤Ë¡¢rc.NFSD
¤Ê¤ë¥í¡¼¥«¥ë¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤ò½ñ¤¤¤Æ¤Þ¤¹¤Í¡£rc.inet2
¤«¤é¤Î¥Ñ¥¯¥ê¤Ç¤¹¡£(^^);

iptables ¥³¥Þ¥ó¥É¤Ï¡¢Plamo3.0¤Ç¤Ïɸ½à¤ÇÍî¤Á¤¿¤Î¤Ç¤·¤¿¤Ã¤±¡£¤Ç
¡¢iptables ¤ò̵¤¯¤¹¤«¡¢¼Â¹Ô¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤òºï¤ë¤È¡¢iptables¤Î
Ì¿Îá¤Ï¼Â¹Ô¤µ¤ì¤Þ¤»¤ó¡£(¸«¤ì¤ÐȽ¤ë¤¾!)
¤³¤³¤Ç¤Ï eth1 ¤«¤é¤ÎNFSÀܳ¤òµö²Ä¤·¤Æ¤Þ¤¹¡£

¤Ä¤Þ¤ê¡¢iptables ¤ÇÄ̲áµö²Ä¤ò¡¢rc.SAMBA ¤È¤«¤ò¼«Ê¬¤ÇºîÀ®¤·¤Æ
¤Þ¤¹¡£¤ª¤Ã¤È¡¢Ä̲áµö²Ä¤ò¼è¤ê¾Ã¤¹¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ë¤â¤Ê¤ë¤è¤¦
¤Ë²þÄû¤·¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡ª(^^);

#!/bin/sh
#
# rc.inet2      This shell script boots up the entire INET
system.
#               Note, that when this script is used to also
fire
#               up any important remote NFS disks (like the
/usr
#               distribution), care must be taken to actually
#               have all the needed binaries online _now_ ...
#
# Author:       Fred N. van Kempen,
<waltje@uwalt.nl.mugnet.org>
#
IPTABLES='/usr/sbin/iptables'
if [ -x $IPTABLES ]; then NFS_PORT='--port 32767' ; fi

# Constants.
NET="/usr/sbin"
IN_SERV="lpd"
LPSPOOL="/var/spool/lpd"

echo -n "Starting daemons:"

# Start the SUN RPC Portmapper.
if [ -f ${NET}/rpc.portmap ]; then
   echo -n " portmap"
   ${NET}/rpc.portmap
fi

# # Start the various SUN RPC servers.
if [ -f ${NET}/rpc.portmap ]; then
  # Start the NFS server daemons.
  if [ -f ${NET}/rpc.mountd ]; then
    echo -n " mountd"
    ${NET}/rpc.mountd $NFS_PORT
  fi
  if [ -f ${NET}/rpc.nfsd ]; then
    echo -n " nfsd"
    ${NET}/rpc.nfsd
  fi
  # Fire up the PC-NFS daemon(s).
  if [ -f ${NET}/rpc.pcnfsd ]; then
    echo -n " pcnfsd"
    ${NET}/rpc.pcnfsd ${LPSPOOL}
  fi
  if [ -f ${NET}/rpc.bwnfsd ]; then
    echo -n " bwnfsd"
    ${NET}/rpc.bwnfsd ${LPSPOOL}
  fi
fi # Done starting various SUN RPC servers.

# Done!

# iptables !
if [ -x $IPTABLES ]; then
$IPTABLES -t filter -A INPUT -i eth1 -p 6 --dport 32765:32768
-j ACCEPT
$IPTABLES -t filter -A INPUT -i eth1 -p 17 --dport 32765:32768
-j ACCEPT
$IPTABLES -t filter -A INPUT -i eth1 -p 6 --dport 2049 -j
ACCEPT
$IPTABLES -t filter -A INPUT -i eth1 -p 17 --dport 2049 -j
ACCEPT
$IPTABLES -t filter -A INPUT -i eth1 -p 6 --dport 111 -j ACCEPT
$IPTABLES -t filter -A INPUT -i eth1 -p 17 --dport 111 -j
ACCEPT
#$IPTABLES -t filter -A INPUT -s 0/0 -d 0/0 -p 6 -j DENY --syn
--log-level 5
#$IPTABLES -t filter -A INPUT -s 0/0 -d 0/0 -p 17 -j DENY
--log-level 5
fi


__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/

References
[plamo:17517] Re: Samba¥¤¥ó¥¹¥È¡¼¥ëÀßÄê, fb9c-hgc

[¸¡º÷¥Ú¡¼¥¸] [¥á¡¼¥ë°ìÍ÷]
Plamo ML ¸ø³«¥·¥¹¥Æ¥à