On Monday 09 September 2013 at 13:08:00, Nikolai Gorchilov wrote: > On Mon, Sep 9, 2013 at 4:15 PM, Nikolai Gorchilov <niki@xxxxxxxx> 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.