ocserv proxy protocol support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2015-08-21 at 22:31 +0200, Niels Peen wrote:
> Hi,
> 
> I?m now using haproxy?s proxy protocol go get the client?s real IP 
> address to ocserv. (As opposed to using sniproxy and losing this 
> information.)
> 
> It works very well for Radius, which now receives the clients real IP 
> address. 
> Two questions:
> 1) occtl and the script variable REAL_IP still show 127.0.0.1 as the 
> client?s IP address. Is this expected?

No really, it seems like an omission as these use cases were not
considered.

> 2) I understand the proxy protocol also communicates the destination 
> address.  Can this destination address be made available to the 
> connect script? (E.g. IP_REAL_LOCAL.)

I've made a patch to correct (1) and also add (2), but it is not tested
yet. If you want to check it, it is at the ip-real branch of ocserv.

regards,
Nikos





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux