The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Are IPTABLES installed?

Discussion in 'General Discussion' started by gertiebeth, Jul 22, 2003.

  1. gertiebeth

    gertiebeth Well-Known Member

    Joined:
    Jun 4, 2003
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Minnesota, USA
    cPanel Access Level:
    Root Administrator
    I am trying to ban an IP range and, per the FAQ, am using

    ipchains -I input 1 -s 165.*.*.* -j

    iptables -A INPUT -s 192.168.56.210/32 -j DROP

    but I keep getting

    bash: iptables: command not found

    bash: iptables: command not found



    Code:
    root@cpanel [/usr/share/doc/ipchains-1.3.10]# locate iptables
    /etc/rc.d/init.d/iptables
    /etc/rc.d/rc0.d/K92iptables
    /etc/rc.d/rc1.d/K92iptables
    /etc/rc.d/rc2.d/S08iptables
    /etc/rc.d/rc3.d/S08iptables
    /etc/rc.d/rc4.d/S08iptables
    /etc/rc.d/rc5.d/S08iptables
    /etc/rc.d/rc6.d/K92iptables
    /usr/share/doc/mrtg-2.9.17/contrib/iptables-accounting
    /usr/share/doc/mrtg-2.9.17/contrib/iptables-accounting/README
    /usr/share/doc/mrtg-2.9.17/contrib/iptables-accounting/iptables-accounting
    /usr/share/doc/mrtg-2.9.17/contrib/iptables_acc
    /usr/share/doc/mrtg-2.9.17/contrib/iptables_acc/iptables_acc
    /usr/share/doc/mrtg-2.9.17/contrib/iptables_acc/README
    /usr/share/doc/mrtg-2.9.17/contrib/iptables_acc_snmp
    /usr/share/doc/mrtg-2.9.17/contrib/iptables_acc_snmp/HANDCO-SNMP-MIB.txt
    /usr/share/doc/mrtg-2.9.17/contrib/iptables_acc_snmp/README
    /usr/share/doc/mrtg-2.9.17/contrib/iptables_acc_snmp/iptables_acc_snmp
    /usr/share/man/man8/iptables-restore.8.gz
    /usr/share/man/man8/iptables-save.8.gz
    /usr/share/man/man8/iptables.8.gz
    /lib/iptables
    /lib/iptables/libipt_MASQUERADE.so
    /lib/iptables/libipt_DNAT.so
    /lib/iptables/libipt_DSCP.so
    /lib/iptables/libipt_ECN.so
    /lib/iptables/libipt_LOG.so
    /lib/iptables/libipt_MARK.so
    /lib/iptables/libipt_MIRROR.so
    /lib/iptables/libipt_REDIRECT.so
    /lib/iptables/libipt_REJECT.so
    /lib/iptables/libipt_SAME.so
    /lib/iptables/libipt_SNAT.so
    /lib/iptables/libipt_TCPMSS.so
    /lib/iptables/libipt_TOS.so
    /lib/iptables/libipt_TTL.so
    /lib/iptables/libipt_ULOG.so
    /lib/iptables/libipt_ah.so
    /lib/iptables/libipt_esp.so
    /lib/iptables/libipt_icmp.so
    /lib/iptables/libipt_iplimit.so
    /lib/iptables/libipt_limit.so
    /lib/iptables/libipt_mac.so
    /lib/iptables/libipt_mark.so
    /lib/iptables/libipt_multiport.so
    /lib/iptables/libipt_owner.so
    /lib/iptables/libipt_standard.so
    /lib/iptables/libipt_state.so
    /lib/iptables/libipt_tcp.so
    /lib/iptables/libipt_tcpmss.so
    /lib/iptables/libipt_tos.so
    /lib/iptables/libipt_ttl.so
    /lib/iptables/libipt_udp.so
    /lib/iptables/libipt_unclean.so
    /sbin/iptables-restore
    /sbin/iptables
    /sbin/iptables-save
    Do I need to install ipchains or iptables to get this to work or am I doing something wrong?

    Thanks!

    cPanel.net Support Ticket Number:
     
  2. dthigpen

    dthigpen Active Member

    Joined:
    May 29, 2003
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Apex, NC
    /sbin/iptables -A INPUT -s 192.168.56.210/32 -j DROP

    cPanel.net Support Ticket Number:
     
  3. pirania1

    pirania1 Well-Known Member

    Joined:
    May 10, 2003
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami, FL
    Why you are crossposting on multiple boards? You got answer on the other one already.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page