From: "Tomasz Chilinski" <chilek@chilan.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] masquerade and mac problem
Date: Sat, 04 Sep 2004 13:55:59 +0000 [thread overview]
Message-ID: <20040904135529.M31207@chilan.com> (raw)
In-Reply-To: <20040904121939.70148.qmail@web60001.mail.yahoo.com>
On Sat, 4 Sep 2004 05:19:39 -0700 (PDT), Sorin Capra wrote
> $ipt -t filter -N computer1 >/dev/null 2>&1
> $ipt -t filter -N computer2 >/dev/null 2>&1
> $ipt -t filter -N computer3 >/dev/null 2>&1
> $ipt -t filter -N computer4 >/dev/null 2>&1
> $ipt -t filter -N computer5 >/dev/null 2>&1
>
> $ipt -A FORWARD -s 192.168.10.2 -j computer1
> $ipt -A FORWARD -s 192.168.10.3 -j computer2
> $ipt -A FORWARD -s 192.168.10.4 -j computer3
> $ipt -A FORWARD -s 192.168.10.5 -j computer4
> $ipt -A FORWARD -s 192.168.10.6 -j computer5
>
> $ipt -A computer1 -m mac --mac-source 00:c0:df:f7:7c:3b -j ACCEPT
> $ipt -A computer2 -m mac --mac-source 00:06:4f:0f:3b:c1 -j ACCEPT
> $ipt -A computer3 -m mac --mac-source 00:0c:6e:90:39:6a -j ACCEPT
> $ipt -A computer4 -m mac --mac-source 00:90:27:5f:5e:78 -j ACCEPT
> $ipt -A computer5 -m mac --mac-source 00:90:27:9b:3c:a2 -j ACCEPT
>
> $ipt -A POSTROUTING -t nat -s 192.168.10.2 -j MASQUERADE
> $ipt -A POSTROUTING -t nat -s 192.168.10.3 -j MASQUERADE
> $ipt -A POSTROUTING -t nat -s 192.168.10.4 -j MASQUERADE
> $ipt -A POSTROUTING -t nat -s 192.168.10.5 -j MASQUERADE
> $ipt -A POSTROUTING -t nat -s 192.168.10.6 -j MASQUERADE
>
> #$ipt -P FORWARD DROP
> --------------------
Use mac source match in chain PREROUTING of nat table. Additionalny tests will be
working for first packets of connections (less load).
>Thank you in advance,
>Sorin
Bests,
Tomasz Chilinski
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2004-09-04 13:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-04 12:19 [LARTC] masquerade and mac problem Sorin Capra
2004-09-04 13:55 ` Tomasz Chilinski [this message]
2004-09-04 15:44 ` Tomasz Chilinski
2004-09-04 17:18 ` Ilia Lindov
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=20040904135529.M31207@chilan.com \
--to=chilek@chilan.com \
--cc=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.