Ad Widget

Collapse

Firewall (Iptables) Centos 6.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DieterV
    Junior Member
    • Apr 2014
    • 7

    #1

    Firewall (Iptables) Centos 6.5

    Dear Community,

    I'm new in using Zabbix and trying to make it work correctly.
    Everything seems fine except the firewall. I can't seem to find the correct configuration for it.

    Can someone give me the exact commands I need to give for iptables to configure the firewall
    I know i have to accept forward and output. Drop Input.
    I want to work with agents, snmp, snmptraps and connecting to the http site remotely

    Working with Zabbix 2.2.2 on Centos 6.5
    Greating Dieter V
    Last edited by DieterV; 17-04-2014, 14:30.
  • DieterV
    Junior Member
    • Apr 2014
    • 7

    #2
    Can someone please help.
    I need it for a school project

    Comment

    • pc99096
      Senior Member
      • Oct 2011
      • 193

      #3
      add this into your /etc/sysconfig/iptables:

      -A INPUT -m state --state NEW -m tcp -p tcp --dport 10051 -j ACCEPT


      and then /etc/init.d/iptables restart

      Comment

      • DieterV
        Junior Member
        • Apr 2014
        • 7

        #4
        Originally posted by pc99096
        add this into your /etc/sysconfig/iptables:

        -A INPUT -m state --state NEW -m tcp -p tcp --dport 10051 -j ACCEPT


        and then /etc/init.d/iptables restart
        That can't be the only thing for agent, snmp, http and snmp trap?

        Comment

        • pc99096
          Senior Member
          • Oct 2011
          • 193

          #5
          that's for the agent. for the others, do a little research and add more lines with different port numbers.
          snmp trap is udp 162, http is 80. for snmp get, you don't need iptables rule.

          Comment

          Working...