¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,355°Ç
   
iptables/ufw comment
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2018-06-28 (¸ñ) 13:23 Á¶È¸ : 5783
±ÛÁÖ¼Ò :
                                
https://www.cyberciti.biz/faq/how-to-add-comments-to-iptables-rules-on-linux/

ÆÄÀÏ·Î iptables ruleÀ» °ü¸®ÇÏ´Ùº¸¸é »ç¿ë¿ëµµ ¹× ¸ñÀû¿¡ µû¶ó ÁÖ¼®ÀÌ ÇÊ¿äÇÒ °æ¿ì°¡ Àִµ¥ commnet ¸ðµâÀ» È°¿ëÇÏ¸é °ü¸®Çϱ⠿ëÀÌÇÏ´Ù.
¹°·Ð ´ëºÎºÐÀÇ °æ¿ì iptable ruleÀ» ÆÄÀÏÇüÅ·Π¿î¿µÇÏ´õ¶óµµ ÆÄÀϳ» "#" ÁÖ¼®Ã³¸®Çؼ­ °ü¸®ÇÏ°Ô µÇ´Âµ¥ ÀÌ·²°æ¿ì iptables-save ½Ã ÆÄÀÏÀ» µ¤¾î¾º¿ö¹ö¸®±â¿¡ Ãßõµå¸®´Â ¹æ¹ýÀº ¾Æ´Ï´Ù.

comment ¸ðµâÀ» È°¿ëÇÏ¿© ÁÖ¼®À¸·Î ±ÔÄ¢°ü¸®

iptables ±ÔÄ¢ ÁÖ¼®°ü¸® ¸ðµâ comment 
# iptables -I INPUT -m comment --comment "ALL INPUT TRAFFIC"

# iptables -vnL
pkts bytes target     prot opt in     out     source               destination         
    4   184            all  --  *      *       0.0.0.0/0            0.0.0.0/0            /* ALL INPUT TRAFFIC */
...............................    




man iptables-extensions
   comment
       Allows you to add comments (up to 256 characters) to any rule.
       --comment comment
       Example:
              iptables -A INPUT -i eth1 -m comment --comment "my local LAN"


ÇöÀç ¿î¿µÁßÀÎ ±ÔÄ¢¿¡ ÁÖ¼®À» Ãß°¡ÇÏ´Â ¹æ¹ý
-R replace È°¿ë
iptables -R <chain> <rulenum> <rule-specification>
   -R, --replace chain rulenum rule-specification
Replace a rule in the selected chain.  
If the source and/or destination names resolve to multiple addresses, the command will fail.  
Rules are numbered starting at 1.



Âü°í URl 

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.