From: "Taylor, Grant" <gtaylor@riverviewtech.net>
To: netfilter@lists.netfilter.org
Subject: Re: Firewall with only one eth0 device: possible?
Date: Wed, 01 Jun 2005 10:28:05 -0500 [thread overview]
Message-ID: <429DD405.5090104@riverviewtech.net> (raw)
In-Reply-To: <429DD095.6020108@gmx.ch>
Roman wrote:
> Thanks for the hint, Grant
>
> I found some documentation on that in the datasheet of realtek 8309
> switch controller and on a support page of zyxel.
> The realtek datasheet says that there are 4 tag/untag modes in that chip
> but does not tell you when the tagging or untagging is done (ingress or
> egress?)
> On zyxel support page was stated that tagging will be done on ingress an
> untagging on egress if any tag changing is done at all. The zyxel
> approach sound good to me.
>
> I hope all switch conntroller manufacturer implemented the IEEE 802.1q
> standard the same way. I do not know how much freedom there is the
> interpret 802.1q in different ways.
>
> Do you or someone know what happens if tagged ethernet frames leave the
> switch ports A (VLAN1) and C (VLAN2, port B was the path to the uClinux
> eth0.1 /eth0.2) and VLAN unaware clients are hooked to this network
> segment? Will they cope with the VLAN frames and understand them? Or
> will they confuse the unaware devices and get dropped?
I think what you are asking about is covered under what is called egress filtering. The way that I configured my switch (D-Link DES-3226L (worked great)) was to establish an 802.1q trunk (implies VLAN tagging) on the switch port(s) that connected to the router. I used egress filtering on all the other ports to tell the switch to NOT send 802.1q tags on any traffic leaving so as to prevent confusion to devices that don't know a thing about 802.1q VLANs. Basically every port on the switch belongs to one VLAN, except the port(s) that connect to the router, and have been configured to send basic ethernet frames just like you would get out of a $15 hub. The 802.1q trunked port(s), by the very nature of the trunking, will send (802.1q) VLAN tags in the ethernet frame header to indicate which VLAN the ethernet frame is from. Your router will then receive these frames with the 802.1q and kno
w which interface to send them to (eth0.1 or eth0.2).
I hope this helps you and answers some questions. If you need more help I'd be glad to do so. F.y.i. I do not have access to the DES-3226L to look at the config any more so I can't get you a copy, but I could help you regenerate one from scratch if need be. I can play with VLAN tagging on my home router with a Cisco Catalyst 5000 at the house thus I can help you get your vconfig script correct.
Grant. . . .
next prev parent reply other threads:[~2005-06-01 15:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-01 15:13 Re: Firewall with only one eth0 device: possible? Roman
2005-06-01 15:28 ` Taylor, Grant [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-31 16:41 Roman
2005-05-31 17:53 ` Taylor, Grant
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=429DD405.5090104@riverviewtech.net \
--to=gtaylor@riverviewtech.net \
--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 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.