Hi Serg,
Serg A. Androsov wrote:
Hello there,
Squid 2.6-STABLE6
CentOS 5 (2.6.18-8.el5xen #1 SMP x86_64 x86_64 x86_64 GNU/Linux)
Trying to solve some trouble.
I get " 172.16.3.1:3401" error.
Here it is snmp config in squid.conf
...
acl snmpbsu snmp_community xxxxxx
acl admins <some_internal_subnet>
snmp_port 3401
snmp_access allow snmpbsu localhost
snmp_access allow snmpbsu admins
snmp_access deny all
Try running it locally first:
acl snmpbsu snmp_community snmpsecret
acl admins src 192.168.0.0/24
snmp_port 3401
snmp_access allow snmpbsu localhost
snmp_access allow snmpbsu admins
snmp_access deny all
#/usr/bin/snmpwalk -m /etc/squid/mib.txt -c snmpsecret -v1
localhost:3401 .1.3.6.1.4.1.3495.1
Hope that helps.
Thanking you...
snmp_incoming_address 172.16.3.1 #here it is internal proxy interface.
snmp_outgoing_address 255.255.255.255
...
How it's trying (from localhost):
#/usr/bin/snmpwalk -v 1 -m /etc/squid/mib.txt -c xxxxxx 172.16.3.1:3401
.1.3.6.1.4.1.3495.1
Timeout: No Response from 172.16.3.1:3401
Also try to use version 2c protocol.
SNMP is listening the port.
[root@proxyv squid]# netstat -an | grep 3401
udp 0 0 172.16.3.1:3401 0.0.0.0:*
[root@proxyv squid]# /sbin/iptables -n -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
...skipped
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:3401
...skipped
also trying to stop iptables service
Where am I wrong?
-------
Serj.
--
With best regards and good wishes,
Yours sincerely,
Tek Bahadur Limbu
System Administrator
(TAG/TDG Group)
Jwl Systems Department
Worldlink Communications Pvt. Ltd.
Jawalakhel, Nepal
http://www.wlink.com.np
http://teklimbu.wordpress.com