BIND_TO DEVICE and the loopback interface

2009-07-03 Thread Gilad Ben-Yossef
Hello List, A friend presented me with a difficult problem which I don't have a solution for and I thought someone here on the list might have an idea. The problem is as follows: You have an application running on a machine that has two network interfaces. One for management and one for

Re: BIND_TO DEVICE and the loopback interface

2009-07-03 Thread Dotan Shavit
On Friday 03 July 2009, Gilad Ben-Yossef wrote: You have a network server application (it's a SIP UA but that doesn't matter much) that is bound to an IP on the media network interface. Because the media and management networks might be completely different, you use the BIND_TO_DEVICE socket

Re: BIND_TO DEVICE and the loopback interface

2009-07-03 Thread Shachar Shemesh
Gilad Ben-Yossef wrote: Hello List, A friend presented me with a difficult problem which I don't have a solution for and I thought someone here on the list might have an idea. The problem is as follows: You have an application running on a machine that has two network interfaces. One

Re: BIND_TO DEVICE and the loopback interface

2009-07-03 Thread Shachar Shemesh
Shachar Shemesh wrote: Gilad Ben-Yossef wrote: Hello List, A friend presented me with a difficult problem which I don't have a solution for and I thought someone here on the list might have an idea. The problem is as follows: You have an application running on a machine that has two

Re: BIND_TO DEVICE and the loopback interface

2009-07-03 Thread Oleg Goldshmidt
Hi Gilad, You have a network server application (it's a SIP UA but that doesn't matter much) that is bound to an IP on the media network interface. Because the media and management networks might be completely different, you use the BIND_TO_DEVICE socket option om the server sockets so that

Re: BIND_TO DEVICE and the loopback interface

2009-07-03 Thread Aviv Greenberg
From what i understand - you have 3 network interfaces: one for media, one for management and loopback. Why don't you create 2 listeners (media+loopback) from the application - such that only local connections or connections comming from the media interface (but not the management) are received?