Tunnel traffic between Squid and rohc

Asked by Eamonn Hynes on 2011-06-21

Greetings,

Great project. I'm interested in tunneling traffic between a Squid proxy and rohc. Can I just use iptables to do this? Redirecting traffic on port 3128 (Squid) to 10.0.0.1?

Or do I need to go a bit deeper and actually write my own code?

Any thoughts greatly appreciated,

Question information

Language:
English Edit question
Status:
Answered
For:
rohc Edit question
Assignee:
Didier Barvaux Edit question
Last query:
2011-06-23
Last reply:
2011-06-24

This question was reopened

Hello,

If I understand your message correctly, you would like to forward your Squid traffic in the ROHC tunnel. Your setup would be as presented in the little figure below.

User HTTP browser <--> Squid <--> ROHC tunnel endpoint A <--> ROHC tunnel endpoint B <--> HTTP server

Is that correct?

Regards,
Didier

Eamonn Hynes (eamonn-hynes) said : #2

Hi Didier,

Many thanks for your response. This is exactly what I'm trying to achieve.

Any suggestions greatly appreciated.

Eamonn Hynes (eamonn-hynes) said : #3

Hi Didier,

Many thanks for your response. This is exactly what I'm trying to achieve.

Any suggestions greatly appreciated.

Eamonn Hynes (eamonn-hynes) said : #4

Re-opened

Hi,

OK, so you have to first setup the ROHC tunnel for endpoints A and B. See FAQ #639 for details. Then on system A, simply set a IP route so that your Squid traffic is forwarded inside the tunnel.

The following command on system A should do the job:
  # ip -4 route add default dev rohc0

Note that the ROHC tunnel application was created for testing purposes: it encapsulates ROHC packets in UDP datagrams, this is not very efficient. Depending on your traffic, you may transmit more bytes with the ROHC tunnel than with the uncompressed traffic.

Regards,
Didier

Can you help with this problem?

Provide an answer of your own, or ask Eamonn Hynes for more information if necessary.

To post a message you must log in.