All of lore.kernel.org
 help / color / mirror / Atom feed
* Transparent http filtering VLAN traffic without being a member of  tagged VLANs
@ 2010-02-17 20:16 Oguz Yilmaz
  2010-02-17 20:55 ` Marek Kierdelewicz
  0 siblings, 1 reply; 7+ messages in thread
From: Oguz Yilmaz @ 2010-02-17 20:16 UTC (permalink / raw)
  To: netfilter

On a bridge setup, I want to filter http traffic transparently through
Squid. br0 bridge is between eth0 and eth1.
In the bridged traffic there are some tagged VLANs.

When I run tcpdump on br0 I see all the traffic from VLANs. At this
point a DNAT (VLAN10Subnet - Any - http => Original - LocalIP -
8080) does not work.

iptables -t nat -I PREROUTING -p tcp --dport 80 -j DNAT
--to-destination 10.0.0.1:8080


When enabled VLANs by vconfig:

vconfig add br0 26

I see br0.26 interface in ifconfig output.

And DNAT started to working. When I DNAT the traffic into port 8080 on
localhost to Squid, I see that Squid gets the traffic and logs it into
the log file. However, proxying will not happen. Reply can not be
delivered to the original requester. We broke the connection. On the
user side, HTTP traffic is cut.

I think the problem is not having any IP on br0.26 from VLAN10Subnet.
Because the whole C class is divided into subnets of 255.252 having 2
usable IP address and both are used. Do you have any other idea on
identifiying the problem?

If you think the problem is what I see, how can I overcome this? Is it
possible to nat in another way to include vlan information. Marking
maybe?

Best Regards,
Oguz.

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

end of thread, other threads:[~2010-02-18 22:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17 20:16 Transparent http filtering VLAN traffic without being a member of tagged VLANs Oguz Yilmaz
2010-02-17 20:55 ` Marek Kierdelewicz
2010-02-18  7:23   ` Oguz Yilmaz
2010-02-18 10:36     ` Marek Kierdelewicz
2010-02-18 11:20       ` Oguz Yilmaz
2010-02-18 11:28         ` Yavetskiy Yuriy
2010-02-18 22:15           ` Marek Kierdelewicz

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.