transparent proxy

2019-06-23 Thread Dk Jack
Hi, I am trying to test ATS in transparent proxy mode. I am using the inline linux bridge mode. It doesn't seem to work even though I made the changes as specified in the ATS documentation. My configuration is shown below. The request seems to come to the bridge device, however, the packet is not m

Re: transparent proxy

2019-06-23 Thread SUSAN HINRICHS
It seems like it takes me a couple days of fiddling each time I have to set up transparent mode. Have you enabled ip_forward? Have you disabled rp_filter? Are you seeing Martian messages in your /bar/log/messages? On Sun, Jun 23, 2019, 7:23 PM Dk Jack wrote: > Hi, > I am trying to test ATS in

Re: Implementing Rate-limiting in forward proxy mode

2019-06-23 Thread Weixi Li (BLOOMBERG/ PRINCETON)
Hi Dk/Eric/Leif, Thanks for the advice. Our use-case simply requires sending out the queued requests at a fixed rate (although variable by site). My plan was simply put all incoming transactions in separate queues by site, and then invoke "transaction.resume()" at fixed interval via a timer for

Re: transparent proxy

2019-06-23 Thread Dk Jack
Hi Susan, yes, I've enabled ip_forward. What's an rp_filter? Haven't checked /var/log/messages... Bhasker. On Sun, Jun 23, 2019 at 8:01 PM SUSAN HINRICHS wrote: > It seems like it takes me a couple days of fiddling each time I have to set > up transparent mode. > > Have you enabled ip_forward?

Re: Implementing Rate-limiting in forward proxy mode

2019-06-23 Thread Dk Jack
Not sure you need queues. Here's a sample implementation based on TokenBucket which should do what you want... void handleReadRequestHeadersPreRemap(Transaction& transaction) { std::string host; Headers& headers = transaction.getClientRequest().getHeaders(); Headers::iterator ii = headers.f