Re: ipchains help

From: catalyst (catalyst@salon.ru)
Date: 09/23/02


From: catalyst <catalyst@salon.ru>
To: Nikolai <nikolai@pneumaticus.com>, security-basics@securityfocus.com
Date: Mon, 23 Sep 2002 12:42:03 +0400

On Fri, 20 Sep 2002, Nikolai wrote:
> I have setup the following rules for my ipchains:
>
> :input ACCEPT
> :forward DENY
> :output ACCEPT
>
> -A input -j DENY -p all -l -s 127.0.0.0/8 -i eth0 -d 0.0.0.0/0
> -A input -i eth0 -s 0/0 -d 0/0 -p tcp -y -j DENY -l

As you may see, the protocol you have DENY is "-p tcp" (at the second line).
You may add fully identical row at the end except proto=ICMP, like this:

-A input -i eth0 -s 0/0 -d 0/0 -p ICMP -j DENY -l or:
-A input -i eth0 -s 0/0 -d 0/0 8 -p ICMP -j DENY -l

Good luck!

>
> I did an online-based scan at scan.sygate.com and everything appears to
> be 'blocked' except ICMP service on port 8.
>
> Can someone please help me with how to close this hole as well?
>
> Some background:
> my kernel is 2.4.18 (with Mandrake 8.2)
> I'm new to Linux/GNU in general and security in particular.
>
> Thanks
> Nikolai

-- 



Relevant Pages

  • ipchains help
    ... I have setup the following rules for my ipchains: ... :forward DENY ... I'm new to Linux/GNU in general and security in particular. ...
    (Security-Basics)
  • Re: Linux IPChains Question
    ... I suggest adding an explicit DENY and log rule at the end. ... #ipchains -P FORWARD DENY ... I would recommend iptables here. ... iptables -t filter -A FORWARD -j LOG ...
    (comp.security.firewalls)
  • FreeBSD Firewall as a Transparent Proxy?
    ... I have seen lots of pages on google on how to setup Squid as a Transparent ... Proxy server on FreeBSD. ... add 00110 deny ip from any to 127.0.0.0/8 ... add 00302 deny ip from 172.16.0.0/12 to any in via fxp0 ...
    (freebsd-questions)
  • Trouble with ipfw :( help!
    ... I have configured ipfw on my mail server... ... 00200 deny ip from any to 127.0.0.0/8 ... 00800 allow tcp from any to me dst-port 25,110,995,143,993 setup ...
    (freebsd-questions)
  • FreeBSD 6.x / GRE / WCCP / Squid
    ... I'm trying to setup WCCP on our Cisco 1840 router. ... I can see the packets hitting my fwd rule in ipfw via the security log, ... access-list 109 deny ip any any ...
    (freebsd-questions)