Next Previous Contents

9. Source NAT »P¸ô¥Ñ

¦pªG±z­n°µ SNAT¡M±z·|·Q­n½T©w¸g¹L SNAT «Ê¥]©Ò¶Çµ¹ªº¥D¾÷·|±N¦^À³°e¦^µ¹ NAT ¥D¾÷¡C¨Ò¦p¡M¦pªG±z¬M¹ï¬Y¨Ç¶Ç¥X«Ê¥]¨ì¨Ó·½¦a§} 1.2.3.4 ¤§¤W¡M¨º»ò¥ ³¡ªº¸ô¥Ñ¾¹´N¥²¶·ª¾¹D­n±N¦^À³«Ê¥](¥Øªº¦a¬° 1.2.3.4 )°e¦^µ¹¸Ó¥D¾÷¡C³o¥i¥H¥Î¦p¤U¤èªk°µ¨ì¡R

  1. ¦pªG±z­n¦b¥D¾÷¦Û¤vªº¦a§}(¸ô¥Ñ©M¨ä¥¦©Ò¦³¹B§@¬Ò¥¿±`)¤W­±°µ SNAT¡M±zµL»Ý°µ¥ô¦ó°Ê§@¡C
  2. ¦pªG±z­n¦b¤@­Ó¦b¥»¾÷ºô¸ô¤W©|¥¼¨Ï¥Îªº¦a§}°µ SNAT(¨Ò¦p¡M¬M¹ï¨ì¦b 1.2.3.0/24 ºô¸ô¤Wªº¤@­Ó¥i¥Î IP 1.2.3.99)¡M±zªº NAT ¥D¾÷´N»Ý­n¦^À³Ãö©ó¸Ó¦a§}ªº ARP ½Ð¨D¡M¤@¦p¥¦¦Û¤v¥»¨­ªº¤@¼Ë¡R³Ì²³æªº¤èªk´N¬O«Ø¥ß IP alias¡M¨Ò¦p¡R
    # ip address add 1.2.3.99 dev eth0
    
  3. ¦pªG±z­n¦b¤@­Ó§¹¥þ¤£¦Pªº¦a§}¤W°µ SNAT¡M±z´N­n½T©w SNAT «Ê¥]©è¹Fªº¾÷¾¹¯à°÷¸ô¥Ñ¦^¸Ó NAT ¥D¾÷¡C¦pªG NAT ¥D¾÷¬O¥¦­Ìªº¹w³]¹h¹D¾¹ªº¸Ü¡M¬O¥i¥H°µ¨ìªº¡M§_«h¡M±z´N­n¼s§i(advertize )¤@­Ó¸ô¥Ñ(¦pªG¶]¸ô¥Ñ¨ó©wªº¸Ü)¡M©Î¬O¤â¤uªº¦b¨C¤@¥x°Ñ»P¾÷¾¹¤W¼W¥¸ô¥Ñ¡C


Next Previous Contents