Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open snmp port when using ipchains

Status
Not open for further replies.

cajunrob

IS-IT--Management
May 14, 2003
4
US
I am running ipchains on Redhat 7.2. I can't access snmp whenever I bring up ipchains.

I am using this line:
-A input -s 0/0 -d 0/0 161 -p tcp -y -j ACCEPT

But I still can't access it. What other ports do I need to open and how?
 
You specify TCP, snmp traffic uses UDP by default. You may also want to open port 162 for snmp trap handling.
 
How do I open UDP?

I've tried "-A input -s 0/0 -d 0/0 161 -p udp -y -j ACCEPT" but ipchains won't accept that.

What is the syntax for UDP?
 
I finally figured it out. I am using the following:

-A input -s 0/0 -d 0/0 161 -p udp -j ACCEPT
-A input -s 0/0 -d 0/0 162 -p udp -j ACCEPT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top