Re: hosts.deny vs iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: "CodeHeads" <codeheads@xxxxxxxxx>
Hash: SHA1

On Wed, 24 May 2006 10:34:23 -0500 Bruno Wolff III <bruno@xxxxxxxx> wrote:

On Wed, May 24, 2006 at 10:46:39 -0400,
  CodeHeads <codeheads@xxxxxxxxx> wrote:
> > Ed,
> Thank you, That what I was looking for to verify what I have learned so far.
> > Question on entering IP address in IPTables, say I want to add a range to
> block the whole ip range of (example of course)
> Can I do this:
> $iptables -A FORWARD -p tcp -s 10. -i eth0 -j DROP
> OR
> $iptables -A FORWARD -p tcp -s 10.* -i eth0 -j DROP

$iptables -A FORWARD -p tcp -s -i eth0 -j DROP
$iptables -A FORWARD -p tcp -s -i eth0 -j DROP
will work.

Thank you Bruno.  Just wanted to verify about the wild cards.

Sorry for all the questions, IP's confuse me a bit. :) LOL
Say if I have a range of -
Is there a calculator that will tell me the netmask??

There isn't one. The net mask is powers of two. It is often
easier to think of it as for the nearest to the
case you site, to That means is the mask.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux