Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Hanz F." <hanz852@yahoo.com>
To: Jim Gifford <maillist@jg555.com>
Cc: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: Block/Accept by MAC Address
Date: Mon, 30 Sep 2002 23:15:47 -0700 (PDT)	[thread overview]
Message-ID: <20021001061547.95787.qmail@web40007.mail.yahoo.com> (raw)
In-Reply-To: <003a01c268ea$d98408a0$e951ea43@W2RZ8L4S02>

Your situation is similar to mine, and this is what I
did :

******************************************
#eth0 has the IP 192.168.3.133 which is connected 
#to the internet.

iptables -t nat -P POSTROUTING DROP
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to
192.168.3.133


iptbales -P INPUT DROP
iptbales -P FORWARD DROP
iptbales -P OUTPUT ACCEPT

#list here all your clients who are allowed to hace
#access

iptables -A INPUT -p all -s client -m mac --mac-source
client's mac -j ACCEPT
iptables -A FORWARD -p all -s client -m mac
--mac-source client's mac -j ACCEPT

#then block anyone else
iptables -A INPUT -p all -s 0/0 -j DROP
iptables -A FORWARD -p all -s 0/0 -j DROP

************************************************

U can also allow all people and block the buy u want
but in this case he may change his network card and
will be able to have access again.

The problem here (and with every iptables rule) that
ur clients will not be able to use some internet
applications like ICQ, IRC,yahoo messenger ,...... and
that's what I am looking for.
Some guys here have informed me that it's posiible to
use IRC and FTP by using related modules, but it seems
there's no modules to other applications.





__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


  parent reply	other threads:[~2002-10-01  6:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01  1:33 Block/Accept by MAC Address Jim Gifford
2002-10-01  2:24 ` Joel Newkirk
2002-10-01  6:15 ` Hanz F. [this message]
2002-10-01  6:34 ` Anders Fugmann
2002-10-01  8:07 ` Antony Stone
2002-10-01  8:31 ` Antony Stone
2002-10-01 22:48   ` Jim Gifford
2002-10-01 23:14     ` Antony Stone

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=20021001061547.95787.qmail@web40007.mail.yahoo.com \
    --to=hanz852@yahoo.com \
    --cc=maillist@jg555.com \
    --cc=netfilter@lists.netfilter.org \
    /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