Re: [squid-users] Re: squid 3.2.0.14 with TPROXY => commBind: Cannot bind socket FD 773 to xxx.xxx.xxx.xx: (98) Address

From: Antony Stone <Antony.Stone_at_squid.open.source.it>
Date: Mon, 9 Sep 2013 13:11:52 +0200

On Monday 09 September 2013 at 13:08:00, Nikolai Gorchilov wrote:

> On Mon, Sep 9, 2013 at 4:15 PM, Nikolai Gorchilov <niki_at_x3me.net> wrote:
> > User's original port seems to be an easy option in TPROXY mode
>
> I did a simple test and found the kernel will emit EADDRINUSE when you
> bind on user's ip:port... So, a more complicated solution is needed.
> Keeping track of all the used ports per IP (both users, and already
> auto-selected by the software) and auto-select from the remaining...
>
> :(

Or perhaps attempt binding to randomly selected IP:port combinations until you
don't get EADDRINUSE back?

Antony.

-- 
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.
                                                     Please reply to the list;
                                                           please don't CC me.
Received on Mon Sep 09 2013 - 11:12:01 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 09 2013 - 12:00:05 MDT