All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Re: Firewall with only one eth0 device: possible?
@ 2005-06-01 15:13 Roman
  2005-06-01 15:28 ` Taylor, Grant
  0 siblings, 1 reply; 2+ messages in thread
From: Roman @ 2005-06-01 15:13 UTC (permalink / raw)
  To: netfilter

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?

Thanks for any further advice


Roman


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Firewall with only one eth0 device: possible?
  2005-06-01 15:13 Re: Firewall with only one eth0 device: possible? Roman
@ 2005-06-01 15:28 ` Taylor, Grant
  0 siblings, 0 replies; 2+ messages in thread
From: Taylor, Grant @ 2005-06-01 15:28 UTC (permalink / raw)
  To: netfilter

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. . . .


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-01 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-01 15:13 Re: Firewall with only one eth0 device: possible? Roman
2005-06-01 15:28 ` Taylor, Grant

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.