Skip to contentSkip to conversation

ethernet bridging and http header enrichment

Bridge Ivan Chernyavsky 3 participants 5 messages Dec 2, 2008 – Dec 4, 2008 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

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,

Signature · 1 line
   Ivan
#1 lore raw
Quoted 22 lines · On Tue, 02 Dec 2008 21:25:44 +0300 Ivan Chernyavsky <[email protected]> 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??).

Quoted 5 lines

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

Thanks in advance,

Use iptables, and queue?

#2 lore raw

03.12.08, 22:30, "Stephen Hemminger" <[email protected]>:

Quoted 1 line

Use iptables, and queue?

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

Signature · 1 line
   Ivan