All of lore.kernel.org
 help / color / mirror / Atom feed
* Firewall with only one eth0 device: possible?
@ 2005-05-31 16:41 Roman
  2005-05-31 17:53 ` Taylor, Grant
  0 siblings, 1 reply; 3+ messages in thread
From: Roman @ 2005-05-31 16:41 UTC (permalink / raw)
  To: netfilter

Hi,

I have an embedded system running uclinux with just one ethernet device 
and wonder whether or not I can build a firewall in combination with a 
switch (VLAN support, not WLAN).

How I thought it could work is the following:

Configure the eth0 device with an ip and network mask.
Configure the eth0:0 alias device with an ip and network mask different 
from eth0.
Use a switch with VLAN support.
Connect the eth0 linux device to port B of the switch; switch port A 
will then be one side of the firewall and port C the other side.
Configure the switch (VLAN) in a manner so all the incoming traffic on 
switch port A will be routed to port B and all the incoming traffic on 
port B will be routed to port C and back to port A.
Finally everything that enters port C will be routed to port B.


The question about all this is: Will the traffic be filtered between 
eth0 and eth0:0 as if there were two physical devices eth0 and eth1?

Thanks for any remarks on that.

roman


PS.: I know, this is an unusual way to build a firewall, but I simply 
can not change the hardware. For everyone who thinks, it is insecure 
because of none existing  physical separation: please forgive me.





^ permalink raw reply	[flat|nested] 3+ messages in thread
* 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; 3+ 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] 3+ messages in thread

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 16:41 Firewall with only one eth0 device: possible? Roman
2005-05-31 17:53 ` Taylor, Grant
  -- strict thread matches above, loose matches on Subject: below --
2005-06-01 15:13 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.