All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] ethernet bridging and http header enrichment
@ 2008-12-02 18:25 Ivan Chernyavsky
  2008-12-03 19:30 ` Stephen Hemminger
  2008-12-04 16:39 ` Jaime Medrano
  0 siblings, 2 replies; 5+ messages in thread
From: Ivan Chernyavsky @ 2008-12-02 18:25 UTC (permalink / raw)
  To: bridge

Dear all,

I have following problem to solve:

1. Traffic should go thru my box transparently --- no changes
in IP or MAC addresses.

2. Part of that traffic, namely, some web traffic to particular
hosts, should be "enriched" by adding some headers to HTTP
requests. Size of original requests is guaranteed to be
small enough so that header insertion will not make them to grow
above max allowed ethernet frame size.

I know how to handle (1), and that's why I'm here. But I don't
have much ideas how to perform (2) in that context.

I was looking to write an 'ebtables' extension, but it seems
that it is impossible to alter the frame size using these (am
I wrong?). Using them together with some userland application
like Squid, from my opinion, would break my condition (1) (again,
am I so wrong??).

Could you please point me to some documentation or bring an idea
how that could be accomplished?

Thanks in advance,

-- 
   Ivan


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

* Re: [Bridge] ethernet bridging and http header enrichment
  2008-12-02 18:25 [Bridge] ethernet bridging and http header enrichment Ivan Chernyavsky
@ 2008-12-03 19:30 ` Stephen Hemminger
  2008-12-04 16:53   ` Ivan Chernyavsky
  2008-12-04 16:39 ` Jaime Medrano
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2008-12-03 19:30 UTC (permalink / raw)
  To: Ivan Chernyavsky; +Cc: bridge

On Tue, 02 Dec 2008 21:25:44 +0300
Ivan Chernyavsky <camposer@yandex.ru> wrote:

> Dear all,
> 
> I have following problem to solve:
> 
> 1. Traffic should go thru my box transparently --- no changes
> in IP or MAC addresses.
> 
> 2. Part of that traffic, namely, some web traffic to particular
> hosts, should be "enriched" by adding some headers to HTTP
> requests. Size of original requests is guaranteed to be
> small enough so that header insertion will not make them to grow
> above max allowed ethernet frame size.
> 
> I know how to handle (1), and that's why I'm here. But I don't
> have much ideas how to perform (2) in that context.
> 
> I was looking to write an 'ebtables' extension, but it seems
> that it is impossible to alter the frame size using these (am
> I wrong?). Using them together with some userland application
> like Squid, from my opinion, would break my condition (1) (again,
> am I so wrong??).
> 
> Could you please point me to some documentation or bring an idea
> how that could be accomplished?
> 
> Thanks in advance,
> 

Use iptables, and queue?

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

* Re: [Bridge] ethernet bridging and http header enrichment
  2008-12-02 18:25 [Bridge] ethernet bridging and http header enrichment Ivan Chernyavsky
  2008-12-03 19:30 ` Stephen Hemminger
@ 2008-12-04 16:39 ` Jaime Medrano
  2008-12-04 17:23   ` Ivan Chernyavsky
  1 sibling, 1 reply; 5+ messages in thread
From: Jaime Medrano @ 2008-12-04 16:39 UTC (permalink / raw)
  To: Ivan Chernyavsky; +Cc: bridge

On 12/2/08, Ivan Chernyavsky <camposer@yandex.ru> wrote:
> 2. Part of that traffic, namely, some web traffic to particular
> hosts, should be "enriched" by adding some headers to HTTP
> requests. Size of original requests is guaranteed to be
> small enough so that header insertion will not make them to grow
> above max allowed ethernet frame size.

Maybe this is what wou want:

http://www.balabit.com/support/community/products/tproxy/

Regards,
Jaime.

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

* Re: [Bridge] ethernet bridging and http header enrichment
  2008-12-03 19:30 ` Stephen Hemminger
@ 2008-12-04 16:53   ` Ivan Chernyavsky
  0 siblings, 0 replies; 5+ messages in thread
From: Ivan Chernyavsky @ 2008-12-04 16:53 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge



03.12.08, 22:30, "Stephen Hemminger" <shemminger@vyatta.com>:


> Use iptables, and queue?

Silly me. Thanks! Seems that's what I need. I will prepare a prototype 
application and test... 

-- 
   Ivan

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

* Re: [Bridge] ethernet bridging and http header enrichment
  2008-12-04 16:39 ` Jaime Medrano
@ 2008-12-04 17:23   ` Ivan Chernyavsky
  0 siblings, 0 replies; 5+ messages in thread
From: Ivan Chernyavsky @ 2008-12-04 17:23 UTC (permalink / raw)
  To: Jaime Medrano; +Cc: bridge



04.12.08, 19:39, "Jaime Medrano" <jaime.medrano@gmail.com>:

> Maybe this is what wou want:
> http://www.balabit.com/support/community/products/tproxy/
> Regards,
> Jaime.

Thanks! But I think the solution proposed by Stephen Hemminger several mails
above is more straightforward... I will evaluate it now.

-- 
   Ivan


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

end of thread, other threads:[~2008-12-04 17:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 18:25 [Bridge] ethernet bridging and http header enrichment Ivan Chernyavsky
2008-12-03 19:30 ` Stephen Hemminger
2008-12-04 16:53   ` Ivan Chernyavsky
2008-12-04 16:39 ` Jaime Medrano
2008-12-04 17:23   ` Ivan Chernyavsky

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.