Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Antonio Augusto (Mancha)" <mkhaos7@gmail.com>
To: Cupertino Miranda <philfine@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Filtering by Mac Address
Date: Wed, 13 Feb 2008 23:32:21 -0300	[thread overview]
Message-ID: <4c6e034d0802131832m5ca3e130j65ef5a3c2cfb37c9@mail.gmail.com> (raw)
In-Reply-To: <63D06BD7-145A-4A49-8E64-D91C813B987F@gmail.com>

You probably can use the mac target, passing a --mac-source option to
filter the macs you want to have access to the net.
All other connections should be treated by another rule that will do
some NATing to redirect all the traffic to your web server.
The second part of the solution probably was already discussed
hundreds of times here already, and there are a lot of very good
tutorial on the net on how to to this.

Cheers,
KM

On Wed, Feb 13, 2008 at 2:54 PM, Cupertino Miranda <philfine@gmail.com> wrote:
> Hello everyone,
>
>  For one of my current hackings I need to construct the following
>  network rules.
>
>  I need to disable internet access to all the local network hosts by
>  redirecting them the my webserver (allowing to show some web page in
>  case of http connection).
>  Enable internet access by mac address to some of this hosts.
>
>  I have currently general NAT rules in gateway machine.
>
>  Can someone provide me some details how can I do it.
>
>  Thanks a lot
>  -
>  To unsubscribe from this list: send the line "unsubscribe netfilter" in
>  the body of a message to majordomo@vger.kernel.org
>  More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Informação & Segurança - Informações para sua segurança na rede.
http://info-seg.blogspot.com

  reply	other threads:[~2008-02-14  2:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-13 17:54 Filtering by Mac Address Cupertino Miranda
2008-02-14  2:32 ` Antonio Augusto (Mancha) [this message]
2008-02-14  2:55 ` Jon Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c6e034d0802131832m5ca3e130j65ef5a3c2cfb37c9@mail.gmail.com \
    --to=mkhaos7@gmail.com \
    --cc=netfilter@vger.kernel.org \
    --cc=philfine@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox