mrtg,snmp与iptables

由 buick2u 在 05-04-2004 11:40 发表:

mrtg,snmp与iptables

按照坛里面的 http://www.linuxsir.org/bbs/showthr...;threadid=87790

架设了mrtg,发现开着防火墙就不能工作了。

返回

SNMP Error:

no response received

SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)

community: "public"

request ID: -1409443907

PDU bufsize: 8000 bytes

timeout: 2s

retries: 5

backoff: 1)

at /usr/bin/../lib/mrtg2/SNMP_util.pm line 486

SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on public@localhost::::::v4only

at /usr/bin/mrtg line 1798

WARNING: skipping because at least the query for ifInOctets.2 on localhost did not succeed

WARNING: no data for ifInOctets&ifOutOctets ublic@localhost. Skipping further queries for Host localhost in this round.

ERROR: Target[localhost_2][IN] ' $target->[0]{$mode} ' did not eval into defined data

ERROR: Target[localhost_2][OUT] ' $target->[0]{$mode} ' did not eval into defined data

WARNING: Skipping Update of localhost_2, inlast is not defined

WARNING: Skipping Update of localhost_2, outlast is not defined

我的防火墙就一条规则

-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

我netstat -na看了一下

snmp 开放了 tcp 199 和udp 161端口,是不是应该加进iptable ?

MRTG with SNMP

-A INPUT -p udp -m udp -s 127.0.0.1 -d 127.0.0.1 --dport 161 -j ACCEPT

-A INPUT -p tcp -m tcp -s 127.0.0.1 -d 127.0.0.1 --dport 199 -j ACCEPT

还是不行哦


由 buick2u 在 05-05-2004 10:57 发表:


天啊

就没有人来帮帮我啊???


提供suse 9.2下载!

http http://wchun.3322.org/suse/

bt http://wchun.3322.org/suse.torrent

反对霸权主义!


由 buick2u 在 05-08-2004 15:08 发表:


up


提供suse 9.2下载!

http http://wchun.3322.org/suse/

bt http://wchun.3322.org/suse.torrent

反对霸权主义!


由 buick2u 在 05-09-2004 19:54 发表:


再没有人来回复我就去自杀!

然后我要遗书里面说是Linuxsir害了我


提供suse 9.2下载!

http http://wchun.3322.org/suse/

bt http://wchun.3322.org/suse.torrent

反对霸权主义!


由 buick2u 在 05-10-2004 11:08 发表:


过分啊!!!!!!!!!

兄弟们就这样见死不救阿


提供suse 9.2下载!

http http://wchun.3322.org/suse/

bt http://wchun.3322.org/suse.torrent

反对霸权主义!


由 buick2u 在 07-03-2004 16:37 发表:


终于将问题解决了~

希望和我有同样问题的兄弟能够看到这篇帖子~

在原有的基础上增加:

allow snmp

/sbin/iptables A INPUT -p udp -m udp -s 127.0.0.1 --dport 161 -j ACCEPT

allow the third handshake

/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT


提供suse 9.2下载!

http http://wchun.3322.org/suse/

bt http://wchun.3322.org/suse.torrent

反对霸权主义!


由 smile787 在 07-03-2004 20:27 发表:


兄弟自救的功夫强啊!!!!仰慕ing


由 buick2u 在 07-03-2004 22:52 发表:


让兄弟们见笑了~


提供suse 9.2下载!

http http://wchun.3322.org/suse/

bt http://wchun.3322.org/suse.torrent

反对霸权主义!


由 cocu 在 07-06-2004 17:14 发表:


snmp根本就是UDP,当然不行


由 Snoopy 在 07-06-2004 18:28 发表:


防火墙关了能正常使用吗 ?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 faint 在 07-06-2004 20:17 发表:


> quote: > > * * * > > 最初由 bui

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus