Subject : Solaris 2.X¿¡¼­ ¾î¶»°Ô IP forwardingÀ» disable ÇÏ´À°¡?

Description :


DETAIL DESCRIPTION:

ndd parameterÁß ip_forwarding¿¡ ´ëÇؼ­ ÀÌÇØÇÏ¿©¶ó.

Solaris 2.4 system¿¡¼­ 2°³ÀÇ network card°¡ ÀÖ´Ù°í ÇÏÀÚ,
Çϳª´Â ethernetÀÌ°í ´Ù¸¥ Çϳª´Â fddi card¶ó°í ÇÏÀÚ. 2°³ÀÇ network°£¿¡
ip forwardingÀ» disableÇϱ⸦ ¿øÇÑ´Ù.

ndd parameterÁß ip_forwardingÀÇ °ªÀ» ¾Ë¾Æº¸ÀÚ, ndd /dev/ip ip_forwarding¸¦
¼öÇàÇÏ¸é °ªÀÌ ³ª¿Â´Ù.

´ÙÀ½Àº Solaris MachineÀ» Router·Î ÀÛµ¿¾ÈµÇ°Ô ÇÏ´ÂÁö¸¦ ±â¼úÇÏ¿´´Ù.
------------------------------------------------------

. Solaris 2.4 ÀÌÇÏ versionÀÇ °æ¿ì

´ç½ÅÀÇ Àåºñ¸¦ multiple-interface machine·Î Router·Î ¿î¿ëÇÏ°í ½ÍÁö ¾Ê´Ù¸é
/etc/init.d/inetinitÀ» ¼öÁ¤ÇÒ ÇÊ¿ä°¡ ÀÖ´Ù. ´ÙÀ½ µÎ lineÀ» ã¾Æ º¸¾Æ¶ó.

  numifs=`ifconfig -au | grep inet | wc -l`
  numptptifs=`ifconfig -au | grep inet | egrep -e '-->' | wc -l`

±×¸®°í ´ÙÀ½ line¿¡ ´ÙÀ½°ú °°ÀÌ Ãß°¡Ç϶ó.

  numifs=2
  numptptifs=0

RebootÇ϶ó. ±×·¯¸é ´ÙÀ½ºÎÅÏ PacketÀ» routeÇÏÁö ¾ÊÀ» °ÍÀÌ´Ù.

. Solaris 2.5 ÀÌ»ó versionÀÇ °æ¿ì

ÇÑ°á ´õ °£´ÜÇÏ´Ù. ´ÙÀ½°ú °°ÀÌ ÇÑ´ÙÀ½ reboot Ç϶ó.

  % touch /etc/notrouter


. ÀÌ»óÀº 2°³ ÀÌ»óÀÇ Network card°¡ ÀÖ´Â Solaris 2.4, Solaris 2.5 ¿¡¼­ 
  °¢°¢ PacketÀ» routeÇÏÁö ¾Ê´Â Àåºñ·Î settig Çϴ¹ýÀ» ±â¼úÇÏ¿´´Ù.
  ½ÇÁ¦·Î À̻󿡼­ ±â¼úÇÏ¿´´ø ¹æ¹ýÀº rc script¿¡¼­ ¿¹¸¦µé¸é ´ÙÀ½°ú °°Àº
  ¿¹¸¦ ¼öÇàÇϱâ À§ÇÑ °ÍÀÌ´Ù.
  ndd -set /dev/ip ip_forwarding 0
  
  ip_forwardingÀÇ setting °ªÀ» ¾Ë¾Æº¸ÀÚ.

  0        Never Forward
  1        Always Forward
  2        Only forward when two or more interfaces are up

  °á°úÀûÀ¸·Î À§ÀÇ ¿¹¿¡¼­ ¹¦»çÇÑ ³»¿ëÀº ip_forwardingÀÇ °ªÀ» 1¿¡¼­ 0À¸·Î
  ¹Ù²ÞÀ¸·Î¼­ routingÀ» ¾ïÁ¦ÇÏ´Â °ÍÀÌ´Ù.


Revision History

ÀÛ¼ºÀÏÀÚ : 96.08.30
ÀÛ¼ºÀÚ : À̹ÎÈ£

¼öÁ¤ÀÏÀÚ :
¼öÁ¤ÀÚ :