[reSIProcate] (DNS lookup) How to use specified NIC interface for outgoing request in dual nic machine?
Byron Campen
bcampen at estacado.net
Wed Mar 26 17:24:37 CDT 2008
This is a tricky problem to solve, since there is no way (that I
know of) to tell ::socket "Only use this set of IP addresses". About
the only way to really solve it is to specify the ip you want the
traffic to be sent on in the topmost Via of requests that you send
(ie, set request.header(h_Vias).front().sentHost()="<your ip
address>"). If you wish to restrict the stack from _receiving_ things
on the other interface, you can pass your desired ip-address when you
call SipStack::addTransport() (5th param).
Best regards,
Byron Campen
>
>
> Hi,
>
> My server has dual NIC. Both nic interfaces are in same subnet.
> In other words, when the sipstack does dns look up for a
> destination, it can get either of NIC for transport interface. So,
> when my server sends sip messages to wire, sip traffic appears in
> both NIC.
>
> I want SIP message only appear from one particular NIC. (because
> the other NIC will only for admin or other purpose).
>
> Is it possible to achieve this without changing sip stack code?
> If not, how?
>
>
>
> Thanks,
>
> Roland
>
> ---------------------------------------------------------------------
> This transmission (including any attachments) may contain
> confidential information, privileged material (including material
> protected by the solicitor-client or other applicable privileges),
> or constitute non-public information. Any use of this information
> by anyone other than the intended recipient is prohibited. If you
> have received this transmission in error, please immediately reply
> to the sender and delete this information from your system. Use,
> dissemination, distribution, or reproduction of this transmission
> by unintended recipients is not authorized and may be unlawful.
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20080326/15b089e9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2423 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20080326/15b089e9/attachment.bin>
More information about the resiprocate-devel
mailing list