[Centos] Messing around with iptables
Andrew Cotter
Andrew.Cotter at SomersetCapital.com
Thu Aug 12 18:18:20 UTC 2004
# DROP PING
iptables -A INPUT -p icmp -s 127.0.0.1 -j DROP
-----Original Message-----
From: centos-admin at caosity.org [mailto:centos-admin at caosity.org]On
Behalf Of scty Library
Sent: Thursday, August 12, 2004 2:07 PM
To: centos Linux
Subject: Re: [Centos] Messing around with iptables
No, that did not work either.
--- Dag Wieers <dag at wieers.com> wrote:
> On Thu, 12 Aug 2004, scty Library wrote:
>
> > I am messing around with iptables, trying to learn
> how
> > it works so that I can build my self a
> router/firewall
> > and mabey a VPN. Anyway I tried to use a command
> on my
> > Desktop CentOS3 machine.
> >
> > "iptables -A INPUT -s 127.0.0.1 -p icmp -j DROP"
> >
> > now the command seems to have went through because
> I
> > didn't get any errors, but when I go to ping
> 127.0.0.1
> > I am getting a response and my packet loss is 0%.
> It
> > should be 100% packet loss.
> >
> > Can anyone tell me what I am doing wrong. I am
> not
> > trying to do anything yet, just want to learn by
> > exploring.
>
> Try:
>
> iptables -A INPUT -d 127.0.0.1 -p icmp -j DROP
>
> Since you're pinging 127.0.0.1, that's the
> destination (-d) address, not
> the source (-s) address.
>
> -- dag wieers, dag at wieers.com,
> http://dag.wieers.com/ --
> [Any errors in spelling, tact or fact are
> transmission errors]
> _______________________________________________
> CentOS mailing list
> CentOS at caosity.org
> http://www.caosity.org/mailman/listinfo/centos
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
_______________________________________________
CentOS mailing list
CentOS at caosity.org
http://www.caosity.org/mailman/listinfo/centos
More information about the CentOS
mailing list