All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Kierdelewicz <marek@piasta.pl>
To: Oguz Yilmaz <oguzyilmazlist@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Transparent http filtering VLAN traffic without being a member of  tagged VLANs
Date: Wed, 17 Feb 2010 21:55:18 +0100	[thread overview]
Message-ID: <20100217215518.2944595e@catlap> (raw)
In-Reply-To: <c4ada2161002171216v202474a0obd2ca5c1f22511f1@mail.gmail.com>

Hello,

Try to solve each of the problems at a time. One question - does squid
have internet connection on nonbridged interface with dedicated
IP address?

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

What does `cat /proc/sys/net/bridge/bridge-nf-filter-vlan-tagged` show?
It should be set to 1 if you want tagged traffic to pass iptables. You
can set this value in runtime by issuing:
echo 1 > /proc/sys/net/bridge/bridge-nf-filter-vlan-tagged
or more permamently by adding
net.bridge.bridge-nf-filter-vlan-tagged=1 to /etc/sysctl.conf

Anyway you still need to have the route to client as I wrote below.

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

One thing is missing for sure. Lets assume you have 10.0.0.0/30 subnet
on vlan 26. You should add on your bridge such route:
ip route add 10.0.0.0/30 dev br0.26

This way bridge knows where to send replies to clients (subnet
10.0.0.0/30 available directly on br0.26 interface).

Hope that helps.

Best regards,
Marek Kierdelewicz

  reply	other threads:[~2010-02-17 20:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=20100217215518.2944595e@catlap \
    --to=marek@piasta.pl \
    --cc=netfilter@vger.kernel.org \
    --cc=oguzyilmazlist@gmail.com \
    /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.