°Ô½Ã¹° 1,369°Ç
   
Netfilter IP accounting for NET-SNMP
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2009-12-12 (Åä) 20:23 Á¶È¸ : 13248
±ÛÁÖ¼Ò :
ipaccttable-1.0.tar.bz2 (204.2K), Down : 11, 2009-12-12 20:23:51
                                

netfilter ±ÔÄ¢À» snmp °ªÀ¸·Î º¯È¯


ÀνºÅç °úÁ¤Àº ¾Æ·¡Ã³·³.....

Installing
-----------------------------------------

1. Building
./configure --with-snmp-dlmod-dir=/path/to/snmp/dlmod/dir --with-snmp-mib-dir=/path/to/snmp/mib/dir
make
make install

2. Configuring Net-SNMP
add line to snmpd.conf:
dlmod ipAcctTable ipaccttable

3. Configuring Netfilter
iptables -t mangle -N Accounting
iptables -t mangle -A Accounting -s 10.1.1.1
iptables -t mangle -A Accounting -d 10.1.1.1
iptables -t mangle -A Accounting -s 10.1.1.2
iptables -t mangle -A Accounting -d 10.1.1.2
....


¿øÇÏ´Â Å×À̺í°ú üÀÎÀ» ¼öÁ¤Çؼ­ ÄÄÆÄÀÏÇÏ·Á¸é...
src/ipacct-snmp.c ÆÄÀÏÀ» ¼öÁ¤

#define IPACCT_TABLE            "filter"
#define IPACCT_TABLE_CHAIN      "FORWARD"



SNMPWALK È®ÀÎ
SNMPv2-SMI::enterprises.14274.2.1.1.1.2.111.1.168.192 = Counter64: 0
SNMPv2-SMI::enterprises.14274.2.1.1.1.3.111.1.168.192 = Counter64: 543864
SNMPv2-SMI::enterprises.14274.2.1.1.1.4.111.1.168.192 = Counter64: 0
SNMPv2-SMI::enterprises.14274.2.1.1.1.5.111.1.168.192 = Counter64: 10713

Outbound bytes
3  Inbound bytes
4  Outbound pkts
5  Inbound bytes


MRTG  CFG
Target[192.168.1.111]: 1.3.6.1.4.1.14274.2.1.1.1.3.111.1.168.192&1.3.6.1.4.1.14274.2.1.1.1.2.111.1.168.192:elcap@xxx.xxx.xxx.xxx:::::2

ÃÖ°í°ü¸®ÀÚ 2010-10-05 (È­) 14:51

-- 1.3.6.1.4.1.14274.2.1.1.1.2


        ipAcctBytesIn OBJECT-TYPE
                SYNTAX OCTET STRING
                MAX-ACCESS read-only
                STATUS current
                DEscRIPTION "???"
                ::=  { ipAcctEntry 2 }


-- 1.3.6.1.4.1.14274.2.1.1.1.3


        ipAcctBytesOut OBJECT-TYPE
                SYNTAX OCTET STRING
                MAX-ACCESS read-only
                STATUS current
                DEscRIPTION "???"
                ::=  { ipAcctEntry 3 }


-- 1.3.6.1.4.1.14274.2.1.1.1.4


        ipAcctPktsIn OBJECT-TYPE
                SYNTAX OCTET STRING
                MAX-ACCESS read-only
                STATUS current
                DEscRIPTION "???"
                ::=  { ipAcctEntry 4 }


-- 1.3.6.1.4.1.14274.2.1.1.1.5


        ipAcctPktsOut OBJECT-TYPE
                SYNTAX OCTET STRING
                MAX-ACCESS read-only
                STATUS current
                DEscRIPTION "???"
                ::=  { ipAcctEntry 5 }

ÃÖ°í°ü¸®ÀÚ 2011-03-10 (¸ñ) 09:55
./configure --with-snmp-dlmod-dir=/usr/lib/snmp/dlmod --with-snmp-mib-dir=/usr/lib/snmp/mib
À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



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