ipchains.

iPchains´Â PerlÀ» ÅëÇØ iPchains¸¦ ÀÛ¼ºÇÏ°í Á¶ÀÛÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

ipchains. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Jessica Quaintance
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~jessicaq/IPChains-0.5/IPChains.pm

ipchains. ű×


ipchains. ¼³¸í

IPChains´Â PerlÀ» ÅëÇØ iPchains¸¦ ¸¸µé°í Á¶ÀÛÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. iPchains´Â Perl.Synopsisuse iPchains¸¦ ÅëÇØ iPchains¸¦ ÀÛ¼ºÇÏ°í Á¶ÀÛÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. $ fw = ipchains-> new (-option => °ª, ...); $ FW-> APPEND ( 'üÀÎ');ÀÌ ¸ðµâÀº Paul "Rusty"·¯¼¿ (http://www.rustcorp.com/linux/ipchains/)ÀÇ Paul "Userpace À¯Æ¿¸®Æ¼¿¡ ´ëÇÑ IPChains (8) ÀÎÅÍÆäÀ̽º ¿ªÇÒÀ»ÇÕ´Ï´Ù. PerlÀ» ÅëÇØ ´Ü¼øÈ­ µÈ »ç¿ëÀÚ ÀÎÅÍÆäÀ̽º°¡ÀÖ´Â ¿ø·¡ ÄÚµåÀÇ ¸ðµç ±â´ÉÀ» Æ÷ÇÔÇÏ·Á°í ½ÃµµÇÕ´Ï´Ù. ¶ÇÇÑ ·Î±× ÆÄ½Ì ¼³ºñ, IPMASQADM¿¡ ´ëÇÑ ÅëÇÕ ÀÎÅÍÆäÀ̽º ¹× Æ®·¡ÇÈ ½¦ÀÌÇÎÀ»À§ÇÑ °èȹÀº up ¹× ¿À´Â ¹öÀüÀ¸·Î ½½·¹ÀÌÅ©µË´Ï´Ù. jew () ¹× attribute () ¸Þ¼­µå´Â ´ÙÀ½ ¿É¼ÇÀ» Áö¿øÇÕ´Ï´Ù. SourceSpecifies ÆÐŶÀÇ ¹ß½Å ÁÖ¼Ò. A / IS OK¸¦ »ç¿ë ÇÏ¿©ÀÌ ÁּҷΠȣ½ºÆ® ¸¶½ºÅ©¸¦ Ãß°¡ÇÏ°í º°µµ·Î ÁöÁ¤ÇϽʽÿÀ (sourceMask ÂüÁ¶). ¿ø·¡ ÁÖ¼Ò¸¦ À§ÇØ SourceMaskHostmask. 24 ¶Ç´Â 255.255.255.0 style.sourcePortspecific Æ÷Æ® ¶Ç´Â Æ÷Æ® ¹üÀ§ (xxx : xxx¸¦ »ç¿ëÇÏ¿© ¹üÀ§¸¦ ³ªÅ¸³»´Â)°¡ ÇÊ¿äÇÕ´Ï´Ù. ƯÁ¤ ÇÁ·ÎÅäÄÝ specification.DestSpecifies ÆÐŶÀÇ ´ë»ó ÁÖ¼Ò¸¦ Å×½ºÆ®ÇÕ´Ï´Ù. A / IS OK (destmask) destmaskDestination ÁÖ¼Ò (sourceMask) .DestPortDestination Æ÷Æ® (sourcePort) .ProtProtocolÀ» ÂüÁ¶ÇϽʽÿÀ. TCP, UDP, ICMP ¶Ç´Â ¸ðµÎ ÀÏ ¼ö ÀÖ½À´Ï´Ù. ƯÁ¤ Æ÷Æ® .icmpicmp À̸§ / Äڵ带 ÁöÁ¤ÇÏ´Â µ¥ ÇÊ¿äÇÕ´Ï´Ù (ICMP°¡ ÇÁ·ÎÅäÄÝ·Î ÁöÁ¤µÈ °æ¿ì Æ÷Æ® ´ë½Å). °¡Àå ÀϹÝÀûÀÎ ICMP ÆÐŶ Áß ÀϺδ 0 ¿¡ÄÚ - ´äÀå ÇÎ 3¿¡ ÀÇÇØ ÇÊ¿äÇÕ´Ï´Ù. Destination-Unreachable TCP / UDP Æ®·¡ÇÈ. 5 Redirect ¶ó¿ìÆà ¶ó¿ìÆà DAEMON 8 ¿¡ÄÚ - ¿äû PING 11 ½Ã°£ ÃÊ°ú TRACEROUTERULETARGETÀ» ÃÊ°úÇß½À´Ï´Ù. ¼ö¶ô, °ÅºÎ, °ÅºÎ, Masq, ¸®µð·º¼Ç, ¸®ÅÏ ¶Ç´Â »ç¿ëÀÚ Á¤ÀÇ Ã¼ÀÎÀ» ¼ö¶ô ÇÒ ¼ö ÀÖ½À´Ï´Ù. Âü°í : ´ë¼Ò ¹®ÀÚ¸¦ en in.interfaceSpify ±âÁØÀÇ ÀϺηΠÁöÁ¤ ÀÎÅÍÆäÀ̽º (Áï, eth0, ppp0 µî)¸¦ ÂüÁ¶ÇϽʽÿÀ. ´ÜÆíÈ­´Â ´ÜÆíÈ­ µÈ ÆÐŶ (1 ¶Ç´Â 0)ÀÇ µÎ ¹ø° ¹× Ãß°¡ ´ÜÆíÀ» ÀǹÌÇÕ´Ï´Ù. (1 ¶Ç´Â 0). ¼ýÀÚ Çü½ÄÀ¸·Î rules ¶Ç´Â list () (1 ¶Ç´Â 0) .NumericShow Ãâ·ÂÀ» ¼ýÀÚ Çü½ÄÀ¸·Î ¼³Á¤ÇϱâÀ§ÇÑ Verbose ¿É¼Ç. DNS Á¶È¸, etc. (1 ¶Ç´Â 0). ÀÏÄ¡ÇÏ´Â ÆÐŶ (1 ¶Ç´Â 0)ÀÇ Syslog, Kern.Info¸¦ ÅëÇØ (syslog, kern.info¸¦ ÅëÇØ ÆÐŶ ÀÏÄ¡ ÆÐŶÀÌ ÁöÁ¤µÈ ¼ýÀÚ·Î ÀÏÄ¡ÇÕ´Ï´Ù. ÁöÁ¤µÈ ¹øÈ£°¡ÀÖ´Â ¸¶Å© ¸¶Å© ÀÏÄ¡ ÆÐŶ (°í±Þ). IP Çì´õ¿¡¼­ TOS Çʵ带 ¼öÁ¤ÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. 2 °³ÀÇ args ¹× xor ¸¶½ºÅ©, (Áï, (Áï, tos => )). ÀÌ ±â´ÉÀº °íµµ·Î Å×½ºÆ®µÇÁö ¾Ê½À´Ï´Ù. ù ¹ø° ¸¶½ºÅ©´Â ÆÐŶÀÇ ÇöÀç TOS·Î ANDEDÀÌ¸ç µÎ ¹ø° ¸¶½ºÅ©´Â ±×°ÍÀ¸·Î XOREDÀÔ´Ï´Ù. ÂüÁ¶´Â ´ÙÀ½ Ç¥¸¦ »ç¿ëÇϽʽÿÀ. TOS À̸§ °ª ÀÏ¹Ý »ç¿ë ÃÖ¼Ò Áö¿¬ 0x010x10 FTP, ÅÚ³Ý ÃÖ´ë 󸮷® 0x010x08 FTP µ¥ÀÌÅÍ ÃÖ´ë ½Å·Ú¼º 0x010x04 SNMP ÃÖ¼Ò ºñ¿ë 0x010x02 NntpExactDisplay K 's, M's¿¡¼­ ¹Ý¿Ã¸² µÈ ¼ýÀÚ ´ë½Å ¹ÙÀÌÆ® Ä«¿îÅÍÀÇ Á¤È®ÇÑ ¼ýÀÚ ¶Ç´Â G 's (1 ¶Ç´Â 0). SYN ºñÆ® ¼¼Æ®¿Í ACK ¹× FIN ºñÆ®°¡ »èÁ¦ µÈ TCP ÆÐŶÀ» (1 ¶Ç´Â 0). ¿ä±¸ »çÇ× : ¡¤ Perl.


ipchains. °ü·Ã ¼ÒÇÁÆ®¿þ¾î