All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Bayer stefan.bayer@gmx.net
To: lartc@vger.kernel.org
Subject: [LARTC] mac-match doesnt work
Date: Tue, 16 Jan 2001 11:59:21 +0000	[thread overview]
Message-ID: <marc-lartc-98373940416890@msgid-missing> (raw)

<PRE>Hello,
I'm using iptables to masquerade isdn (and snat adsl) transfer to the 
internet. This works great.
Now I want to restrict access to certain computers. Therefore I want to use 
mac-match. I enabled it in the Kernel and I'm using following script to 
accept connections. But unfortunately I can't get access to the Internet with 
this setup. Seems that traffic doesn't come back to the initiating computer.
Ping from the router to the internet works, but not from the client to the 
internet.
Does anybody know where I made the mistake?
-- snap --
# Flushing all chains
$IPTABLES -F -t nat
$IPTABLES -F -t filter
$IPTABLES -F -t mangle

$IPTABLES -t filter -P FORWARD DROP

-- snap --  masquerading all transfer to ISDN, allowing transfer to local net
$IPTABLES -t nat -A POSTROUTING -o ippp0 -d ! $LOCALNET -j MASQUERADE
$IPTABLES -t filter -A FORWARD -s ! $LOCALNET -j ACCEPT
-- snap --  snat and restricting transfers to specific computers
$IPTABLES -t nat -A POSTROUTING -o ppp0 -s $COMP1 -d $ANYWHERE -j SNAT --to  
    $WORLDIP
$IPTABLES -t filter -A FORWARD -s $COMP1 -m mac --mac-source $COMP1MAC -j 
    ACCEPT
-- snap --
-- 
thanx
Stefan
Email: <A HREF="mailto:stefan.bayer@gmx.net">stefan.bayer@gmx.net</A>

----------------------------------------------------
My Box said: &quot;Install Win95 or better ...&quot; So I installed Linux.

Microsoft gives you Windows
Linux gives you the whole house


</PRE>

                 reply	other threads:[~2001-01-16 11:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=marc-lartc-98373940416890@msgid-missing \
    --to=lartc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.