Skip to contentSkip to conversation

squid iptables snmp

DISCUSSION Joel n.solanki 5 participants 10 messages Oct 22, 2004

lore
Share & tools
lore
#0 lore raw

Dear all,

I dont know wheather this problem is related to squid or iptables netfilter.
But let me specify my problem. I tried my lots but i cant solve this problem.

Mrtg server Squid + Netfilter box Mikrotik Router

When I try to create mrtg for mikrotik router which is behind Squid + netfilter box, it gives me this error.

---------------------------------------------------------------------------
-base: Get Device Info on [email protected]:
SNMP Error:
no response received
SNMPv1_Session (remote host: "202.202.202.202" [202.202.202.202].161)

                  community: "public"
                 request ID: 1723286139
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on [email protected]:
at /usr/bin/cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
---------------------------------------------------------------------------

If I removed squid + netfilter box then I tried to create mrtg for mikrotik router then i can easily do it. It doesnt give me any error.

Now i dont know wheather Is this problem related to Netfilter Iptables OR squid proxy server ????

I thought this might be iptables firewall problem so I just made the netfilter + squid box iptable rules to INPUT OUTPUT FORWARD to ACCEPT. So now it should work but it didnt.

Now i cant sort out where is the problem lying ...with iptables or with squid or any thing else ...

Awaiting for Ideas to get the solution in urgent.

Signature · 8 lines
Joel N.Solanki
Network Administrator
Mobile: 91-9426353268
Phone No: 0265-550001/2/3/4/5 Ext: 211/212
Digtial 2 Virtual Internet Service Provider.
http://www.packetraptor.com/
http://www.d2visp.com/
Gujarat (India)
#1 lore raw

step 1
service snmpd stop
step 2
pico /etc/snmp/snmp.conf

step 3 change line
# sec.name source community
#com2sec notConfigUser default public
rocommunity public

step 4
service snmpd start

:)

----- Original Message ----- From: "Joel n.solanki" <[email protected]>
To: "netfilter" <[email protected]>; "squid" <[email protected]>
Sent: Friday, October 22, 2004 1:13 PM
Subject: [squid-users] squid iptables snmp

Quoted 63 lines

Dear all,

I dont know wheather this problem is related to squid or iptables netfilter.
But let me specify my problem. I tried my lots but i cant solve this problem.

Mrtg server Squid + Netfilter box Mikrotik Router

When I try to create mrtg for mikrotik router which is behind Squid + netfilter box, it gives me this error.

---------------------------------------------------------------------------
-base: Get Device Info on [email protected]:
SNMP Error:
no response received
SNMPv1_Session (remote host: "202.202.202.202" [202.202.202.202].161)

                 community: "public"
                request ID: 1723286139
               PDU bufsize: 8000 bytes
                   timeout: 2s
                   retries: 5
                   backoff: 1)

at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on [email protected]:
at /usr/bin/cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
---------------------------------------------------------------------------

If I removed squid + netfilter box then I tried to create mrtg for mikrotik router then i can easily do it. It doesnt give me any error.

Now i dont know wheather Is this problem related to Netfilter Iptables OR squid proxy server ????

I thought this might be iptables firewall problem so I just made the netfilter + squid box iptable rules to INPUT OUTPUT FORWARD to ACCEPT. So now it should work but it didnt.

Now i cant sort out where is the problem lying ...with iptables or with squid or any thing else ...

Awaiting for Ideas to get the solution in urgent.

Signature · 8 lines
Joel N.Solanki
Network Administrator
Mobile: 91-9426353268
Phone No: 0265-550001/2/3/4/5 Ext: 211/212
Digtial 2 Virtual Internet Service Provider.
http://www.packetraptor.com/
http://www.d2visp.com/
Gujarat (India)
#2 lore raw

Hi..

Well u didnt undertood my problem plz read it again. But yes i m in problem so i tried your solution.

service snmpd stop
edited the /etc/snmpd/snmp.conf and made that line rocommunity public service snmpd start

But still the same error :(

Any other Ideas.

Regards,

Quoted 86 lines · squid

step 1
service snmpd stop
step 2
pico /etc/snmp/snmp.conf

step 3 change line
# sec.name source community
#com2sec notConfigUser default public
rocommunity public

step 4
service snmpd start

:)

----- Original Message -----
From: "Joel n.solanki" <[email protected]>
To: "netfilter" <[email protected]>; "squid" <[email protected]>
Sent: Friday, October 22, 2004 1:13 PM
Subject: [squid-users] squid iptables snmp

Quoted 63 lines

Dear all,

I dont know wheather this problem is related to squid or iptables netfilter.
But let me specify my problem. I tried my lots but i cant solve this problem.

Mrtg server Squid + Netfilter box Mikrotik Router

When I try to create mrtg for mikrotik router which is behind Squid + netfilter box, it gives me this error.

---------------------------------------------------------------------------
-base: Get Device Info on [email protected]:
SNMP Error:
no response received
SNMPv1_Session (remote host: "202.202.202.202" [202.202.202.202].161)

                 community: "public"
                request ID: 1723286139
               PDU bufsize: 8000 bytes
                   timeout: 2s
                   retries: 5
                   backoff: 1)

at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on [email protected]:
at /usr/bin/cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
---------------------------------------------------------------------------

If I removed squid + netfilter box then I tried to create mrtg for mikrotik router then i can easily do it. It doesnt give me any error.

Now i dont know wheather Is this problem related to Netfilter Iptables OR squid proxy server ????

I thought this might be iptables firewall problem so I just made the netfilter + squid box iptable rules to INPUT OUTPUT FORWARD to ACCEPT. So now it should work but it didnt.

Now i cant sort out where is the problem lying ...with iptables or with squid or any thing else ...

Awaiting for Ideas to get the solution in urgent.

Signature · 8 lines
Joel N.Solanki
Network Administrator
Mobile: 91-9426353268
Phone No: 0265-550001/2/3/4/5 Ext: 211/212
Digtial 2 Virtual Internet Service Provider.
http://www.packetraptor.com/
http://www.d2visp.com/
Gujarat (India)
Signature · 8 lines
Joel N.Solanki
Network Administrator
Mobile: 91-9426353268
Phone No: 0265-550001/2/3/4/5 Ext: 211/212
Digtial 2 Virtual Internet Service Provider.
http://www.packetraptor.com/
http://www.d2visp.com/
Gujarat (India)
#3 lore raw
In reply to Joel n.solanki
Quoted 24 lines · Joel n.solanki

Dear all,

I dont know wheather this problem is related to squid or iptables netfilter.
But let me specify my problem. I tried my lots but i cant solve this problem.

Mrtg server Squid + Netfilter box Mikrotik Router

When I try to create mrtg for mikrotik router which is behind Squid + netfilter box, it gives me this error.

---------------------------------------------------------------------------
-base: Get Device Info on [email protected]:
SNMP Error:
no response received
SNMPv1_Session (remote host: "202.202.202.202" [202.202.202.202].161)

                 community: "public"
                request ID: 1723286139
               PDU bufsize: 8000 bytes
                   timeout: 2s
                   retries: 5
                   backoff: 1)
Quoted 9 lines

at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on [email protected]:
at /usr/bin/cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
---------------------------------------------------------------------------

Are you configured the snmp_access acl in squid.conf? some like;
acl snmp-public snmp_community public
acl snmp-user src host_ip
snmp_access allow snmp-public localhost snmp_access allow snmp-public snmp-user snmp_access deny all

Thanks
Emilio C.

#4 lore raw

Yes i have configured that also.

Quoted 46 lines · Emilio Casbas
Quoted 24 lines · Joel n.solanki

Dear all,

I dont know wheather this problem is related to squid or iptables netfilter.
But let me specify my problem. I tried my lots but i cant solve this problem.

Mrtg server Squid + Netfilter box Mikrotik Router

When I try to create mrtg for mikrotik router which is behind Squid + netfilter box, it gives me this error.

---------------------------------------------------------------------------
-base: Get Device Info on [email protected]:
SNMP Error:
no response received
SNMPv1_Session (remote host: "202.202.202.202" [202.202.202.202].161)

                 community: "public"
                request ID: 1723286139
               PDU bufsize: 8000 bytes
                   timeout: 2s
                   retries: 5
                   backoff: 1)
Quoted 9 lines

at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on [email protected]:
at /usr/bin/cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
---------------------------------------------------------------------------

Are you configured the snmp_access acl in squid.conf? some like;
acl snmp-public snmp_community public
acl snmp-user src host_ip
snmp_access allow snmp-public localhost snmp_access allow snmp-public snmp-user snmp_access deny all

Thanks
Emilio C.

Signature · 8 lines
Joel N.Solanki
Network Administrator
Mobile: 91-9426353268
Phone No: 0265-550001/2/3/4/5 Ext: 211/212
Digtial 2 Virtual Internet Service Provider.
http://www.packetraptor.com/
http://www.d2visp.com/
Gujarat (India)
#5 lore raw
In reply to Joel n.solanki
Quoted 2 lines · Joel n.solanki

I dont know wheather this problem is related to squid or iptables netfilter.

If anything it is related to iptables.

There is no technical way it can be related to running Squid.

Regards
Henrik

#6 lore raw

Ok :)

Quoted 11 lines · Henrik Nordstrom
Quoted 2 lines · Joel n.solanki

I dont know wheather this problem is related to squid or iptables netfilter.

If anything it is related to iptables.

There is no technical way it can be related to running Squid.

Regards
Henrik

Signature · 8 lines
Joel N.Solanki
Network Administrator
Mobile: 91-9426353268
Phone No: 0265-550001/2/3/4/5 Ext: 211/212
Digtial 2 Virtual Internet Service Provider.
http://www.packetraptor.com/
http://www.d2visp.com/
Gujarat (India)
#7 lore raw
In reply to Joel n.solanki
Quoted 9 lines · Joel n.solanki

Dear all,

I dont know wheather this problem is related to squid or iptables netfilter.
But let me specify my problem. I tried my lots but i cant solve this problem.

Quoted 4 lines

Mrtg server Squid + Netfilter box Mikrotik Router

When I try to create mrtg for mikrotik router which is behind Squid + netfilter box, it gives me this error.

can you ping "Mikrotik Router" from "Mrtg server" when "Squid + Netfilter" is between them?

is IP forwarding enabled on "Squid + Netfilter" box?

what is the default gateway of "Mrtg server"?

what is the default gateway of "Mikrotik Router"?

are you trying to NAT the traffic to "Mikrotik Router"?

-j

Signature · 1 line
Jason Opperisano <[email protected]>
#8 lore raw

Yes I can ping mikrotik router from mrtg server when squid + netfilter box is between them

I can even trace them.
Yes IP forwarding is enabled on squid + netfilter box

No i m not doing NAT coz i have public ip addres so i m using that.

I have my setup with current scenario in other city and it is working fine.
yes I have recompiled my kernel ...can kernel could be reason for this ?

Regards,

Quoted 27 lines · Jason Opperisano
Quoted 9 lines · Joel n.solanki

Dear all,

I dont know wheather this problem is related to squid or iptables netfilter.
But let me specify my problem. I tried my lots but i cant solve this problem.

Quoted 4 lines

Mrtg server Squid + Netfilter box Mikrotik Router

When I try to create mrtg for mikrotik router which is behind Squid + netfilter box, it gives me this error.

can you ping "Mikrotik Router" from "Mrtg server" when "Squid + Netfilter" is between them?

is IP forwarding enabled on "Squid + Netfilter" box?

what is the default gateway of "Mrtg server"?

what is the default gateway of "Mikrotik Router"?

are you trying to NAT the traffic to "Mikrotik Router"?

-j

Signature · 8 lines
Joel N.Solanki
Network Administrator
Mobile: 91-9426353268
Phone No: 0265-550001/2/3/4/5 Ext: 211/212
Digtial 2 Virtual Internet Service Provider.
http://www.packetraptor.com/
http://www.d2visp.com/
Gujarat (India)
#9 lore raw
Quoted 11 lines · Joel n.solanki

Yes I can ping mikrotik router from mrtg server when squid + netfilter box is between them

I can even trace them.
Yes IP forwarding is enabled on squid + netfilter box

No i m not doing NAT coz i have public ip addres so i m using that.

I have my setup with current scenario in other city and it is working fine.
yes I have recompiled my kernel ...can kernel could be reason for this ?

run a tcpdump on the netfilter box on the interface facing the router and make sure your snmp queries are making it through.

something like:

tcpdump -n -p -i $router_side_int udp port 161

-j

Signature · 1 line
Jason Opperisano <[email protected]>