netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe W Damasio <felipewd@gmail.com>
To: netfilter@vger.kernel.org
Cc: Bruno Gustavo Wallauer <brunogw@gmail.com>, pascal.mail@plouf.fr.eu.org
Subject: Re: ebtables broute DROP problem in production environment
Date: Tue, 29 Dec 2009 20:18:44 -0200	[thread overview]
Message-ID: <8a87046f0912291418x11b37daen604665a94108f128@mail.gmail.com> (raw)
In-Reply-To: <8a87046f0912240513m4c3cd0f2u565ef8e8b849f58@mail.gmail.com>

  Hi All,

  Mr. Pascal, I'm sorry, I'm not subscribed to this list...so I just
saw your reply on the archives.

  The thing is, I narrowed down the problem:

  - The traffic is passing through the bridge just fine;
  - When I plug a single client everything works great;
  - When I plug in the CMTS (all the cable modem clients, then),
everything stops.

  So, first I thought that the CMTS must be doing something to the net
to upset ebtables.

  But I added a rule:

iptables -A INPUT -p tcp --dport 80 -j LOG --log-level 1 --log-prefix
"iptables "

  And I got _a lot_ of these:

Dec 29 20:05:16 hyper kernel: iptables IN=eth0 OUT=
MAC=00:ea:01:02:7b:a2:00:21:a0:ce:9d:24:08:00 SRC=200.250.249.216
DST=201.49.208.251 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=40080 DF
PROTO=TCP SPT=2959 DPT=80 WINDOW=65535 RES=0x00 SYN URGP=0 MARK=0x1

  So it's not VLAN-related.

  So now I'm thinking: If squid isn't seeing anything, couldn't be
that when I plug all the clients (around 6000) some buffer overflows
(maybe a proc entry?) and ebtables/iptables stop routing?

  I still get the logs on /var/log/messages, but squid doesn't get anything.

  Is there some proc entries I should check out?

  So far, the only one I changed to get the bridge up and running size-wise was:

echo 1000000 > /proc/sys/net/ipv4/netfilter/ip_conntrack_max

  Anything else is pretty much vanilla-default.

  If you guys could please CC me on the reply, I'd appreciate it.

  Thanks!

Felipe Damasio

2009/12/24 Felipe W Damasio <felipewd@gmail.com>:
>  Hi,
>
> 2009/12/23 Felipe W Damasio <felipewd@gmail.com>:
>>   But when I plug eth0 on the production environment network (which
>> uses multiple VLANs, one for the users and another for the internet),
>> http traffic stop working (ie. doesn't get routed to squid).
>
>  One other thing: I tried using --log-level debug --log-ip log--arp
> on the ebtables rules, and had several entries on my syslog such as
> this:
>
> Dec 23 19:24:47 hyper kernel: ebtables-broute IN=eth0 OUT= MAC source
> = 00:21:a0:ce:9d:24 MAC dest = 00:1a:a2:5d:70:8d proto = 0x0800 IP
> SRC=189.10.205.122 IP DST=189.73.192.220, IP tos=0x00, IP proto=6
> SPT=3774 DPT=80
> Dec 23 19:24:47 hyper kernel: ebtables-broute IN=eth0 OUT= MAC source
> = 00:21:a0:ce:9d:24 MAC dest = 00:1a:a2:5d:70:8d proto = 0x0800 IP
> SRC=189.10.204.12 IP DST=64.233.163.86, IP tos=0x00, IP proto=6
> SPT=1260 DPT=80
> Dec 23 19:24:47 hyper kernel: ebtables-broute IN=eth0 OUT= MAC source
> = 00:21:a0:ce:9d:24 MAC dest = 00:1d:71:b0:23:11 proto = 0x0800 IP
> SRC=189.58.246.156 IP DST=72.21.81.133, IP tos=0x00, IP proto=6
> SPT=2253 DPT=80
> Dec 23 19:24:47 hyper kernel: ebtables-broute IN=eth0 OUT= MAC source
> = 00:21:a0:ce:9d:24 MAC dest = 00:1d:71:b0:23:11 proto = 0x0800 IP
> SRC=189.58.247.99 IP DST=69.175.26.18, IP tos=0x00, IP proto=6
> SPT=49392 DPT=80
> Dec 23 19:24:47 hyper kernel: ebtables-broute IN=eth0 OUT= MAC source
> = 00:21:a0:ce:9d:24 MAC dest = 00:1a:a2:5d:70:8d proto = 0x0800 IP
> SRC=201.66.236.140 IP DST=174.140.128.6, IP tos=0x00, IP proto=6
> SPT=2060 DPT=80
>
>  I suppose it means that the ebtables rules are working. But why
> aren't they seen by the iptables rules?
>
>  Again, I tried using a single cross-cable connected machine and
> these rules worked (and got logged just the the above).
>
>  Could this be a kernel bug?
>
>  Cheers,
>
> Felipe Damasio
>

  reply	other threads:[~2009-12-29 22:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8a87046f0912231019l76e69a9eg52a529023d02237b@mail.gmail.com>
2009-12-23 18:22 ` ebtables broute DROP problem in production environment Felipe W Damasio
2009-12-23 20:48   ` Pascal Hambourg
2009-12-24 13:13   ` Felipe W Damasio
2009-12-29 22:18     ` Felipe W Damasio [this message]
2009-12-30  4:08       ` Felipe W Damasio

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=8a87046f0912291418x11b37daen604665a94108f128@mail.gmail.com \
    --to=felipewd@gmail.com \
    --cc=brunogw@gmail.com \
    --cc=netfilter@vger.kernel.org \
    --cc=pascal.mail@plouf.fr.eu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).